JSCAD User Group

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

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

    General Discussions
    3
    6
    742
    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 z3dev 3 Replies Last reply Reply Quote 0
      • hrgdavor
        hrgdavor @z3dev last edited by

        @z3dev that is exactly type of projects I want more jscad users to be able to do. It will likely be able to benefit from some of the resopnsiveness improvments I am making.

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

          @tjw25425 here's one of the most advanced websites. And very cool too.

          https://rcplanediy.com/

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

            @tjw25425 Welcome

            There are numerous websites using JSCAD, using the modeling library to create models, and then rendering. At this point, I haven't seen a website that interacts with the model via touch/mouse. Most websites use a custom built script to control the rendering and modeling.

            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