DirectGeometry

This class is used internally to convert from Geometry to BufferGeometry.

Constructor

DirectGeometry()

This creates a new DirectGeometry.

Properties

.id : Integer

Unique number for this DirectGeometry instance.

.name : String

Optional name. Default is the empty string.

.type : Array

String 'DirectGeometry'.

.vertices : Array

Initialiased as an empty array, this is populated by .fromGeometry().

.normals : Array

Initialiased as an empty array, this is populated by .fromGeometry().

.colors : Array

Initialiased as an empty array, this is populated by .fromGeometry().

.uvs : Array

Initialiased as an empty array, this is populated by .fromGeometry().

.uvs2 : Array

Initialiased as an empty array, this is populated by .fromGeometry().

.groups : Array

Initialiased as an empty array, this is populated by .fromGeometry().

.morphTargets : Array

Initialiased as an empty array, this is populated by .fromGeometry().

.skinWeights : Array

Initialiased as an empty array, this is populated by .fromGeometry().

.skinIndices : Array

Initialiased as an empty array, this is populated by .fromGeometry().

.boundingBox : Box3

Bounding box for the bufferGeometry, which can be calculated with .computeBoundingBox(). Default is null.

.boundingSphere : Sphere

Bounding sphere for the bufferGeometry, which can be calculated with .computeBoundingSphere(). Default is null.

.verticesNeedUpdate : Boolean

Default is false.

.normalsNeedUpdate : Boolean

Default is false.

.colorsNeedUpdate : Boolean

Default is false.

.uvsNeedUpdate : Boolean

Default is false.

.groupsNeedUpdate : Boolean

Default is false.

Methods

.computeGroups (geometry : Geometry) : null

Compute the parts of the geometry that have different materialIndex. See BufferGeometry.groups.

.fromGeometry (geometry : Geometry) : null

Pass in a Geometry instance for conversion.

Source

For more info on how to obtain the source code of this module see this page.