Mesh
-
class
cee.geo.Mesh() A Mesh defines the geometry (primitives) of a Part.
Common interface for all Mesh classes.
Properties
Methods
Properties
-
Mesh.boundingBox Type: BoundingBox The
BoundingBoxof the mesh.
-
Mesh.primitiveCount Type: number The number of primitives in the mesh.
-
Mesh.primitiveType Type: MeshPrimitiveType The type of primitives that are used in the mesh.
-
Mesh.vertexCount Type: number The number of vertices in the mesh.
Methods
getPrimitiveVertices
-
Mesh.getPrimitiveVertices(primitiveIndex) Arguments: - primitiveIndex (
number) – None
Returns the vertex indices of a given primitive.
Return type: [Vec3] - primitiveIndex (
rayIntersect
-
Mesh.rayIntersect(ray[, hitItem]) Arguments: - ray (
Ray) – None - hitItem (
MeshHitItem) – optional None
Performs picking on the mesh.
Return type: boolean - ray (