PartTexturedIndexedTriangles
-
class
cee.mrk.PartTexturedIndexedTriangles() Defines textured indexed triangles that can be shown in a
MarkupModel.Use
MarkupModel.addTexturedIndexedTrianglesPartto create a new instance of this class.
Accessors
-
cee.mrk.PartTexturedIndexedTriangles.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.PartTexturedIndexedTriangles.rayIntersect() - rayIntersect(ray:
Ray, hitItem:PartHitItem): booleanPicking
Parameters
ray:
RayhitItem:
PartHitItemReturns: 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.MeshIndexedTrianglesfor 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