Represents a binary tree builder for 3D polygons in a chart.
Adds a polygon to the binary tree and returns its index.
Parameter | Type | Description |
---|---|---|
polygon | Chart3DPolygon |
The polygon to add. |
chart | Chart3D |
The 3D chart. |
Returns number
Builds a Binary Space Partitioning from a list of polygons.
Returns Chart3DBspNode
Classifies a point relative to a polygon.
Parameter | Type | Description |
---|---|---|
point | Chart3DVector |
The point to classify. |
polygon | Chart3DPolygon |
The polygon for classification. |
Returns string
Classifies a polygon relative to another polygon.
Parameter | Type | Description |
---|---|---|
refPolygon | Chart3DPolygon |
The reference polygon. |
classPolygon | Chart3DPolygon |
The polygon to classify. |
Returns string
Gets the next index considering the array length and the current index.
Parameter | Type | Description |
---|---|---|
index | number |
The current index. |
count | number |
The length of the array. |
Returns number
Creates a PolyAttributes object based on the vector, index, and result.
Parameter | Type | Description |
---|---|---|
point | Chart3DVector |
The vector representing the point. |
index | number |
The index of the point. |
result | string |
The result classification. |
Returns Chart3DPolyAttributes