babylonjs.serializers.module.d.ts 717 B

12345678910111213141516171819202122232425262728
  1. /// <reference types="babylonjs"/>
  2. declare module 'babylonjs-serializers' {
  3. export = BABYLON;
  4. }
  5. declare module BABYLON {
  6. class OBJExport {
  7. static OBJ(mesh: Mesh[], materials?: boolean, matlibname?: string, globalposition?: boolean): string;
  8. static MTL(mesh: Mesh): string;
  9. }
  10. }
  11. declare module BABYLON {
  12. class GLTFExport {
  13. /**
  14. * Exports the geometry of a Mesh array in .gltf file format.
  15. * If glb is set to true, exports as .glb.
  16. * @param meshes
  17. * @param materials
  18. * @param glb
  19. */
  20. static GLTF(meshes: Mesh[], filename: string, glb?: boolean): {
  21. [fileName: string]: string | Blob;
  22. };
  23. }
  24. }