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