JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. SimonClark
    3. Topics
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 9
    • Best 0
    • Controversial 0
    • Groups 2

    Topics created by SimonClark

    • SimonClark

      Bezier tubes
      Development Discussions • • SimonClark

      2
      0
      Votes
      2
      Posts
      397
      Views

      z3dev

      @SimonClark this is cool. thanks for sharing.

      FYI, this functionality will behave far better after the next update, which folds full numeric precision back into the library. (And 10X improved speed is included for free!)

    • SimonClark

      Running single tests...
      Development Discussions • • SimonClark

      2
      0
      Votes
      2
      Posts
      363
      Views

      z3dev

      @SimonClark no problem. and welcome to the world of jscad development. 🤓

      so, each of the packages are managed via 'lerna'. lerna is kind of cool because it automatically detects the dependencies and links everything together during the 'bootstrap' phase.

      once everything is linked together, then you can make changes to any of the code, and rerun tests, or run CLI / WEB.

      also, each of the packages can be tested individually. for example, you can change directories to packages/modeling, and run the tests using 'npm test'.

      if there's too much noise then you can move the *.test.js files into a temporary directory, and test something special by creating another *.test.js file.

      AVA is the test harness of choice. It's cool.

    • SimonClark

      Additions for consideration...
      Development Discussions • • SimonClark

      5
      0
      Votes
      5
      Posts
      691
      Views

      SimonClark

      @z3dev said in Additions for consideration...:

      @simonclark cool.

      FYI, there's a bezier function as part of path2 geometry which is based on the SVG algorithm. See src/geometry/path2/appendBezier()

      Thanks! I'm taking a look at this, and try to make sure the interfaces are similar.

      My goal was to create something that I could use as an easing function in scaling, rotating, etc. I've also updated the algorithm to support n'th dimensions, and n'th order polynomials (control points).

    • SimonClark

      All parameters being ignored in local install.
      Development Discussions • • SimonClark

      4
      0
      Votes
      4
      Posts
      626
      Views

      SimonClark

      thanks @z3dev. I made some bad assumptions about what docs were relevant 🙂