Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OBJExport

Class for generating OBJ data from a Babylon scene.

Hierarchy

  • OBJExport

Index

Methods

Methods

Static MTLSearch playground for MTL

  • 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 OBJSearch playground for OBJ

  • 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

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method