Class: Object3DUtil
Constructors
Accessors
Methods
Constructors
constructor
• new Object3DUtil(): Object3DUtil
Returns
Accessors
CubeMesh
• get
CubeMesh(): BoxGeometry
Returns
Defined in
SphereMesh
• get
SphereMesh(): SphereGeometry
Returns
Defined in
Sphere
• get
Sphere(): Object3D
Returns
Defined in
Methods
GetCube
▸ GetCube(): Object3D
Returns
Defined in
GetMaterial
▸ GetMaterial(tex
): Material
Parameters
Name | Type |
---|---|
tex | Texture |
Returns
Defined in
GetPlane
▸ GetPlane(tex
): Object3D
Parameters
Name | Type |
---|---|
tex | Texture |
Returns
Defined in
GetSingleCube
▸ GetSingleCube(sizeX
, sizeY
, sizeZ
, r
, g
, b
): Object3D
Parameters
Name | Type |
---|---|
sizeX | number |
sizeY | number |
sizeZ | number |
r | number |
g | number |
b | number |
Returns
Defined in
GetSingleSphere
▸ GetSingleSphere(radius
, r
, g
, b
): Object3D
Parameters
Name | Type |
---|---|
radius | number |
r | number |
g | number |
b | number |
Returns
Defined in
GetSingleCube2
▸ GetSingleCube2(mat
, size?
): Object3D
Parameters
Name | Type | Default value |
---|---|---|
mat | Material | undefined |
size | number | 10 |
Returns
Defined in
GetPointLight
▸ GetPointLight(pos
, rotation
, radius
, r
, g
, b
, intensity?
, castShadow?
): PointLight
Parameters
Name | Type | Default value |
---|---|---|
pos | Vector3 | undefined |
rotation | Vector3 | undefined |
radius | number | undefined |
r | number | undefined |
g | number | undefined |
b | number | undefined |
intensity | number | 1 |
castShadow | boolean | true |