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