Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TriMesh

A shape that is a triangle mesh. A shape that is a triangle mesh.

Hierarchy

  • TriMesh

Index

Constructors

Properties

Methods

Constructors

constructor

  • new TriMesh(vertices: Float32Array, indices: Uint32Array): TriMesh
  • new TriMesh(vertices: Float32Array, indices: Uint32Array): TriMesh
  • Creates a new triangle mesh shape.

    Parameters

    • vertices: Float32Array

      The coordinates of the triangle mesh's vertices.

    • indices: Uint32Array

      The indices of the triangle mesh's triangles.

    Returns TriMesh

  • Creates a new triangle mesh shape.

    Parameters

    • vertices: Float32Array

      The coordinates of the triangle mesh's vertices.

    • indices: Uint32Array

      The indices of the triangle mesh's triangles.

    Returns TriMesh

Properties

Readonly indices

indices: Uint32Array

The indices of the triangles. The indices of the triangles.

Readonly vertices

vertices: Float32Array

The vertices of the triangle mesh. The vertices of the triangle mesh.

Methods

intoRaw

  • intoRaw(): RawShape
  • intoRaw(): RawShape
  • Returns RawShape

  • Returns RawShape

Generated using TypeDoc