Search
Preparing search index...
The search index is not available
glTF Generator
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
GltfFactory
Class GltfFactory
Generates a glTF document from mesh data
Hierarchy
GltfFactory
Index
Constructors
constructor
Properties
materials
meshes
scenes
textures
Methods
generateGLTF
From
Single
Primitive
Constructors
constructor
new
Gltf
Factory
(
scenes
?:
Scene
[]
, meshes
?:
Mesh
[]
, materials
?:
Material
[]
, textures
?:
Texture
[]
)
:
GltfFactory
Parameters
Default value
scenes:
Scene
[]
= []
Default value
meshes:
Mesh
[]
= []
Default value
materials:
Material
[]
= []
Default value
textures:
Texture
[]
= []
Returns
GltfFactory
Properties
materials
materials
:
Material
[]
meshes
meshes
:
Mesh
[]
scenes
scenes
:
Scene
[]
textures
textures
:
Texture
[]
Methods
generateGLTF
generateGLTF
(
)
:
Buffer
Returns
Buffer
A buffer containing a glTF document in GLB format
Static
From
Single
Primitive
From
Single
Primitive
(
prim
:
MeshPrimitive
)
:
GltfFactory
Parameters
prim:
MeshPrimitive
Returns
GltfFactory
Globals
Accessor
Component
Type
Accessor
Type
Alpha
Mode
Texture
Mag
Filter
Texture
Min
Filter
Texture
Wrap
Mode
Box
Capsule
Gltf
Factory
constructor
materials
meshes
scenes
textures
generateGLTF
From
Single
Primitive
Image
Material
Mesh
Node
Plane
Quad
Scene
Sphere
Texture
Vertex
Image
Like
Material
Like
Mesh
Like
Mesh
Primitive
Like
Node
Like
Scene
Like
Texture
Like
Vertex
Like
Attribute2
Attribute3
Attribute4
Attribute
Color4
validator
Generates a glTF document from mesh data