OBJExport

Class for generating OBJ data from a Babylon scene.

Hierarchy

  • OBJExport

Index

Methods

Methods

Static MTL

Find examples in Playground
  • MTL(mesh: Mesh): string
  • Exports the material(s) of a mesh in .MTL file format (text)

    Parameters

    • mesh: Mesh

      defines the mesh to extract the material from

    Returns string

    the mtl content

Static OBJ

Find examples in Playground
  • OBJ(mesh: Mesh[], materials?: boolean, matlibname?: string, globalposition?: boolean): string
  • Exports the geometry of a Mesh array in .OBJ file format (text)

    Parameters

    • mesh: Mesh[]

      defines the list of meshes to serialize

    • Optional materials: boolean

      defines if materials should be exported

    • Optional matlibname: string

      defines the name of the associated mtl file

    • Optional globalposition: boolean

      defines if the exported positions are globals or local to the exported mesh

    Returns string

    the OBJ content

Generated using TypeDoc