Search
Preparing search index...
The search index is not available
anigraphx-react
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
anigraphx-react
VertexArray3D
Class VertexArray3D
Hierarchy
VertexArray
<
Vec3
>
VertexArray3D
Index
Constructors
constructor
Properties
_uid
attributes
indices
Accessors
color
n
Verts
normal
position
uid
uv
Methods
Apply
Matrix
add
TriangleCCW
add
Vertex
clone
get
Attribute
Array
get
Bounds
set
Attribute
Array
toJSON
Bounding
Box
Mesh
Verts
For
Object3D
Create
For
Rendering
From
ThreeJS
From
Vec3
List
Frustum
From
Projection
Matrix
Mesh
Verts
For
Bounding
Box3D
Sprite
Geometry
SquareXYUV
Constructors
constructor
new
Vertex
Array3D
(
)
:
VertexArray3D
Returns
VertexArray3D
Properties
Protected
_uid
_uid
:
string
= ''
attributes
attributes
:
{}
= {}
Type declaration
[
name:
string
]:
VertexAttributeArray
<
any
>
indices
indices
:
VertexIndexArray
Accessors
color
get
color
(
)
:
VertexAttributeArray
<
any
>
set
color
(
value
:
VertexAttributeArray
<
any
>
)
:
void
Returns
VertexAttributeArray
<
any
>
Parameters
value:
VertexAttributeArray
<
any
>
Returns
void
n
Verts
get
nVerts
(
)
:
number
Returns
number
normal
get
normal
(
)
:
VertexAttributeArray3D
set
normal
(
value
:
VertexAttributeArray3D
)
:
void
Get set normal
Returns
VertexAttributeArray3D
Get set normal
Parameters
value:
VertexAttributeArray3D
Returns
void
position
get
position
(
)
:
VertexAttributeArray3D
set
position
(
value
:
VertexAttributeArray3D
)
:
void
Get set position
Returns
VertexAttributeArray3D
Get set position
Parameters
value:
VertexAttributeArray3D
Returns
void
uid
get
uid
(
)
:
string
Returns
string
uv
get
uv
(
)
:
VertexAttributeArray2D
set
uv
(
value
:
VertexAttributeArray2D
)
:
void
Get set uv
Returns
VertexAttributeArray2D
Get set uv
Parameters
value:
VertexAttributeArray2D
Returns
void
Methods
Apply
Matrix
Apply
Matrix
(
m
:
Mat3
|
Mat4
)
:
void
Parameters
m:
Mat3
|
Mat4
Returns
void
add
TriangleCCW
add
TriangleCCW
(
A
:
Vec3
, B
:
Vec3
, C
:
Vec3
, uv
?:
Vec2
[]
, color
?:
Vec4
[]
)
:
void
Parameters
A:
Vec3
B:
Vec3
C:
Vec3
Optional
uv:
Vec2
[]
Optional
color:
Vec4
[]
Returns
void
add
Vertex
add
Vertex
(
v
:
Vec3
, normal
?:
Vec3
, uv
?:
Vec2
, color
?:
Vec4
|
Color
)
:
void
Parameters
v:
Vec3
Optional
normal:
Vec3
Optional
uv:
Vec2
Optional
color:
Vec4
|
Color
Returns
void
clone
clone
(
)
:
VertexArray3D
Returns
VertexArray3D
get
Attribute
Array
get
Attribute
Array
(
name
:
string
)
:
VertexAttributeArray
<
any
>
Parameters
name:
string
Returns
VertexAttributeArray
<
any
>
get
Bounds
get
Bounds
(
)
:
BoundingBox3D
Returns
BoundingBox3D
set
Attribute
Array
set
Attribute
Array
(
name
:
string
, attributeArray
:
VertexAttributeArray
<
any
>
)
:
void
Parameters
name:
string
attributeArray:
VertexAttributeArray
<
any
>
Returns
void
toJSON
toJSON
(
)
:
{}
Returns
{}
[
name:
string
]:
any
Static
Bounding
Box
Mesh
Verts
For
Object3D
Bounding
Box
Mesh
Verts
For
Object3D
(
obj
:
Object3D
)
:
VertexArray3D
Parameters
obj:
Object3D
Returns
VertexArray3D
Static
Create
For
Rendering
Create
For
Rendering
(
hasNormals
?:
boolean
, hasTextureCoords
?:
boolean
, hasColors
?:
boolean
)
:
VertexArray3D
Parameters
hasNormals:
boolean
= true
hasTextureCoords:
boolean
= true
hasColors:
boolean
= false
Returns
VertexArray3D
Static
From
ThreeJS
From
ThreeJS
(
buffergeo
:
BufferGeometry
)
:
VertexArray3D
Parameters
buffergeo:
BufferGeometry
Returns
VertexArray3D
Static
From
Vec3
List
From
Vec3
List
(
verts
:
Vec3
[]
)
:
VertexArray3D
Parameters
verts:
Vec3
[]
Returns
VertexArray3D
Static
Frustum
From
Projection
Matrix
Frustum
From
Projection
Matrix
(
P
:
Mat4
, imagePlaneDepth
?:
number
)
:
VertexArray3D
Parameters
P:
Mat4
imagePlaneDepth:
number
= 100
Returns
VertexArray3D
Static
Mesh
Verts
For
Bounding
Box3D
Mesh
Verts
For
Bounding
Box3D
(
bounds
:
BoundingBox3D
)
:
VertexArray3D
Parameters
bounds:
BoundingBox3D
Returns
VertexArray3D
Static
Sprite
Geometry
Sprite
Geometry
(
texture
:
ATexture
, scale
?:
number
)
:
VertexArray3D
Parameters
texture:
ATexture
scale:
number
= 100
Returns
VertexArray3D
Static
SquareXYUV
SquareXYUV
(
scale
?:
number
, wraps
?:
number
)
:
VertexArray3D
Parameters
scale:
number
= 1
wraps:
number
= 1
Returns
VertexArray3D
Exports
Interaction
Tracking
Data
Vertex
Array3D
constructor
_uid
attributes
indices
color
n
Verts
normal
position
uid
uv
Apply
Matrix
add
TriangleCCW
add
Vertex
clone
get
Attribute
Array
get
Bounds
set
Attribute
Array
toJSON
Bounding
Box
Mesh
Verts
For
Object3D
Create
For
Rendering
From
ThreeJS
From
Vec3
List
Frustum
From
Projection
Matrix
Mesh
Verts
For
Bounding
Box3D
Sprite
Geometry
SquareXYUV
Generated using
TypeDoc
Get set normal