canvas-toy
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Cube
Geometry
constructor
attributes
faces
add
Vertex
generate
Flat
Normal
get
Triangle
ByIndex
get
Vertex
ByIndex
remove
Attribute
set
Attribute
Hierarchy
Geometry
CubeGeometry
Index
Constructors
constructor
Properties
attributes
faces
Methods
add
Vertex
generate
Flat
Normal
get
Triangle
ByIndex
get
Vertex
ByIndex
remove
Attribute
set
Attribute
Constructors
constructor
new
Cube
Geometry
(
gl
:
WebGLRenderingContext
)
:
CubeGeometry
Parameters
gl:
WebGLRenderingContext
Returns
CubeGeometry
Properties
attributes
attributes
:
object
Type declaration
flat
Normal
:
Attribute
normal
:
Attribute
position
:
Attribute
uv
:
Attribute
faces
faces
:
Faces
Methods
add
Vertex
add
Vertex
(
vertex
:
any
)
:
this
Parameters
vertex:
any
Returns
this
generate
Flat
Normal
generate
Flat
Normal
(
)
:
this
Returns
this
get
Triangle
ByIndex
get
Triangle
ByIndex
(
triangleIndex
:
number
)
:
Array
<
any
>
Parameters
triangleIndex:
number
Returns
Array
<
any
>
get
Vertex
ByIndex
get
Vertex
ByIndex
(
index
:
number
)
:
any
Parameters
index:
number
Returns
any
remove
Attribute
remove
Attribute
(
name
:
string
)
:
this
Parameters
name:
string
Returns
this
set
Attribute
set
Attribute
(
name
:
any
, attribute
:
Attribute
)
:
this
Parameters
name:
any
attribute:
Attribute
Returns
this
Generated using
TypeDoc