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

cee.mrk.PartArrows.color()
get color(): Color3Like

The single color of all arrows

Returns: Color3Like

set color(color: Color3Like): void

Parameters

color: Color3Like

Returns: void

cee.mrk.PartArrows.customData()

inherited

get customData(): any

Custom data for the part. This field is not used by EnvisionWeb.

Returns: any

set customData(data: any): void

Parameters

data: any

Returns: void

Methods

cee.mrk.PartArrows.addArrow()
addArrow(position: Vec3Like, direction: Vec3Like): void

Add an arrow with position and direction to the part

Parameters

position: Vec3Like

direction: Vec3Like

Returns: void

cee.mrk.PartArrows.rayIntersect()
rayIntersect(_ray: Ray, _hitItem: PartHitItem): boolean

Not implemented, always returns false

Parameters

_ray: Ray

_hitItem: PartHitItem

Returns: 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