API / geotoolkit3d / util / intersection / IIntersectablePolyhedron / IIntersectablePolyhedron
intersection.IIntersectablePolyhedron.IIntersectablePolyhedron
Type Aliases
Type Aliases
Ƭ ConvexPolyhedron: Object
The cell's polyhedron (or sub-polyhedron) points, must be convex to generate a correct intersection result.
Each polyhedron point only need to be provided once, the algorithm will form the convex hull shape automatically.
A correct polyhedron shape need at least 4 points.
| Name | Type | Description |
|---|---|---|
x | number[] | The x coordinates of the polyhedron's vertices. Vertices coordinates must be in the local coordinate space of the object inheriting this interface. |
y | number[] | The y coordinates of the polyhedron's vertices. Vertices coordinates must be in the local coordinate space of the object inheriting this interface. |
z | number[] | The z coordinates of the polyhedron's vertices. Vertices coordinates must be in the local coordinate space of the object inheriting this interface. |
Ƭ PolyhedronCellData: Object
The target data structure where the user can store the cell's polyhedron points. If a cell polyhedron is concave, it is required to split it into multiple convex sub-polyhedrons, since the intersection algorithm only supports convex shapes.
| Name | Type | Description |
|---|---|---|
convexpolyhedrons? | ConvexPolyhedron[] | The array of sub polyhedrons. If the cell is convex, the array can contain the whole cell as a single polyhedron. But if the cell is concave, it is required to split and provide the cell as individual convex sub-polyhedron. |
value? | number | The cell polyhedron property value (if applicable). |