PartArrows
-
class
cee.mrk.PartArrows() A part that can show arrows in a
MarkupModel.Use
MarkupModel.addArrowsPartto create a new instance of this class.
Accessors
-
cee.mrk.PartArrows.color() - get color():
Color3LikeThe single color of all arrows
Returns:
Color3Likeset color(color:Color3Like): voidParameters
color:Color3LikeReturns: void
-
cee.mrk.PartArrows.customData() inherited
get customData(): anyCustom data for the part. This field is not used by EnvisionWeb.
Returns: any
set customData(data: any): voidParameters
data: anyReturns: void
Methods
-
cee.mrk.PartArrows.addArrow() -
Add an arrow with position and direction to the part
Parameters
Returns: void
-
cee.mrk.PartArrows.rayIntersect() - rayIntersect(_ray:
Ray, _hitItem:PartHitItem): booleanNot implemented, always returns false
Parameters
_ray:
Ray_hitItem:
PartHitItemReturns: boolean
-
cee.mrk.PartArrows.removeAllArrows() - removeAllArrows(): void
Remove all arrows from the part
Returns: void
-
cee.mrk.PartArrows.setArrows() - setArrows(vertexArray: ArrayLike, vectorArray: ArrayLike): void
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, …)
Parameters
vertexArray: ArrayLike
vectorArray: ArrayLike
Returns: void
-
cee.mrk.PartArrows.setArrowsFloat32Array() - setArrowsFloat32Array(vertexArray: Float32Array, vectorArray: Float32Array): void
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.
Parameters
vertexArray: Float32Array
vectorArray: Float32Array
Returns: void