Group Details Private

Annoucment Moderators

Posting and Moderation of Announcements

Member List

  • RE: Student projects?

    @Alasdair-McAndrew I don't have any quick suggestions but will add some ideas whenever I come across something.

    There is one trend for JSCAD... collaboration. There are lots of frameworks, websites, applications that can house small applets (I don't have a better term) , and making JSCAD work with some of those would be very cool. I've marked the related issues with a label called collaboration as well.

    posted in Development Discussions
  • RE: Curves described by parametric equations?

    @Alasdair-McAndrew are you looking for something like the Simple Bezier Extrude example? that uses a two curves to extrude a shape in 3D space.

    Code is here... (sorry you cannot see online yet)

    posted in General Discussions
  • RE: Error when saving 2d rendering

    @gilboonet thanks for the information.

    I looked over the design and have a few suggestions.

    Alway use toPolygons() to obtain the polygons, as this function will apply any transforms before returning the polygons.

    //P = geom.toPolygons();
    P = geom.polygons;

    The vol2surf() function is creating 2D points from 3D points, which is fine. However, the toOutlines() function requires 'exact' equal 2D points while finding the outlines.

    In addition, when performing the 2D boolean operations, the 2D geometry is converted to 3D geometry, and converted back to 2D geometry. There's a function called fromFakePolygons() that performs the conversion from 3D to 2D. (booleans/fromFakePolygons.js)

    I think the vol2surf() function should call this function, as there's some 'snapping' applied to the 2D points. If that's not possible then the vol2surf() function should apply some 'snapping' like line 24.

    posted in General Discussions
  • RE: Error when saving 2d rendering

    @gilboonet JSON will not help in the conversion.

    I checked. The DXF serializer is also using geom2.toOutlines()

    posted in General Discussions
  • RE: Error when saving 2d rendering

    @gilboonet there's function called geom2.toOutlines() which converts the 2D geometry into a series of paths (path2). this is required when exporting to SVG (and DXF). i suspect that this function may be the cause of the issue when all the surfaces are unioned together.

    i'll try to reproduce with some simple shapes.

    posted in General Discussions
  • RE: Unexpected Holes into volume extruded from Svg paths

    @gilboonet no problem.

    there's plenty to fix still, but each release improves V2 JSCAD. i'll post an update once there's something to test for this issue.

    posted in General Discussions
  • RE: Unexpected Holes into volume extruded from Svg paths

    @gilboonet what's the target export format? STL?

    this looks like the same issue as discussed in issue #696. the STL export needs an additional step called fixTjunctions(). the current export doesn't guarantee proper meshs with triangles.

    i'll work on this as a priority for the next release.

    posted in General Discussions
  • V2 Update 2020 Nov 11

    Please get the latest version of JSCAD V2, as there have been some changes as well as bug fixes.

    There are now four pre-packed libraries. NOTE: Some of the library names have been changed.

    • core: jscad-core.min.js, UMD library exporting 'jscadCore'
    • modeling: jscad-modeling.min.js, UMD library exporting 'jscadModeling'
    • web: jscad-web.min.js, UMD library exporting 'jscadWeb'
    • regl-renderer: jscad-regl-renderer.min.js, UMD library exporting 'jscadReglRenderer'

    For more information see the README file for the packages.

    New Features:
    all: standardize package contents, improving published packages
    core: added build script and configuration for publishing

    Bug Fixes:
    io: corrected all meta data in deserializer and serializers, and corrected to use package version in meta data
    io-utils: split out Blob and converted to ES5 class, added test suite
    io-utils: converted BinaryReader to ES5 class
    modeling: corrected extrudeWalls to ignore invalid polygons(walls) which occurs if slices overlap
    modeling: corrected slice creation for negative (-x) biased shapes
    regl-renderer: corrected orientation of presets
    regl-renderer: adjusted default rotation rate for auto-rotate
    regl-renderer: corrected entitiesFromSolids to use transforms from geometries
    regl-renderer: corrected zoomToFit to ignore 2D geomerties and visual entites (draw commands)
    web: corrected keyboard shortcuts and selection of auto-rotate
    web: changed the file system watcher to use setTimeout(), and calculate dynamic delays
    web: changed intial camera position so X and Y axis point to positive coordinates

    Successfully published:

    • @jscad/cli@2.0.0-alpha.10
    • @jscad/core@2.0.0-alpha.10
    • @jscad/examples@2.0.0-alpha.5
    • @jscad/amf-deserializer@2.0.0-alpha.7
    • @jscad/amf-serializer@2.0.0-alpha.8
    • @jscad/dxf-deserializer@2.0.0-alpha.7
    • @jscad/dxf-serializer@2.0.0-alpha.7
    • @jscad/io-utils@2.0.0-alpha.7
    • @jscad/io@2.0.0-alpha.9
    • @jscad/json-deserializer@2.0.0-alpha.7
    • @jscad/json-serializer@2.0.0-alpha.7
    • @jscad/obj-deserializer@2.0.0-alpha.7
    • @jscad/stl-deserializer@2.0.0-alpha.8
    • @jscad/stl-serializer@2.0.0-alpha.7
    • @jscad/svg-deserializer@2.0.0-alpha.7
    • @jscad/svg-serializer@2.0.0-alpha.8
    • @jscad/x3d-serializer@2.0.0-alpha.8
    • @jscad/modeling@2.0.0-alpha.7
    • @jscad/array-utils@2.0.0-alpha.4
    • @jscad/img-utils@2.0.0-alpha.4
    • @jscad/regl-renderer@2.0.0-alpha.9
    • @jscad/vtree@2.0.0-alpha.8
    • @jscad/web@2.0.0-alpha.12

    BIG NOTE: The V2 website is also using this release.

    There's on-line documentation as well for those needing additional information about the modeling API.

    For those using a local copy of JSCAD V2, be sure to run the following commands.

    git pull
    npm run clean (and answer Y)
    npm run bootstrap

    Both CLI and WEB UI are usable for creating designs. In the WEB UI, it's best to drag-n-drop project folders to the window, and work with the pieces via a favorite editor. If "Enable auto reload" is checked then changes will be detected, and rendered again.

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

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

    posted in Development Discussions
  • RE: Creating Vases (lampshades), experiences or thoughts

    @rubydesign super big welcome!

    i've had thoughts about a special 'vase' website for many years. it seems very natural to use JSCAD to create all kinds of vases. i think that others have created vases of certain kinds as well.

    here's a few of my thoughts...

    • allow the user to create and adjust the outline of the vase
    • allow the user to twist a shape as well
    • allow the user to specify the internal shape as well
    • allow the user to add pre-configured sections to the vase as well, e.g. wine glass stem
    posted in General Discussions
  • RE: Two questions about projections

    @Alasdair-McAndrew some very interesting questions. 😀

    1. at the moment, there's no way to set the camera position. i think interacting with the camera via a design may be possible. if interested then please create a new issue and add your thoughts about what kind of interactions would be useful.

    2. i just fixed the shortcuts for repositioning the camera. but i haven't looked at the perpective / orthographic camera shortcuts.

    posted in General Discussions