Skip to content

Class: Object3DUtil

Constructors

Accessors

Methods

Constructors

constructor

new Object3DUtil(): Object3DUtil

Returns

Object3DUtil

Accessors

CubeMesh

get CubeMesh(): BoxGeometry

Returns

BoxGeometry

Defined in

src/util/Object3DUtil.ts:37


SphereMesh

get SphereMesh(): SphereGeometry

Returns

SphereGeometry

Defined in

src/util/Object3DUtil.ts:42


Sphere

get Sphere(): Object3D

Returns

Object3D

Defined in

src/util/Object3DUtil.ts:111

Methods

GetCube

GetCube(): Object3D

Returns

Object3D

Defined in

src/util/Object3DUtil.ts:47


GetMaterial

GetMaterial(tex): Material

Parameters

NameType
texTexture

Returns

Material

Defined in

src/util/Object3DUtil.ts:57


GetPlane

GetPlane(tex): Object3D

Parameters

NameType
texTexture

Returns

Object3D

Defined in

src/util/Object3DUtil.ts:67


GetSingleCube

GetSingleCube(sizeX, sizeY, sizeZ, r, g, b): Object3D

Parameters

NameType
sizeXnumber
sizeYnumber
sizeZnumber
rnumber
gnumber
bnumber

Returns

Object3D

Defined in

src/util/Object3DUtil.ts:81


GetSingleSphere

GetSingleSphere(radius, r, g, b): Object3D

Parameters

NameType
radiusnumber
rnumber
gnumber
bnumber

Returns

Object3D

Defined in

src/util/Object3DUtil.ts:97


GetSingleCube2

GetSingleCube2(mat, size?): Object3D

Parameters

NameTypeDefault value
matMaterialundefined
sizenumber10

Returns

Object3D

Defined in

src/util/Object3DUtil.ts:121


GetPointLight

GetPointLight(pos, rotation, radius, r, g, b, intensity?, castShadow?): PointLight

Parameters

NameTypeDefault value
posVector3undefined
rotationVector3undefined
radiusnumberundefined
rnumberundefined
gnumberundefined
bnumberundefined
intensitynumber1
castShadowbooleantrue

Returns

PointLight

Defined in

src/util/Object3DUtil.ts:132