DirectGeometry

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

Constructor

DirectGeometry()

This creates a new DirectGeometry.

Properties

.id undefined : Integer

Unique number for this DirectGeometry instance.

.name undefined : String

Optional name. Default is the empty string.

.type undefined : Array

String 'DirectGeometry'.

.vertices undefined : Array

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

.normals undefined : Array

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

.colors undefined : Array

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

.uvs undefined : Array

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

.uvs2 undefined : Array

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

.groups undefined : Array

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

.morphTargets undefined : Array

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

.skinWeights undefined : Array

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

.skinIndices undefined : Array

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

.boundingBox undefined : Box3

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

.boundingSphere undefined : Sphere

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

.verticesNeedUpdate undefined : Boolean

Default is false.

.normalsNeedUpdate undefined : Boolean

Default is false.

.colorsNeedUpdate undefined : Boolean

Default is false.

.uvsNeedUpdate undefined : Boolean

Default is false.

.groupsNeedUpdate undefined : 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.