Skip to content

Threepp.BufferGeometry

Buffer geometry base class

Base class for geometries that store vertex data.

Members

Constructors

Properties

Methods


BufferGeometry

Constructor

Description

Constructor


type

Property \ Access: r/w

Description

Geometry type (read-only)


id

Property \ Access: r/w

Description

ID (read-only)


name

Property \ Access: r/w

Description

Name


hasIndex

Method

Description

Whether the geometry has an index


hasAttribute

Method

Arguments

Arguments Default Description
name  

Description

Whether the geometry has the given attribute


computeBoundingBox

Method

Description

Computes the bounding box


computeBoundingSphere

Method

Description

Computes the bounding sphere


computeVertexNormals

Method

Description

Computes vertex normals


normalizeNormals

Method

Description

Normalizes the normals


rotateX

Method

Arguments

Arguments Default Description
angle  

Description

Rotates around the X axis


rotateY

Method

Arguments

Arguments Default Description
angle  

Description

Rotates around the Y axis


rotateZ

Method

Arguments

Arguments Default Description
angle  

Description

Rotates around the Z axis


translate

Method

Arguments

Arguments Default Description
x  
y  
z  

Description

Translates the geometry


scale

Method

Arguments

Arguments Default Description
x  
y  
z  

Description

Scales the geometry


center

Method

Description

Centers the geometry


dispose

Method

Description

Releases resources