Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RoundConvexPolyhedron

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

Hierarchy

  • RoundConvexPolyhedron

Index

Constructors

Properties

Methods

Constructors

constructor

  • new RoundConvexPolyhedron(vertices: Float32Array, indices: Uint32Array | null, borderRadius: number): RoundConvexPolyhedron
  • new RoundConvexPolyhedron(vertices: Float32Array, indices: Uint32Array | null, borderRadius: number): RoundConvexPolyhedron
  • 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.

    • borderRadius: number

      The radius of the borders of this convex polyhedron.

    Returns RoundConvexPolyhedron

  • 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.

    • borderRadius: number

      The radius of the borders of this convex polyhedron.

    Returns RoundConvexPolyhedron

Properties

Readonly borderRadius

borderRadius: number

The radius of the convex polyhedron's rounded edges and vertices. The radius of the convex polyhedron's rounded edges and vertices.

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