svn-gvsig-desktop / trunk / libraries / lib3DMap / src / com / iver / ai2 / gvsig3d / geometry / GeometryFactory3D.java @ 21195
History | View | Annotate | Download (628 Bytes)
1 |
package com.iver.ai2.gvsig3d.geometry; |
---|---|
2 |
|
3 |
import org.gvsig.fmap.geom.primitive.AbstractPrimitive; |
4 |
import org.gvsig.fmap.geom.primitive.Point; |
5 |
|
6 |
|
7 |
|
8 |
|
9 |
public class GeometryFactory3D extends org.gvsig.fmap.geom.GeometryFactory { |
10 |
|
11 |
|
12 |
public Point createPoint3D(String id){ |
13 |
return createPoint3D(id, 0.0,0.0,0.0); |
14 |
} |
15 |
|
16 |
public Point createPoint3D(String id,double x, double y, double z){ |
17 |
Point3D point3D = new Point3D(id);
|
18 |
point3D.setX(x); |
19 |
point3D.setY(y); |
20 |
point3D.setZ(z); |
21 |
return point3D;
|
22 |
} |
23 |
|
24 |
public AbstractPrimitive createSolid(String id){ |
25 |
Solid solid = new Solid(id);
|
26 |
return solid;
|
27 |
} |
28 |
} |