canvas-toy
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Sphere
Geometry
constructor
attributes
faces
height
Segments
phi
Length
phi
Start
radius
theta
Length
theta
Start
width
Segments
add
Vertex
build
generate
Flat
Normal
get
Triangle
ByIndex
get
Vertex
ByIndex
remove
Attribute
set
Attribute
set
Height
Segments
set
Phi
Length
set
Phi
Start
set
Radius
set
Theta
Length
set
Theta
Start
set
Width
Segments
Hierarchy
Geometry
SphereGeometry
Index
Constructors
constructor
Properties
attributes
faces
Accessors
height
Segments
phi
Length
phi
Start
radius
theta
Length
theta
Start
width
Segments
Methods
add
Vertex
build
generate
Flat
Normal
get
Triangle
ByIndex
get
Vertex
ByIndex
remove
Attribute
set
Attribute
set
Height
Segments
set
Phi
Length
set
Phi
Start
set
Radius
set
Theta
Length
set
Theta
Start
set
Width
Segments
Constructors
constructor
new
Sphere
Geometry
(
gl
:
WebGLRenderingContext
)
:
SphereGeometry
Parameters
gl:
WebGLRenderingContext
Returns
SphereGeometry
Properties
attributes
attributes
:
object
Type declaration
flat
Normal
:
Attribute
normal
:
Attribute
position
:
Attribute
uv
:
Attribute
faces
faces
:
Faces
Accessors
height
Segments
height
Segments
:
phi
Length
phi
Length
:
phi
Start
phi
Start
:
radius
radius
:
theta
Length
theta
Length
:
theta
Start
theta
Start
:
width
Segments
width
Segments
:
Methods
add
Vertex
add
Vertex
(
vertex
:
any
)
:
this
Parameters
vertex:
any
Returns
this
build
build
(
)
:
this
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
set
Height
Segments
set
Height
Segments
(
heightSegments
:
number
)
:
this
Parameters
heightSegments:
number
Returns
this
set
Phi
Length
set
Phi
Length
(
phiLength
:
number
)
:
this
Parameters
phiLength:
number
Returns
this
set
Phi
Start
set
Phi
Start
(
phiStart
:
number
)
:
this
Parameters
phiStart:
number
Returns
this
set
Radius
set
Radius
(
radius
:
number
)
:
this
Parameters
radius:
number
Returns
this
set
Theta
Length
set
Theta
Length
(
thetaLength
:
number
)
:
this
Parameters
thetaLength:
number
Returns
this
set
Theta
Start
set
Theta
Start
(
thetaStart
:
number
)
:
this
Parameters
thetaStart:
number
Returns
this
set
Width
Segments
set
Width
Segments
(
widthSegments
:
number
)
:
this
Parameters
widthSegments:
number
Returns
this
Generated using
TypeDoc