-
(static) cube(container, scene, size, id, className, backfaceCulling, shading) → {css3d.element}
-
Parameters:
Name |
Type |
Description |
container |
DOMElement
|
|
scene |
css3d.scene
|
|
size |
Number
|
|
id |
String
|
null
|
|
className |
String
|
null
|
|
backfaceCulling |
Boolean
|
null
|
|
shading |
Boolean
|
null
|
|
- Source:
Returns:
This is the parent element
-
Type
-
css3d.element
-
(static) cubeElements(scene, size, backE, frontE, leftE, rightE, topE, bottomE, backfaceCulling, shading) → {css3d.element}
-
Build cube from DOM Elements
Parameters:
Name |
Type |
Description |
scene |
css3d.scene
|
|
size |
Number
|
|
backE |
DOMElement
|
|
frontE |
DOMElement
|
|
leftE |
DOMElement
|
|
rightE |
DOMElement
|
|
topE |
DOMElement
|
|
bottomE |
DOMElement
|
|
backfaceCulling |
Boolean
|
null
|
|
shading |
Boolean
|
null
|
|
- Source:
Returns:
This is the parent element
-
Type
-
css3d.element
-
(static) cuboid(container, scene, width, height, depth, id, className, backfaceCulling, shading, addTopAndBottom) → {css3d.element}
-
Parameters:
Name |
Type |
Description |
container |
DOMElement
|
|
scene |
css3d.scene
|
|
width |
Number
|
|
height |
Number
|
|
depth |
Number
|
|
id |
String
|
null
|
|
className |
String
|
null
|
|
backfaceCulling |
Boolean
|
null
|
|
shading |
Boolean
|
null
|
|
addTopAndBottom |
Boolean
|
null
|
|
- Source:
Returns:
This is the parent element
-
Type
-
css3d.element
-
(static) fromObj(container, scene, objFile, className, backfaceCulling, shading, clockwise, textureFile, textureSize) → {css3d.element}
-
Import an obj file
Parameters:
Name |
Type |
Description |
container |
DOMElement
|
|
scene |
css3d.scene
|
|
objFile |
String
|
Path to obj file |
className |
String
|
null
|
|
backfaceCulling |
Boolean
|
null
|
|
shading |
Boolean
|
null
|
|
clockwise |
Boolean
|
null
|
The face winding direction |
textureFile |
String
|
Path to texture file |
textureSize |
Integer
|
Texture size (The texture has to be a square) |
- Source:
Returns:
This is the parent element
-
Type
-
css3d.element
-
(static) plane(container, scene, size, tiles, id, className, backfaceCulling, shading) → {css3d.element}
-
Parameters:
Name |
Type |
Description |
container |
DOMElement
|
|
scene |
css3d.scene
|
|
size |
Number
|
|
tiles |
Integer
|
|
id |
String
|
null
|
|
className |
String
|
null
|
|
backfaceCulling |
Boolean
|
null
|
|
shading |
Boolean
|
null
|
|
- Source:
Returns:
This is the parent element
-
Type
-
css3d.element
-
(static) skybox(container, scene, size, id, className) → {css3d.element}
-
Parameters:
Name |
Type |
Description |
container |
DOMElement
|
|
scene |
css3d.scene
|
|
size |
Number
|
|
id |
String
|
null
|
|
className |
String
|
null
|
|
- Source:
Returns:
This is the parent element
-
Type
-
css3d.element