Class: CylinderPrimitive

CylinderPrimitive

CylinderPrimitive provides a primitive cylinder Model.


new CylinderPrimitive(definition)

Parameters:
Name Type Description
definition

An object containing the following (optional) parameters:

  • numSegmentsW: The amount of horizontal segments
  • numSegmentsH: The amount of vertical segments
  • radius: The radius of the cylinder
  • height: The height of the cylinder
  • doubleSided: Whether or not the faces should point both ways
  • alignment: The axis along which to orient the cylinder. One of CylinderPrimitive#ALIGN_X, CylinderPrimitive#ALIGN_Y, CylinderPrimitive#ALIGN_Z
Author:
  • derschmale <http://www.derschmale.com>

Extends

Members


<static> ALIGN_X :number

The alignment dictates which access should be parallel to the sides of the cylinder

Type:
  • number

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: