Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConvexPolyhedron

A shape that is a convex polygon. A shape that is a convex polygon.

Hierarchy

  • ConvexPolyhedron

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ConvexPolyhedron(vertices: Float32Array, indices: Uint32Array | null): ConvexPolyhedron
  • new ConvexPolyhedron(vertices: Float32Array, indices: Uint32Array | null): ConvexPolyhedron
  • Creates a new convex polygon shape.

    Parameters

    • vertices: Float32Array

      The coordinates of the convex polygon's vertices.

    • indices: Uint32Array | null

      The index buffer of this convex mesh. If this is null or undefined, the convex-hull of the input vertices will be computed automatically. Otherwise, it will be assumed that the mesh you provide is already convex.

    Returns ConvexPolyhedron

  • Creates a new convex polygon shape.

    Parameters

    • vertices: Float32Array

      The coordinates of the convex polygon's vertices.

    • indices: Uint32Array | null

      The index buffer of this convex mesh. If this is null or undefined, the convex-hull of the input vertices will be computed automatically. Otherwise, it will be assumed that the mesh you provide is already convex.

    Returns ConvexPolyhedron

Properties

Readonly indices

indices: Uint32Array | null

The indices of the convex polygon. The indices of the convex polygon.

Readonly vertices

vertices: Float32Array

The vertices of the convex polygon. The vertices of the convex polygon.

Methods

intoRaw

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

  • Returns RawShape

Generated using TypeDoc