Revision 42283 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/spline/Spline3D.java
Spline3D.java | ||
---|---|---|
22 | 22 |
*/ |
23 | 23 |
package org.gvsig.fmap.geom.jts.primitive.curve.spline; |
24 | 24 |
|
25 |
import java.util.ArrayList; |
|
26 |
|
|
25 | 27 |
import com.vividsolutions.jts.geom.Coordinate; |
26 | 28 |
|
27 | 29 |
import org.gvsig.fmap.geom.Geometry; |
... | ... | |
57 | 59 |
/** |
58 | 60 |
* @param subtype |
59 | 61 |
*/ |
60 |
protected Spline3D() {
|
|
62 |
public Spline3D() {
|
|
61 | 63 |
super(Geometry.SUBTYPES.GEOM3D); |
64 |
this.coordinates = new ArrayListCoordinateSequence(new ArrayList<Coordinate>()); |
|
62 | 65 |
} |
63 | 66 |
|
64 | 67 |
/** |
... | ... | |
92 | 95 |
* @see org.gvsig.fmap.geom.Geometry#cloneGeometry() |
93 | 96 |
*/ |
94 | 97 |
public Geometry cloneGeometry() { |
95 |
return new Spline3D((Coordinate[]) coordinates.clone());
|
|
98 |
return new Spline3D(cloneCoordinates().toCoordinateArray());
|
|
96 | 99 |
} |
97 | 100 |
|
98 | 101 |
/* (non-Javadoc) |
... | ... | |
182 | 185 |
return multiPolygon; |
183 | 186 |
} |
184 | 187 |
|
188 |
/* (non-Javadoc) |
|
189 |
* @see org.gvsig.fmap.geom.primitive.OrientablePrimitive#getVertex(int) |
|
190 |
*/ |
|
191 |
public Point getVertex(int index) { |
|
192 |
Point3D vertex = new Point3D(this.coordinates.get(index)); |
|
193 |
anyVertex = vertex; |
|
194 |
return vertex; |
|
195 |
} |
|
185 | 196 |
} |
Also available in: Unified diff