JSCAD User Group
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

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

    Scheduled Pinned Locked Moved General Discussions
    6 Posts 3 Posters 2.0k Views 2 Watching
    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.
    • tjw25425T Offline
      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!

      hrgdavorH z3devZ 3 Replies Last reply Reply Quote 0
      • hrgdavorH Offline
        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
        • hrgdavorH Offline
          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
          • z3devZ Offline
            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
            • z3devZ Offline
              z3dev @tjw25425
              last edited by

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

              https://rcplanediy.com/

              hrgdavorH 1 Reply Last reply Reply Quote 1
              • hrgdavorH Offline
                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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                Powered by NodeBB | Contributors