Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Mesh

A Mesh defines the geometry (primitives) of a Part.

Common interface for all Mesh classes.

Hierarchy

  • Mesh

Implemented by

Index

Properties

Readonly boundingBox

boundingBox: BoundingBox

The BoundingBox of the mesh.

Readonly primitiveCount

primitiveCount: number

The number of primitives in the mesh.

Readonly primitiveType

primitiveType: MeshPrimitiveType

The type of primitives that are used in the mesh.

Readonly vertexCount

vertexCount: number

The number of vertices in the mesh.

Methods

getPrimitiveVertices

  • getPrimitiveVertices(primitiveIndex: number): Vec3[]
  • Returns the vertex indices of a given primitive.

    Parameters

    • primitiveIndex: number

    Returns Vec3[]

rayIntersect

  • Performs picking on the mesh.

    Parameters

    Returns boolean

Generated using TypeDoc