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
Methods
Accessors
- cee.mrk.PartTexturedIndexedTriangles.customData
Custom data for the part. This field is not used by EnvisionWeb.
Methods
rayIntersect
- cee.mrk.PartTexturedIndexedTriangles.rayIntersect(ray, hitItem)
Picking
- Arguments
ray (
cee.Ray
) –hitItem (
cee.mrk.PartHitItem
) –
- Return type
boolean
setMeshData
- cee.mrk.PartTexturedIndexedTriangles.setMeshData(vertices, textureCoords, indices)
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.- Arguments
vertices (
ArrayLike[number]
) –textureCoords (
ArrayLike[number]
) –indices (
ArrayLike[number]
) –
- Return type
void
setTexture
- cee.mrk.PartTexturedIndexedTriangles.setTexture(texture)
Sets the
Texture
of the part.- Arguments
texture (
cee.Texture
) –
- Return type
void