Search results

BinaryTreeBuilder API in Vue Chart3d API component

Represents a binary tree builder for 3D polygons in a chart.

Methods

add

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

build

Builds a Binary Space Partitioning from a list of polygons.

Returns Chart3DBspNode

classifyPoint

Classifies a point relative to a polygon.

Parameter Type Description
point Chart3DVector The point to classify.
polygon Chart3DPolygon The polygon for classification.

Returns string

classifyPolygon

Classifies a polygon relative to another polygon.

Parameter Type Description
refPolygon Chart3DPolygon The reference polygon.
classPolygon Chart3DPolygon The polygon to classify.

Returns string

getNext

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

vector3DIndexClassification

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