Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

boxGeometry

Firtina Ozbalikci edited this page Nov 1, 2015 · 13 revisions

WikiInternal ComponentsGeometriesboxGeometry

boxGeometry

Creates a THREE.BoxGeometry

Attributes

width

number required: Width of the sides on the X axis.

height

number required: Height of the sides on the Y axis.

depth

number required: Depth of the sides on the Z axis.

dynamic

bool: See THREE.Geometry#dynamic.

Set to true if attribute buffers will need to change in runtime (using "dirty" flags).

Unless set to true internal typed arrays corresponding to buffers will be deleted once sent to GPU.

Defaults to true.

name

string: Name for this geometry.

Default is an empty string.

widthSegments

number: Number of segmented faces along the width of the sides.

Optional.

Default is 1.

heightSegments

number: Number of segmented faces along the height of the sides.

Optional.

Default is 1.

depthSegments

number: Number of segmented faces along the depth of the sides.

Optional.

Default is 1.

resourceId

string: The resource id of this object, only used if it is placed into resources.

This component can be added into <resources/>! See Resource Types for more information.

===

View Source
Clone this wiki locally