BoxGeometry
Defined in: radiance/src/geometries/BoxGeometry.ts:32
A box about the origin, width along x, height along y and depth along z. It is 12
triangles on 24 vertices, four for each face. It follows three.js’s BoxGeometry with one
segment each way: the same vertex order and the same uv layout. A face has its own vertices, so
its normals are flat.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BoxGeometry(
width?,height?,depth?):BoxGeometry
Defined in: radiance/src/geometries/BoxGeometry.ts:35
Parameters
Section titled “Parameters”width?
Section titled “width?”number = 1
height?
Section titled “height?”number = 1
depth?
Section titled “depth?”number = 1
Returns
Section titled “Returns”BoxGeometry
Overrides
Section titled “Overrides”Properties
Section titled “Properties”
readonlydepth:number=1
Defined in: radiance/src/geometries/BoxGeometry.ts:38
height
Section titled “height”
readonlyheight:number=1
Defined in: radiance/src/geometries/BoxGeometry.ts:37
readonlytype:string='BoxGeometry'
Defined in: radiance/src/geometries/BoxGeometry.ts:33
Overrides
Section titled “Overrides”version
Section titled “version”version:
number=0
Defined in: radiance/src/geometries/BufferGeometry.ts:18
Incremented by the setter of every attribute, and by the author after an in-place edit.
Inherited from
Section titled “Inherited from”
readonlywidth:number=1
Defined in: radiance/src/geometries/BoxGeometry.ts:36
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get index():
Uint32Array
Defined in: radiance/src/geometries/BufferGeometry.ts:56
Three vertex indices per triangle, counter-clockwise seen from the front. Required.
Returns
Section titled “Returns”Uint32Array
Set Signature
Section titled “Set Signature”set index(
value):void
Defined in: radiance/src/geometries/BufferGeometry.ts:59
Parameters
Section titled “Parameters”Uint32Array
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”normal
Section titled “normal”Get Signature
Section titled “Get Signature”get normal():
Float32Array|undefined
Defined in: radiance/src/geometries/BufferGeometry.ts:35
xyz per vertex, unit length. Computed by computeVertexNormals() when absent.
Returns
Section titled “Returns”Float32Array | undefined
Set Signature
Section titled “Set Signature”set normal(
value):void
Defined in: radiance/src/geometries/BufferGeometry.ts:38
Parameters
Section titled “Parameters”Float32Array | undefined
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”position
Section titled “position”Get Signature
Section titled “Get Signature”get position():
Float32Array
Defined in: radiance/src/geometries/BufferGeometry.ts:26
xyz per vertex. Required.
Returns
Section titled “Returns”Float32Array
Set Signature
Section titled “Set Signature”set position(
value):void
Defined in: radiance/src/geometries/BufferGeometry.ts:29
Parameters
Section titled “Parameters”Float32Array
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Get Signature
Section titled “Get Signature”get uv():
Float32Array|undefined
Defined in: radiance/src/geometries/BufferGeometry.ts:47
uv per vertex, three.js’s layout: v = 1 at the top of a plane and at a sphere’s north pole (design record 0001, Amendment 1). Absent: every uv is 0.
Returns
Section titled “Returns”Float32Array | undefined
Set Signature
Section titled “Set Signature”set uv(
value):void
Defined in: radiance/src/geometries/BufferGeometry.ts:50
Parameters
Section titled “Parameters”Float32Array | undefined
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”computeBoundingBox()
Section titled “computeBoundingBox()”computeBoundingBox():
Box3
Defined in: radiance/src/geometries/BufferGeometry.ts:103
The box around position. A geometry with no vertex gives an empty box: min above max.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”BufferGeometry.computeBoundingBox
computeVertexNormals()
Section titled “computeVertexNormals()”computeVertexNormals():
this
Defined in: radiance/src/geometries/BufferGeometry.ts:68
Sets normal to the area-weighted mean of the normals of the triangles that share each vertex,
as three.js does. A vertex that no triangle uses gets (0, 0, 0). Adds 1 to version.
Returns
Section titled “Returns”this