JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. z3dev
    • Profile
    • Following 0
    • Followers 4
    • Topics 139
    • Posts 458
    • Best 68
    • Controversial 0
    • Groups 5

    z3dev

    @z3dev

    administrators

    82
    Reputation
    1105
    Profile views
    458
    Posts
    4
    Followers
    0
    Following
    Joined Last Online
    Website www.z3d.jp Location Yokohama, Japan

    z3dev Unfollow Follow
    Archive Posters Development Moderators Annoucments Moderators Global Moderator administrators

    Best posts made by z3dev

    • Release : 2022 FEB 19

      Release : 2022 FEB 19

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

      Bug Fixes

      web: corrected touch handing to skip rotation while pinching

      Performance Improvements

      modeling: use hypot instead of sqrt when possible
      modeling: changed geom2.toOutlines to use a map when creating unique edges

      Thanks to @platypii and @samuelwang48 for the fixes!

      Successfully published:

      • @jscad/cli@2.2.14
      • @jscad/core@2.5.4
      • @jscad/examples@2.3.2
      • @jscad/amf-deserializer@2.2.6
      • @jscad/amf-serializer@2.1.3
      • @jscad/dxf-deserializer@2.3.10
      • @jscad/dxf-serializer@2.1.3
      • @jscad/io-utils@2.0.13
      • @jscad/io@2.2.4
      • @jscad/json-deserializer@2.0.14
      • @jscad/json-serializer@2.0.13
      • @jscad/obj-deserializer@2.0.13
      • @jscad/obj-serializer@2.1.3
      • @jscad/stl-deserializer@2.1.10
      • @jscad/stl-serializer@2.1.3
      • @jscad/svg-deserializer@2.4.6
      • @jscad/svg-serializer@2.3.1
      • @jscad/x3d-deserializer@2.1.2
      • @jscad/x3d-serializer@2.3.3
      • @jscad/modeling@2.7.2
      • @jscad/img-utils@2.0.2
      • @jscad/regl-renderer@2.5.4
      • @jscad/vtree@2.0.14
      • @jscad/web@2.5.4

      lerna success published 24 packages

      posted in Announcements
      z3dev
      z3dev
    • Access to the (fake) FileSystem in WEB Applications

      Here's something for those wanting 'more' from JSCAD designs.

      The 'fs' (File System) module is available to designs, both NODE.js and WEB versions.

      const fs = require('fs')
      

      The WEB versions is not 100% compatible, but it can provide access to other data. For example, fonts can be added to the contents of a JSCAD project. And the font can be read via the 'fs' module.

      const data = fs.readFileSync('project_text/Osaka.ttf')
      

      And used with the jscad-text project, outlines of characters can be created very easily.

      const {primitives} = require('@jscad/modeling')
      
      const { loadFontFromData, textToPaths } = require('./jscad-text')
      
      const fs = require('fs')
      
      const main = (params) => {
        const data = fs.readFileSync('project_text/Osaka.ttf')
      
        const font = loadFontFromData(data)
      
        const paths = textToPaths({font, segments: 144}, 'JSCAD! 大好きです!')
      
        return paths
      }
      
      module.exports = { main }
      

      5.png

      posted in Development Discussions
      z3dev
      z3dev
    • 2000 ⭐️ ⭐️ ⭐️

      2000 ⭐️ ⭐️ ⭐️

      Hopefully everyone is watching the progress of JSCAD. It continues to build popularity, and now has 2000 stars. Please visit the JSCAD project at GitHub.

      posted in Announcements
      z3dev
      z3dev
    • Release : 2022 JUN 12

      Release : 2022 JUN 12

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

      Features

      • x3d-serializer: enhanced to convert 2D geometry and path to X3D Polyline2D

      Bug Fixes

      • examples: create uniform segments for involute gear example
      • modeling: use special trig functions for rotations in maths and primitives

      Performance Improvements

      • modeling: optimize poly3.measureBoundingSphere and cache results for performance
      • modeling: replace Math.hypot with faster Math.sqrt()

      Thanks to @briansturgill for providing performance hints in the BSP trees.
      Those hints have resulted in 40 to 50% boosts in performance.

      Also, improved TypeScript definitions for all geometries.

      Successfully published:

      • @jscad/cli@2.2.21
      • @jscad/core@2.6.1
      • @jscad/examples@2.4.1
      • @jscad/3mf-serializer@2.1.4
      • @jscad/amf-deserializer@2.3.0
      • @jscad/amf-serializer@2.1.10
      • @jscad/dxf-deserializer@2.3.17
      • @jscad/dxf-serializer@2.1.10
      • @jscad/io-utils@2.0.20
      • @jscad/io@2.4.0
      • @jscad/json-deserializer@2.0.21
      • @jscad/json-serializer@2.0.20
      • @jscad/obj-deserializer@2.0.20
      • @jscad/obj-serializer@2.1.10
      • @jscad/stl-deserializer@2.1.17
      • @jscad/stl-serializer@2.1.10
      • @jscad/svg-deserializer@2.5.0
      • @jscad/svg-serializer@2.3.8
      • @jscad/x3d-deserializer@2.2.0
      • @jscad/x3d-serializer@2.4.0
      • @jscad/modeling@2.9.5
      • @jscad/regl-renderer@2.6.1
      • @jscad/vtree@2.0.21
      • @jscad/web@2.5.11

      lerna success published 24 packages

      posted in Announcements
      z3dev
      z3dev
    • 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
      z3dev
      z3dev
    • Maker Faire Tokyo 2019

      We had a great time showing JSCAD at Maker Faire, showing both V1 and V2 (alpha alpha) to folks, as well as entertaining kids with a small toy designed with JSCAD. As usual, the faire was packed both Saturday and Sunday.

      3_1565402041636_IMG_1700.JPG 2_1565402041636_IMG_1699.JPG 1_1565402041636_IMG_1716.JPG 0_1565402041636_IMG_1719.JPG

      posted in General Discussions
      z3dev
      z3dev
    • Release : 2021 OCT 04

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

      Bug Fixes

      core: fix missing json5 dependency
      dxf-serializer: corrected selection of color palettes
      modeling: corrected vec2.rotate, and enhanced test cases:w

      Thanks to @platypil for the fix to the dxf-serializer

      Successfully published:

      • @jscad/cli@2.2.8
      • @jscad/core@2.3.8
      • @jscad/amf-deserializer@2.2.1
      • @jscad/amf-serializer@2.0.9
      • @jscad/dxf-deserializer@2.3.5
      • @jscad/dxf-serializer@2.0.9
      • @jscad/io-utils@2.0.8
      • @jscad/io@2.0.9
      • @jscad/json-deserializer@2.0.9
      • @jscad/json-serializer@2.0.8
      • @jscad/obj-deserializer@2.0.8
      • @jscad/stl-deserializer@2.1.5
      • @jscad/stl-serializer@2.0.9
      • @jscad/svg-deserializer@2.4.1
      • @jscad/svg-serializer@2.2.6
      • @jscad/x3d-serializer@2.2.7
      • @jscad/modeling@2.5.3
      • @jscad/regl-renderer@2.4.1
      • @jscad/vtree@2.0.9
      • @jscad/web@2.4.3
      posted in Announcements
      z3dev
      z3dev
    • polygonjs

      Here's some inspiration for those wanting to build something cool. @frading has created a completely new WEB UI for creating interactive designs, called polygonjs

      posted in Design Discussions
      z3dev
      z3dev
    • Release : 2022 MAR 03

      Release : 2022 MAR 03

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

      Bug Fixes

      io: removed size limitation in Blob
      modeling: fixed TS type of relativeTo in align() options
      web: corrected uncaught type error in viewer

      Features

      modeling: enchanced extrudeLinear to support path2

      Performance Improvements

      modeling: improved performace of path2 offsets
      modeling: improved performance of expanding geom3, and bug fix
      modeling: use Set to create unique points in hullPath2

      And lots of API documentation fixes and enhancements.

      Thanks to @platypii @samuelwang48 @kume-negitoro for the great changes!

      Successfully published:

      • @jscad/cli@2.2.15
      • @jscad/core@2.5.5
      • @jscad/amf-deserializer@2.2.7
      • @jscad/amf-serializer@2.1.4
      • @jscad/dxf-deserializer@2.3.11
      • @jscad/dxf-serializer@2.1.4
      • @jscad/io-utils@2.0.14
      • @jscad/io@2.2.5
      • @jscad/json-deserializer@2.0.15
      • @jscad/json-serializer@2.0.14
      • @jscad/obj-deserializer@2.0.14
      • @jscad/obj-serializer@2.1.4
      • @jscad/stl-deserializer@2.1.11
      • @jscad/stl-serializer@2.1.4
      • @jscad/svg-deserializer@2.4.7
      • @jscad/svg-serializer@2.3.2
      • @jscad/x3d-deserializer@2.1.3
      • @jscad/x3d-serializer@2.3.4
      • @jscad/modeling@2.8.0
      • @jscad/array-utils@2.1.2
      • @jscad/regl-renderer@2.5.5
      • @jscad/vtree@2.0.15
      • @jscad/web@2.5.5
        lerna success published 23 packages
      posted in Announcements
      z3dev
      z3dev
    • Release : 2022 APR 24

      Release : 2022 APR 24

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

      Bug Fixes

      • modeling: corrected torus manifolds
      • modeling: removed path2.eachPoint which was broken and unused
      • modeling: reworked project to correct union of small polygons
      • regl-render: removed unnecessary preventDefault in demo.html
      • web: remove unused file handling and storage path options

      Performance Improvements

      • modeling: changed internals to use geom3.create(), path2.create(), poly3.create()
      • modeling: faster geom2.toOutlines
      • modeling: performance improvements to mergePolygons and triangulatePolygons

      There have also been some style changes to the website, so please let us know if anything looks strange.

      Successfully published:

      • @jscad/cli@2.2.19
      • @jscad/core@2.5.9
      • @jscad/examples@2.3.4
      • @jscad/3mf-serializer@2.1.2
      • @jscad/amf-deserializer@2.2.11
      • @jscad/amf-serializer@2.1.8
      • @jscad/dxf-deserializer@2.3.15
      • @jscad/dxf-serializer@2.1.8
      • @jscad/io-utils@2.0.18
      • @jscad/io@2.3.2
      • @jscad/json-deserializer@2.0.19
      • @jscad/json-serializer@2.0.18
      • @jscad/obj-deserializer@2.0.18
      • @jscad/obj-serializer@2.1.8
      • @jscad/stl-deserializer@2.1.15
      • @jscad/stl-serializer@2.1.8
      • @jscad/svg-deserializer@2.4.11
      • @jscad/svg-serializer@2.3.6
      • @jscad/x3d-deserializer@2.1.5
      • @jscad/x3d-serializer@2.3.8
      • @jscad/modeling@2.9.3
      • @jscad/array-utils@2.1.4
      • @jscad/img-utils@2.0.5
      • @jscad/regl-renderer@2.5.9
      • @jscad/vtree@2.0.19
      • @jscad/web@2.5.9
      posted in Announcements
      z3dev
      z3dev

    Latest posts made by z3dev

    • RE: Default JSCAD script (index.js) for self-hosted website

      @tjw25425 here's one of the most advanced websites. And very cool too.

      https://rcplanediy.com/

      posted in General Discussions
      z3dev
      z3dev
    • RE: Getting values from a geometry

      @gilboonet geom2.toSides() should be called to obtain the sides. however, the sides are not ordered like a path. if you need ordering then a better option is calling toOutlines() which will provide each outline as a set of ordered points.

      posted in Design Discussions
      z3dev
      z3dev
    • RE: Default JSCAD script (index.js) for self-hosted website

      @tjw25425 Welcome

      There are numerous websites using JSCAD, using the modeling library to create models, and then rendering. At this point, I haven't seen a website that interacts with the model via touch/mouse. Most websites use a custom built script to control the rendering and modeling.

      posted in General Discussions
      z3dev
      z3dev
    • RE: How to use vec2/3 classes

      @gilboonet the example looks fine. You can create, rotate, transform all the math objects..

      Now comes the fun part... curves, distances, etc. There are little tidbits of logic throughout the library. You can find some of the basic calculations in the primitives, I.e. arc, circle, sphere, etc.

      And of course, let us know if you have questions.

      posted in Design Discussions
      z3dev
      z3dev
    • RE: Designing with text

      For those looking for support for fonts, there's a little library that can be used in projects.

      https://github.com/jscad-community/jscad-text

      posted in Design Discussions
      z3dev
      z3dev
    • RE: A project for rendering JSCAD in JupyterLab

      @TerryGeng WOW! Thanks for the really nice introduce to Jupyterlab, and the new JSCAD plugin.

      Hopefully some of the members will try this out. I know there are some members using VSCode, and Jupyterlab may be a nice alternative.

      Just a question... can existing designs be imported into Jupyterlab easily?

      posted in General Discussions
      z3dev
      z3dev
    • Release : 2023 JAN 09

      Release : 2023 JAN 09

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

      Bug Fixes

      • regl-renderer: corrected rendering of overlapping transparent solid objects
      • web: add render hotkey message in editor

      Thanks to @Loosetooth and @hrgdavor for the fixes.
      As well as @ntrrgc for the document improvements.

      Successfully published:

      • @jscad/regl-renderer@2.6.5
      • @jscad/web@2.6.3

      lerna success published 2 packages

      posted in Announcements
      z3dev
      z3dev
    • Release : 2022 NOV 26

      Release : 2022 NOV 26

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

      Features

      • modeling: added extrudeHelical

      Bug Fixes

      • modeling: added TS definitions for missing measurement functions

      Thanks to @Loosetooth for the new extrudeHelical() functionality.

      Thanks to @atkinchris for the TS definition fixes.

      Thanks to @Jamesgt for some documentation improvements.

      AND THANKS TO EVERYONE FOR THE GREAT FEEDBACK AND SUPPORT. IT'S BEEN A SUPER 2022!!!

      Successfully published:

      • @jscad/cli@2.2.25
      • @jscad/core@2.6.5
      • @jscad/3mf-serializer@2.1.7
      • @jscad/amf-deserializer@2.3.3
      • @jscad/amf-serializer@2.1.13
      • @jscad/dxf-deserializer@2.3.20
      • @jscad/dxf-serializer@2.1.13
      • @jscad/io-utils@2.0.23
      • @jscad/io@2.4.4
      • @jscad/json-deserializer@2.0.24
      • @jscad/json-serializer@2.0.23
      • @jscad/obj-deserializer@2.0.23
      • @jscad/obj-serializer@2.1.13
      • @jscad/stl-deserializer@2.1.20
      • @jscad/stl-serializer@2.1.13
      • @jscad/svg-deserializer@2.5.4
      • @jscad/svg-serializer@2.3.11
      • @jscad/x3d-deserializer@2.2.3
      • @jscad/x3d-serializer@2.4.3
      • @jscad/modeling@2.11.0
      • @jscad/regl-renderer@2.6.4
      • @jscad/vtree@2.0.24
      • @jscad/web@2.6.2

      lerna success published 23 packages

      posted in Announcements
      z3dev
      z3dev
    • Release : 2022 SEP 23

      Release : 2022 SEP 23

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

      Bug Fixes

      • svg-deserializer: corrected logic to allow path start == end point

      Thanks to @hrgdavor for the nice fixes.

      Successfully published:

      • @jscad/cli@2.2.24
      • @jscad/core@2.6.4
      • @jscad/io@2.4.3
      • @jscad/svg-deserializer@2.5.3
      • @jscad/web@2.6.1

      lerna success published 5 packages

      Please note that support for Node.js 12 will be removed soon. Node.js 14, 16 and 18 are the maintained versions.

      posted in Announcements
      z3dev
      z3dev
    • RE: Transform a 2D rectangle to a L shape

      @Antoine-Guillaume thanks for joining!

      You won't be able to precisely mimic the bending of steel plates. Maybe

      You can use offset to create a round bend. First, create a path for the L, then offset the path to create rounded corners. And finally, extrude linearly to create the plate.

      Please experiment. I think that you can find an answer.

      There are other ways as well, so let us know if you need more help.

      By the way, we have many members so please us you favorite language.

      posted in Design Discussions
      z3dev
      z3dev