Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GltfFactory

Generates a glTF document from mesh data

Hierarchy

  • GltfFactory

Index

Constructors

constructor

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 FromSinglePrimitive

  • FromSinglePrimitive(prim: MeshPrimitive): GltfFactory