PartIndexedTriangles

class cee.mrk.PartIndexedTriangles()

Defines indexed triangles that can be shown in a MarkupModel.

Use MarkupModel.addIndexedTrianglesPart to create a new instance of this class.

Accessors

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

The color of the part.

Returns: Color3Like

set color(color: Color3Like): void

Parameters

color: Color3Like

Returns: void

cee.mrk.PartIndexedTriangles.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

cee.mrk.PartIndexedTriangles.eyeLift()
get eyeLift(): EyeLift

The eye lift mode to use for this part

Returns: EyeLift

set eyeLift(mode: EyeLift): void

Parameters

mode: EyeLift

Returns: void

Methods

cee.mrk.PartIndexedTriangles.rayIntersect()
rayIntersect(ray: Ray, hitItem: PartHitItem): boolean

Picking

Parameters

ray: Ray

hitItem: PartHitItem

Returns: boolean

cee.mrk.PartIndexedTriangles.setMeshData()
setMeshData(vertices: ArrayLike, indices: ArrayLike): void

Sets the triangles in the part using the given vertices and indices. See geo.MeshIndexedTriangles for an explanation of these arrays.

Parameters

vertices: ArrayLike

indices: ArrayLike

Returns: void