Group Details Private

Global Moderators

Forum wide moderators

Member List

  • RE: V2 feedback

    The WHOLE 3D shape is projected to 2D. If you want to project a ‘slice’ then use the booleans to make a ‘slice’, and project the ‘slice’.

    posted in Development Discussions
  • RE: V2 feedback

    The origin and axis create a plane, which passes through the origin and lays facing up the axis. Just like the grid passes through [0,0,0] and faces up the Z axis.

    The plane can be placed anywhere, which makes it easy to project different views of the 3D shape. No rotation or positioning of the 3D shape is required.

    posted in Development Discussions
  • Release : 2021 JUN 20

    There's a new release of JSCAD, including changes from several pull requests.

    Features

    modeling: added mat4.isIdentity()
    regl-renderer: added new command drawLines, and adjusted demos (#863)

    NOTES:

    1. For applications that use regl-renderer, please update the options for the renderer.
      drawCommands: {
        // draw commands bootstrap themselves the first time they are run
        drawAxis: drawCommands.drawAxis,
        drawGrid: drawCommands.drawGrid,
        drawLines: drawCommands.drawLines, // NEW
        drawMesh: drawCommands.drawMesh
      }
    

    Successfully published:

    • @jscad/cli@2.2.5
    • @jscad/core@2.3.5
    • @jscad/amf-deserializer@2.1.2
    • @jscad/amf-serializer@2.0.6
    • @jscad/dxf-deserializer@2.3.2
    • @jscad/dxf-serializer@2.0.6
    • @jscad/io-utils@2.0.5
    • @jscad/io@2.0.6
    • @jscad/json-deserializer@2.0.6
    • @jscad/json-serializer@2.0.5
    • @jscad/obj-deserializer@2.0.5
    • @jscad/stl-deserializer@2.1.2
    • @jscad/stl-serializer@2.0.6
    • @jscad/svg-deserializer@2.2.4
    • @jscad/svg-serializer@2.2.3
    • @jscad/x3d-serializer@2.2.4
    • @jscad/modeling@2.5.0
    • @jscad/regl-renderer@2.2.0
    • @jscad/vtree@2.0.6
    • @jscad/web@2.4.0
    posted in Announcements
  • RE: V2 feedback

    @gilboonet thanks for the feedback.

    I have a few questions about the process of slicing.

    Are you creating the slices? How?

    That error is from the geom2.fromPoints() when less than three points are provided. There may be an edge case where the projection created an invalid set of points.

    Can you provide the stack trace? It should be in the browser console.

    posted in Development Discussions
  • Release : 2021 JUN 11

    There's a new release of JSCAD, including changes from several pull requests.

    Features

    modeling: added mat4.invert (#860)

    Bug Fixes

    cli: corrected assembly of options for serialization and deserialization
    amf-deserializer: corrected conversion of color specifications found on object elements
    amf-serializer: corrected conversion of colors found on geometries and polygons
    dxf-deserializer: corrected conversion of color values found on entities
    io: corrected assembly of serialization options in generateOutputData
    svg-deserializer: corrected conversion of stroke/fill to geometry color
    modeling: corrected snapPolygons to maintain color attributes
    modeling: corrected triangulatePolygons to maintain color attributes
    web: fix render onresize (#854)

    Performance Improvements

    web: removed JSON serialization of solids between worker and main threads (#853)

    Successfully published:

    • @jscad/cli@2.2.4
    • @jscad/core@2.3.4
    • @jscad/amf-deserializer@2.1.1
    • @jscad/amf-serializer@2.0.5
    • @jscad/dxf-deserializer@2.3.1
    • @jscad/dxf-serializer@2.0.5
    • @jscad/io-utils@2.0.4
    • @jscad/io@2.0.5
    • @jscad/json-deserializer@2.0.5
    • @jscad/json-serializer@2.0.4
    • @jscad/obj-deserializer@2.0.4
    • @jscad/stl-deserializer@2.1.1
    • @jscad/stl-serializer@2.0.5
    • @jscad/svg-deserializer@2.2.3
    • @jscad/svg-serializer@2.2.2
    • @jscad/x3d-serializer@2.2.3
    • @jscad/modeling@2.4.0
    • @jscad/regl-renderer@2.1.3
    • @jscad/vtree@2.0.5
    • @jscad/web@2.3.3

    Thanks to @hrgdavor for the performance improvements.

    posted in Announcements
  • RE: using vector operations (subtract)

    You can find the API documentation at www.Openjscad.xyz/docs/

    There should be some simple examples as well.

    posted in Development Discussions
  • RE: using vector operations (subtract)

    @gilboonet you hit one of the differences in the maths.

    Change

    subtract(a, b) to subtract(a, a, b)

    If you need to then create a new vec.

    subtract(vec3.create(), a, b)

    posted in Development Discussions
  • RE: 3d to 2d

    @Maria-Alzate Just for your information, as part of the last release, there's a new project() function which can project a 3D shape to a 2D shape.

    posted in General Discussions
  • RE: Can't find command for 3D to 2D Projection

    @geobruce Just for your information, as part of the last release, there's a new project() function which can project a 3D shape to a 2D shape.

    posted in General Discussions
  • RE: Two questions about projections

    @Alasdair-McAndrew Just for your information, as part of the last release, there's a new project() function which can project a 3D shape to a 2D shape.

    posted in General Discussions