Revision 42309 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.jts/src/main/java/org/gvsig/fmap/geom/jts/primitive/curve/line/BaseLine3DM.java
BaseLine3DM.java | ||
---|---|---|
121 | 121 |
* @see org.gvsig.fmap.geom.primitive.OrientablePrimitive#addVertex(double, double, double) |
122 | 122 |
*/ |
123 | 123 |
public void addVertex(double x, double y, double z) { |
124 |
double m = 0; |
|
125 |
if (coordinates.size() > 0) { |
|
126 |
MCoordinate coordinateAnt = (MCoordinate) coordinates.get(coordinates.size() - 1); |
|
127 |
m = coordinateAnt.m + coordinateAnt.distance(JTSUtils.createMCoordinate(x, y, coordinateAnt.m)); |
|
128 |
} |
|
129 |
|
|
130 |
this.coordinates.add(new Point3DM(x, y, z, m).getJTSCoordinate()); |
|
131 |
|
|
124 |
this.coordinates.add(new Point3DM(x, y, z, 0).getJTSCoordinate()); |
|
132 | 125 |
} |
133 | 126 |
|
134 | 127 |
/* (non-Javadoc) |
Also available in: Unified diff