BowlerKernel
|
Public Member Functions | |
Polyhedron (List< Vector3d > points, List< List< Integer >> faces) | |
Polyhedron (Vector3d[] points, Integer[][] faces) | |
List< Polygon > | toPolygons () |
PropertyStorage | getProperties () |
![]() | |
CSG | toCSG () |
Private Attributes | |
final PropertyStorage | properties = new PropertyStorage() |
final List< Vector3d > | points = new ArrayList<>() |
final List< List< Integer > > | faces = new ArrayList<>() |
Definition at line 20 of file Polyhedron.java.
eu.mihosoft.vrl.v3d.Polyhedron.Polyhedron | ( | List< Vector3d > | points, |
List< List< Integer >> | faces | ||
) |
Constructor. Creates a polyhedron defined by a list of points and a list of faces.
points | points (Vector3d list) |
faces | list of faces (list of point index lists) |
Definition at line 38 of file Polyhedron.java.
References eu.mihosoft.vrl.v3d.Polyhedron.faces, and eu.mihosoft.vrl.v3d.Polyhedron.points.
eu.mihosoft.vrl.v3d.Polyhedron.Polyhedron | ( | Vector3d[] | points, |
Integer | faces[][] | ||
) |
Constructor. Creates a polyhedron defined by a list of points and a list of faces.
points | points (Vector3d array) |
faces | list of faces (array of point index arrays) |
Definition at line 50 of file Polyhedron.java.
References eu.mihosoft.vrl.v3d.Polyhedron.faces, and eu.mihosoft.vrl.v3d.Polyhedron.points.
PropertyStorage eu.mihosoft.vrl.v3d.Polyhedron.getProperties | ( | ) |
Returns the property storage of this primitive.
Reimplemented from eu.mihosoft.vrl.v3d.Primitive.
Definition at line 83 of file Polyhedron.java.
References eu.mihosoft.vrl.v3d.Polyhedron.properties.
List<Polygon> eu.mihosoft.vrl.v3d.Polyhedron.toPolygons | ( | ) |
Returns the polygons that define this primitive.
Note: this method computes the polygons each time this method is called. The polygons can be cached inside a CSG object.
Reimplemented from eu.mihosoft.vrl.v3d.Primitive.
Definition at line 63 of file Polyhedron.java.
References eu.mihosoft.vrl.v3d.Polyhedron.faces, eu.mihosoft.vrl.v3d.Polygon.fromPoints(), eu.mihosoft.vrl.v3d.Polyhedron.points, and eu.mihosoft.vrl.v3d.Polyhedron.properties.
|
private |
The faces.
Definition at line 29 of file Polyhedron.java.
Referenced by eu.mihosoft.vrl.v3d.Polyhedron.Polyhedron(), and eu.mihosoft.vrl.v3d.Polyhedron.toPolygons().
|
private |
The points.
Definition at line 26 of file Polyhedron.java.
Referenced by eu.mihosoft.vrl.v3d.Polyhedron.Polyhedron(), and eu.mihosoft.vrl.v3d.Polyhedron.toPolygons().
|
private |
The properties.
Definition at line 23 of file Polyhedron.java.
Referenced by eu.mihosoft.vrl.v3d.Polyhedron.getProperties(), and eu.mihosoft.vrl.v3d.Polyhedron.toPolygons().