init.agi 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. 3D Viewer
  3. A multi-format 3D model viewer for the ArozOS desktop.
  4. Replaces the old SystemAO/utilities/stlViewer.html utility.
  5. Mesh formats are loaded with three.js loaders. CAD formats (STEP / IGES /
  6. BREP) are tessellated in the browser with the OpenCascade based
  7. occt-import-js WASM kernel, which is only fetched when such a file is
  8. opened.
  9. */
  10. var moduleLaunchInfo = {
  11. Name: "3D Viewer",
  12. Desc: "View STL, OBJ, GLB, STEP, G-code and other 3D model files",
  13. Group: "Engineering",
  14. IconPath: "3D Viewer/img/module_icon.svg",
  15. Version: "1.0",
  16. StartDir: "3D Viewer/index.html",
  17. SupportFW: true,
  18. LaunchFWDir: "3D Viewer/index.html",
  19. InitFWSize: [1180, 760],
  20. SupportEmb: true,
  21. LaunchEmb: "3D Viewer/index.html",
  22. InitEmbSize: [1180, 760],
  23. SupportedExt: [
  24. ".stl",
  25. ".obj",
  26. ".glb",
  27. ".gltf",
  28. ".ply",
  29. ".3mf",
  30. ".fbx",
  31. ".dae",
  32. ".step",
  33. ".stp",
  34. ".iges",
  35. ".igs",
  36. ".brep",
  37. ".gcode",
  38. ".gco"
  39. ]
  40. }
  41. registerModule(JSON.stringify(moduleLaunchInfo));