Group Details Private

administrators

Member List

  • RE: Running single tests...

    @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.

    posted in Development Discussions
  • RE: 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()

    posted in Development Discussions
  • RE: Additions for consideration...

    @simonclark Nice innovations to V2. 😎

    I think some others will be interested in the automatic VM launch, and configuration. Please consider adding a pull request to the V2 branch.

    I'm also excited to see another use of the new extrude functions.

    Funny... I don't remember math.bezier() 😉 There was talk about adding bezier() to the primitives, but no time. Again, please consider adding a pull request to the V2 branch.

    posted in Development Discussions
  • RE: All parameters being ignored in local install.

    Hi Simon,

    When you say 'contributing' the I'm guessing that you are going to work with JSCAD V2. Please follow the notes in Early Adoption of V2.

    The JSCAD V2 API is different, so you'll also need to see the documentation. You can generate the documentation as well by running..

    npm run docs
    

    There will be a full set of documentation in the 'out' directory, i.e. HTML files. Just open 'index.html' with any browser.

    posted in Development Discussions
  • RE: Flattening 3d triangle

    Cool. But be careful as the boolean operations can create polygons with more than three (3) vertices. Also, some of the primitives create polygons with four (4) vertices.

    posted in Development Discussions
  • V2 Update

    JSCAD V2 is moving along, with recent changes focusing on the WEB UI. Some annoying bugs have been fixed so get the latest and greatest changes from the V2 branch.

    One of the features of JSCAD V2 are themes. Those are now working properly, and there are some new themes as well.

    3_1593148916659_ocean_theme.png 2_1593148916659_grass_theme.png 1_1593148916659_dark_theme.png 0_1593148916659_light_theme.png

    Another area of improvement has been the support for projects. One of the main goals of JSCAD V2 has been the support of reusable of components, especially from other members. You should be able to use the same projects via CLI (command line) or WEB UI. It's kind of 'alpha' but please try assembling some projects.

    For those wanting to get hold of JSCAD V2, it's still in 'early adoption' mode. But you can start here to get started.

    And a BIG THANKS for everyone that has provided feedback. Keep those comments coming!

    posted in Development Discussions
  • RE: little V2 feedback

    @gilboonet are you using the 'dark' theme?

    yeah. there's still some issues in the web UI.

    posted in Development Discussions
  • RE: little V2 feedback

    @gilboonet nice example.

    I understand now. Those vec3 functions return a Float32Array, which is NOT an Array. 😞

    For now, you can use ES6 javascript syntax to make things easier.

    vol = transforms.translate([ ...d2 ], vol)
    

    By the way, the latest V2 branch has a fix for the documentation on colors.

    posted in Development Discussions
  • RE: little V2 feedback

    @gilboonet said in little V2 feedback:

    Functions like translate or size attribute of a primitive that need an array doesn't accept a variable containing an array but only a litteral array. Are there coding basics to know to work with vec3/vec2 ?

    You should be able to do this...

    let mysize = [2, 3, 4]
    let myshape = primitives.cuboid({size: mysize})
    
    posted in Development Discussions
  • RE: little V2 feedback

    @gilboonet said in little V2 feedback:

    I wasn't able to use color library, and the generated doc about modeling/color is empty, so maybe it is not available for the moment, or did I miss something during installation ?

    Ooops! There's a little name issue in the documention. Will be fixed soon.

    posted in Development Discussions