export_mesh.ts 447 B

1234567891011121314
  1. function export_mesh_run(path: string, paint_objects: mesh_object_t[] = null, apply_disp: bool = false, merge_vertices: bool = true) {
  2. if (paint_objects == null) {
  3. paint_objects = project_paint_objects;
  4. }
  5. if (context_raw.export_mesh_format == mesh_format_t.OBJ) {
  6. merge_vertices ?
  7. export_obj_run(path, paint_objects, apply_disp) :
  8. export_obj_run_fast(path, paint_objects);
  9. }
  10. else {
  11. export_arm_run_mesh(path, paint_objects);
  12. }
  13. }