Mesh
-
class
cee.geo.Mesh() A Mesh defines the geometry (primitives) of a Part.
Common interface for all Mesh classes.
Properties
-
cee.geo.Mesh.boundingBox readonly
boundingBox:BoundingBoxThe
BoundingBoxof the mesh.
-
cee.geo.Mesh.primitiveCount readonly
primitiveCount: numberThe number of primitives in the mesh.
-
cee.geo.Mesh.primitiveType readonly
primitiveType:MeshPrimitiveTypeThe type of primitives that are used in the mesh.
-
cee.geo.Mesh.vertexCount readonly
vertexCount: numberThe number of vertices in the mesh.
Methods
-
cee.geo.Mesh.getPrimitiveVertices() - getPrimitiveVertices(primitiveIndex: number):
Vec3[]Returns the vertex indices of a given primitive.
Parameters
primitiveIndex: numberReturns:
Vec3[]
-
cee.geo.Mesh.rayIntersect() - rayIntersect(ray:
Ray, hitItem:MeshHitItem): booleanPerforms picking on the mesh.
Parameters
ray:
RayhitItem:
MeshHitItemReturns: boolean