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
color
customData
Accessors
- cee.mrk.color()
The single color of all arrows
- Return type:
Color3Like
- cee.mrk.color(color)
- Arguments:
color (
Color3Like
) – None
- Return type:
void
- cee.mrk.customData()
Custom data for the part. This field is not used by EnvisionWeb.
- Return type:
any
- cee.mrk.customData(data)
- Arguments:
data (
any
) – None
- Return type:
void
Methods
addArrow
- PartArrows.addArrow(position, direction)
- Arguments:
position (
Vec3Like
) – Nonedirection (
Vec3Like
) – None
Add an arrow with position and direction to the part
- Return type:
void
rayIntersect
- PartArrows.rayIntersect(_ray, _hitItem)
- Arguments:
_ray (
Ray
) – None_hitItem (
PartHitItem
) – None
Not implemented, always returns false
- Return type:
boolean
removeAllArrows
- PartArrows.removeAllArrows()
Remove all arrows from the part
- Return type:
void
setArrows
- PartArrows.setArrows(vertexArray, vectorArray)
- Arguments:
vertexArray (
ArrayLike
) – NonevectorArray (
ArrayLike
) – None
Sets the arrows by providing the vertices (start points) and the vectors (direction and length)
The coordinates and vectors need to be interleaved (x0, y0, z0, x1, y1, z1, …)
- Return type:
void
setArrowsFloat32Array
- PartArrows.setArrowsFloat32Array(vertexArray, vectorArray)
- Arguments:
vertexArray (
Float32Array
) – NonevectorArray (
Float32Array
) – None
Sets the arrows by providing the vertices (start points) and the vectors (direction and length)
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.
- Return type:
void