Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MeshSubset

A class describing a range of vertices and indices, thus referencing a subset of a Mesh.

Hierarchy

  • MeshSubset

Index

Constructors

Properties

Methods

Constructors

constructor

  • new MeshSubset(vertexID?: number, numVertices?: number, indexID?: number, numIndices?: number): MeshSubset

Properties

indexID

indexID: number

The ID of the first index.

numIndices

numIndices: number

The total number of indices.

numVertices

numVertices: number

The total number of vertices.

vertexID

vertexID: number

The ID of the first vertex.

Methods

setTo

  • setTo(vertexID?: number, numVertices?: number, indexID?: number, numIndices?: number): void
  • Changes all properties at once. Call without any arguments to reference a complete mesh.

    Parameters

    • Optional vertexID: number
    • Optional numVertices: number
    • Optional indexID: number
    • Optional numIndices: number

    Returns void

Generated using TypeDoc