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: BoundingBox

The BoundingBox of the mesh.

cee.geo.Mesh.primitiveCount

readonly

primitiveCount: number

The number of primitives in the mesh.

cee.geo.Mesh.primitiveType

readonly

primitiveType: MeshPrimitiveType

The type of primitives that are used in the mesh.

cee.geo.Mesh.vertexCount

readonly

vertexCount: number

The 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: number

Returns: Vec3[]

cee.geo.Mesh.rayIntersect()
rayIntersect(ray: Ray, hitItem: MeshHitItem): boolean

Performs picking on the mesh.

Parameters

ray: Ray

hitItem: MeshHitItem

Returns: boolean