Class: BoxPrimitive

BoxPrimitive

BoxPrimitive provides a primitive box Model.


new BoxPrimitive(definition)

Parameters:
Name Type Description
definition

An object containing the following (optional) parameters:

  • numSegmentsW: The amount of segments along the X-axis
  • numSegmentsH: The amount of segments along the Y-axis
  • numSegmentsD: The amount of segments along the Z-axis
  • width: The width of the box
  • height: The height of the box
  • depth: The depth of the box
  • invert: Whether or not the faces should point inwards
  • doubleSided: Whether or not the faces should point both ways
Author:
  • derschmale <http://www.derschmale.com>

Extends

Members


localBounds

The object-space bounding box.

Inherited From:

name

The name of the Model.

Inherited From:

numMeshes

The amount of Mesh objects in this Model.

Inherited From:

skeleton

The Skeleton used for skinning animations.

Inherited From:

Methods


addMesh()

Adds a Mesh to the Model

Inherited From:

getMesh()

Retrieves the Mesh at the given index.

Inherited From:

removeMesh()

Removes a Mesh from the Model.

Inherited From: