JSCAD User Group

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

    Running code in workerthread

    Development Discussions
    3
    5
    607
    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.
    • B
      bitbybit last edited by

      Amazing library, V2 works really well, testing modelling part a lot on https://bitbybit.dev website. Mainly just a question if running V2 JSCAD algorithms, especially boolean operations in worker threads is possible and if so, what approach could be taken to do it? Sorry if question should have been placed to a different part of the forum.

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

        @z3dev yeah, I went 'custom' way before I found JSCAD, I began by exposing VerbNurbs library first and implemented BabylonJS rendering 🙂 but JSCAD adds so much to the project that I'm super enthusiastic about it. Vue part sounds very interesting. While I'm not very familiar with Vue, I suppose by reactive you mean Rxjs kind of reactive? Will have to analyse your project in more detail, thanks!

        1 Reply Last reply Reply Quote 0
        • B
          bitbybit @BarbourSmith last edited by

          @BarbourSmith thanks! Will check that out, this should be a great improvement on UX part and hopefully have a few performance benefits. Could you share your experience on performance part maybe?

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

            @bitbybit thanks! V2 JSCAD is definitely improving now.

            I think several people are working with V2 libraries to create some 'custom' websites.

            I'm also working on some reactive components for VUE. Hopefully, this will help people get moving faster.

            https://github.com/z3dev/vue-components

            There's just one issue... the 'core' package needs to be wrapped properly. I have some changes coming soon, but let us know if you hit some issues.

            B 1 Reply Last reply Reply Quote 0
            • BarbourSmith
              BarbourSmith last edited by BarbourSmith

              I've been doing it with no issues at all. The npm packages make it easy using this library and webpack: https://github.com/josdejong/workerpool

              Edit: Here's an example project: https://github.com/alzatin/JSCAD-worker

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