Constructor and Description |
---|
Polyhedron(java.util.List<eu.mihosoft.vvecmath.Vector3d> points,
java.util.List<java.util.List<java.lang.Integer>> faces)
Constructor.
|
Polyhedron(eu.mihosoft.vvecmath.Vector3d[] points,
java.lang.Integer[][] faces)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PropertyStorage |
getProperties()
Returns the property storage of this primitive.
|
java.util.List<Polygon> |
toPolygons()
Returns the polygons that define this primitive.
|
public Polyhedron(java.util.List<eu.mihosoft.vvecmath.Vector3d> points, java.util.List<java.util.List<java.lang.Integer>> faces)
points
- points (Vector3d
list)faces
- list of faces (list of point index lists)public Polyhedron(eu.mihosoft.vvecmath.Vector3d[] points, java.lang.Integer[][] faces)
points
- points (Vector3d
array)faces
- list of faces (array of point index arrays)public java.util.List<Polygon> toPolygons()
Primitive
CSG
object.toPolygons
in interface Primitive
public PropertyStorage getProperties()
Primitive
getProperties
in interface Primitive