PartTexturedIndexedTriangles

class cee.mrk.PartTexturedIndexedTriangles()

Defines textured indexed triangles that can be shown in a MarkupModel.

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

Accessors

cee.mrk.PartTexturedIndexedTriangles.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.PartTexturedIndexedTriangles.rayIntersect()
rayIntersect(ray: Ray, hitItem: PartHitItem): boolean

Picking

Parameters

ray: Ray

hitItem: PartHitItem

Returns: boolean

cee.mrk.PartTexturedIndexedTriangles.setMeshData()
setMeshData(vertices: ArrayLike, textureCoords: 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. The textureCoords array should contain per vertex 2d texture coordinates (s,t) for each vertex in vertices.

Parameters

vertices: ArrayLike

textureCoords: ArrayLike

indices: ArrayLike

Returns: void

cee.mrk.PartTexturedIndexedTriangles.setTexture()
setTexture(texture: Texture): void

Sets the Texture of the part.

Parameters

texture: Texture

Returns: void