JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Default JSCAD script (index.js) for self-hosted website

    General Discussions
    2
    3
    30
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tjw25425
      tjw25425 last edited by

      Hi everybody, openjscad is really interesting! I've really enjoyed going through your docs and examples. I have an existing application I'm considering integrating openjscad into and I was wondering if there is a specific place to put a index.js file such that it is loaded by "default" when the page loads? I've seen the uri info. Our specific application will involve loading several stl files, performing manual alignments, and exporting the merged stl file. If there is another recommended way to accomplish this, please let me know. Thanks in advance!

      hrgdavor 1 Reply Last reply Reply Quote 0
      • hrgdavor
        hrgdavor @tjw25425 last edited by

        @tjw25425 if you would go in direction uding threejs this could help with faster preview
        https://github.com/gkjohnson/three-bvh-csg

        and then for export use jscad to perform the boolean operations.

        1 Reply Last reply Reply Quote 0
        • hrgdavor
          hrgdavor last edited by

          That is an interesting, but also bit complex use-case. Probably will be heavy on computation, sou you will need to do the computing in a worker. Also you need to pass graphic data for rendering back to main thread. And there is a question if you already have chosen webgl engine, or you can use current jsacad default: regl

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB | Contributors