PartArrows
- class cee.mrk.PartArrows()
A part that can show arrows in a
MarkupModel
Use
MarkupModel.addArrowsPart
to create a new instance of this class.
Accessors
Accessors
- cee.mrk.PartArrows.color
The single color of all arrows
- cee.mrk.PartArrows.customData
Custom data for the part. This field is not used by EnvisionWeb.
Methods
addArrow
- cee.mrk.PartArrows.addArrow(position, direction)
Add an arrow with position and direction to the part
- Arguments
position (
cee.Vec3Like
) –direction (
cee.Vec3Like
) –
- Return type
void
rayIntersect
- cee.mrk.PartArrows.rayIntersect(_ray, _hitItem)
Not implemented, always returns false
- Arguments
_ray (
cee.Ray
) –_hitItem (
cee.mrk.PartHitItem
) –
- Return type
boolean
removeAllArrows
- cee.mrk.PartArrows.removeAllArrows()
Remove all arrows from the part
- Return type
void
setArrows
- cee.mrk.PartArrows.setArrows(vertexArray, vectorArray)
Sets the arrows by providing the vertices (start points) and the vectors (direction and length)
- Arguments
vertexArray (
ArrayLike[number]
) –vectorArray (
ArrayLike[number]
) –
- Return type
void
The coordinates and vectors need to be interleaved (x0, y0, z0, x1, y1, z1, …)
setArrowsFloat32Array
- cee.mrk.PartArrows.setArrowsFloat32Array(vertexArray, vectorArray)
Sets the arrows by providing the vertices (start points) and the vectors (direction and length)
- Arguments
vertexArray (
Float32Array
) –vectorArray (
Float32Array
) –
- Return type
void
The coordinates and vectors need to be interleaved (x0, y0, z0, x1, y1, z1, …)
This is the most optimal setting as the PartArrows will just hold a reference to the passed array and not copy any data.