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

    using an exported STL into a script

    Scheduled Pinned Locked Moved Design Discussions
    17 Posts 3 Posters 4.6k 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.
    • hrgdavorH Offline
      hrgdavor @gilboonet
      last edited by

      @gilboonet for the examples you have here on the screenshots you may get better results by doing booleans in 2d and then extrude.

      The boolean operations in jscad are based on polygons of the geometries and it is a generic algorithm, it is possible from there that you get resulting geometry that looks good, but creates difficulties when slicing.

      You of course want to use the tool that gives you good results right now, but if you have time to investigate this further it would be appreciated.

      It is interesting to me to see if this is something that could be fixed, or at least if there could be a workaround.

      one advantage jscad has over OpenCascade is that regular build of WASM for OCCT is 12MB.

      gilboonetG 1 Reply Last reply Reply Quote 0
      • gilboonetG Offline
        gilboonet @hrgdavor
        last edited by

        @hrgdavor The geometries are good. It's something I'm trying to do with jscad for more than 5 years now and for years, before v2 and last build of v1, it wasn't. I already tried to start from union of difference of rectangles and then extrude, but the STL i get is the same as the one I get from union of difference of cuboids. For me, the advantage that jscad has over Cascade Studio is that it renders 2d, I mostly only use web versions, so the size of a build doesn't matter. One advantage that Cascade Studio has over jscad is that it works even on old android tablets that used to be able to run jscad but doesn't anymore.

        hrgdavorH z3devZ 2 Replies Last reply Reply Quote 0
        • hrgdavorH Offline
          hrgdavor @gilboonet
          last edited by

          @gilboonet it is hard to say why jscad does not work on old tablet, could be many different reasons. It should, but who knows what error happens that it fails. We try to keep it compatible.

          1 Reply Last reply Reply Quote 0
          • z3devZ Offline
            z3dev @gilboonet
            last edited by

            @gilboonet said in using an exported STL into a script:

            One advantage that Cascade Studio has over jscad is that it works even on old android tablets that used to be able to run jscad but doesn't anymore.

            I would guess that those old tablets have a non-ES6 compatible JavaScript engine. The V2 JSCAD code is taking advantage of some of the newer JavaScript features, such as spread operator, etc.

            gilboonetG 1 Reply Last reply Reply Quote 0
            • gilboonetG Offline
              gilboonet @z3dev
              last edited by

              @z3dev I tried to see what ES6 javascript engine it has, only saw the firefox version that is 68.11.0. It displays an error about webgl
              IMG_20211014_082901.jpg
              But I'm using it for years with webgl apps

              But it is not important, it's just that is was very handy to use jscad on it and the screen is bigger than a smartphone screen.

              z3devZ 1 Reply Last reply Reply Quote 0
              • z3devZ Offline
                z3dev @gilboonet
                last edited by

                @gilboonet I have a few old tablets as well, and will test this further. I think we adjusted the code to detect this properly, but may have missed something.

                hrgdavorH 1 Reply Last reply Reply Quote 0
                • hrgdavorH Offline
                  hrgdavor @z3dev
                  last edited by

                  @z3dev this to do with OES_element_index_uint I have added as a step to move fwd to simplify webgl for large geometries where indices easily go over 65536.

                  this check is not required right now as new code for converting to webgl buffers is not yet done.

                  @gilboonet could you upgrade the browser u are using, or install a different one on that tablet ?

                  gilboonetG 2 Replies Last reply Reply Quote 0
                  • gilboonetG Offline
                    gilboonet @hrgdavor
                    last edited by

                    @hrgdavor I think Firefox 68.11.0 is the last one that can be installed in this tablet, I will try to update/install other browsers.

                    1 Reply Last reply Reply Quote 0
                    • gilboonetG Offline
                      gilboonet @hrgdavor
                      last edited by

                      @hrgdavor It's a tablet that I used with my jscad scripts for a long time...
                      IMG_20180408_064832.jpg IMG_20180203_111613.jpg

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

                        this will soon be fixed https://github.com/jscad/OpenJSCAD.org/issues/935

                        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