JSCAD User Group

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

    z3dev

    @z3dev

    administrators

    88
    Reputation
    1137
    Profile views
    492
    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
    • RE: JSCAD geometry engine project

      For those wondering, @platypii is a new member of the development team. He’s already put together some super nice fixes. In addition, he never sleeps so things are moving along at light speed. 😎

      So, please let him know if there’s something missing from JSCAD.

      posted in Development Discussions
      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

    Latest posts made by z3dev

    • RE: Old version of rollup

      @hpb-htw Super! You understand well.

      Each package will have a slightly different version, as Lerna determines major/minor/fix versions by changes. The main package is never released so, the version stays the same, but should be 3.0.0.

      Please take another look at utils/regl-renderer package. The demo html files are slightly different in V3.

      posted in General Discussions
      z3dev
      z3dev
    • RE: Old version of rollup

      @hpb-htw V2 uses Lerna to manage each package, including building and publishing the distributions to NPM. See the link in the main README.

      As part of the build process. Lerna calls the build step of each package. This step uses browserify.

      If you switch to the V3 branch then you will find that The build step is using rollup.

      So, be careful. Don't mix the versions.

      By the way, the CONTRIBUTING document explains how to setup, make changes, test changes, and submit changes back to GIT. Please follow the document.

      posted in General Discussions
      z3dev
      z3dev
    • RE: Using JScad just to display 3D-Object

      @hpb-htw Nice! You might be the first person using V3.

      So, V3 is currently in Alpha release. Or course, V3 is in the same GIT repository but on the V3 branch. So, you can get all the packages by checking out the branch.

      git checkout V3

      Again, take a look at the demos in regl-rendering

      posted in General Discussions
      z3dev
      z3dev
    • RE: Using JScad just to display 3D-Object

      @hpb-htw you can use V2 (commonjs/require) or you can use V3 (es6/import). Both are passing all tests.

      Do you want to try V3? It's still Alpha but works well.

      @hrgdavor What do you think?

      posted in General Discussions
      z3dev
      z3dev
    • RE: Using JScad just to display 3D-Object

      @hpb-htw Welcome!

      The web package is a very complex web-application.

      You can find a very simple viewer in the packages/utils/regl-render directory. See the html files for an example.

      Let us know if you need more.

      posted in General Discussions
      z3dev
      z3dev
    • RE: Modifying Variables From Imported Parametric model

      @shay-cerny Welcome

      This isn't exhaustive but lists some of the websites using JSCAD.

      https://openjscad.xyz/dokuwiki/doku.php?id=en:user_guide_help

      posted in Development Discussions
      z3dev
      z3dev
    • Release V3 Alpha : 2025 JAN 05

      Release V3 Alpha : 2025 JAN 05

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

      Bug Fixes

      • cli: rework logic for generating blobs, both singular and multiple as parts ([f88669b](https://github.com/jscad/Op
      • io: fix io after V3 refactoring
      • x3d-deserializer: corrected to accept commas as MF value delimiters
      • x3d-deserializer: correcting caching of x3d attributes in createX3DParser, allowing continuous parsing of X3D file
      • modeling: added geom3.fromPointsConvex()
      • modeling: added new TS definitions for mat4, and adjusted doc strings
      • modeling: added orientation option to polygon
      • modeling: corrected checks of parameters to booleans
      • modeling: corrected geom2 mirroring transform
      • modeling: corrected parameter names to follow standards
      • modeling: create scission.d.ts and update index.d.ts
      • modeling: created TS definitions for splitPolygonByPlane
      • modeling: fix ts definitions and ts hints in comments
      • modeling: small fixes to comments and tests
      • modeling: use modern typescript imports
      • array-utils: corrected typescript definitions, added test:tsd script
      • regl-renderer: define the entity type and corrected TS definitions

      Features

      • 3mf-deserializer: initial version of 3MF deserializer and tests
      • cli: reworked logic to use new io package exports and functions
      • modeling: reworked exports to expose a flattened API
      • modeling: renamed poly3 toVertices and fromVerticesAndPlane
      • modeling: added Martinez library for 2D booleans, refactored 2D booleans
      • modeling: added validate to slice, as well as measurements
      • modeling: corrected vectorChar and vectorText options to align with the common API
      • modeling: enhanced poly2 into a complete geometry
      • modeling: preserve color for offset and extrude
      • modeling: remove unused mat4 functions
      • modeling: removed extrudeRectangular
      • modeling: rename expansions to offsets, and unify expand into offset
      • modeling: renamed poly3 toVertices and fromVerticesAndPlane
      • modeling: rework orthonormal formula
      • modeling: reworked exports to expose a flattened API
      • modeling: reworked vectorChar and vectorText to return segments as path2 objects
      • modeling: support nested array structures in the API
      • regl-renderer: added rollup configuration to create ES6 bundle, adjusted imports and exports

      Successfully published:

      • @jscad/3mf-deserializer@3.0.1-alpha.0
      • @jscad/3mf-serializer@3.0.1-alpha.0
      • @jscad/array-utils@3.0.1-alpha.0
      • @jscad/cli@3.0.1-alpha.0
      • @jscad/core@3.0.1-alpha.0
      • @jscad/dxf-deserializer@3.0.1-alpha.0
      • @jscad/dxf-serializer@3.0.1-alpha.0
      • @jscad/io@3.0.1-alpha.0
      • @jscad/io-utils@3.0.1-alpha.0
      • @jscad/json-deserializer@3.0.1-alpha.0
      • @jscad/json-serializer@3.0.1-alpha.0
      • @jscad/modeling@3.0.1-alpha.0
      • @jscad/obj-deserializer@3.0.1-alpha.0
      • @jscad/obj-serializer@3.0.1-alpha.0
      • @jscad/regl-renderer@3.0.1-alpha.0
      • @jscad/stl-deserializer@3.0.1-alpha.0
      • @jscad/stl-serializer@3.0.1-alpha.0
      • @jscad/svg-deserializer@3.0.1-alpha.0
      • @jscad/svg-serializer@3.0.1-alpha.0
      • @jscad/x3d-deserializer@3.0.1-alpha.0
      • @jscad/x3d-serializer@3.0.1-alpha.0

      lerna-lite success published 21 packages

      posted in Announcements
      z3dev
      z3dev
    • Release : 2024 DEC 29

      Release : 2024 DEC 29

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

      Thanks to @tjurkiewicz and @Sefanor for the corrections to documentation and examples.

      Successfully published:

      • @jscad/cli@2.3.5
      • @jscad/core@2.6.12
      • @jscad/3mf-serializer@2.1.14
      • @jscad/amf-deserializer@2.3.10
      • @jscad/amf-serializer@2.1.20
      • @jscad/dxf-deserializer@2.3.27
      • @jscad/dxf-serializer@2.1.20
      • @jscad/io-utils@2.0.30
      • @jscad/io@2.4.11
      • @jscad/json-deserializer@2.0.31
      • @jscad/json-serializer@2.0.30
      • @jscad/obj-deserializer@2.0.30
      • @jscad/obj-serializer@2.1.20
      • @jscad/stl-deserializer@2.1.27
      • @jscad/stl-serializer@2.1.20
      • @jscad/svg-deserializer@2.5.11
      • @jscad/svg-serializer@2.3.18
      • @jscad/x3d-deserializer@2.2.10
      • @jscad/x3d-serializer@2.4.10
      • @jscad/modeling@2.12.5
      • @jscad/regl-renderer@2.6.12
      • @jscad/vtree@2.0.31
      • @jscad/web@2.6.10

      lerna success published 23 packages

      posted in Announcements
      z3dev
      z3dev
    • Release : 2024 NOV 10

      Release : 2024 NOV 10

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

      Bug Fixes

      • fix(io-utils): added ensureString, updated io deserializers in order to accept buffers
      • fix(core): corrected registerDeserializer to read files as binary (buffers)

      BIG THANKS to @eldanb for the fixes to the IO deserializers

      Successfully published:

      • @jscad/cli@2.3.4
      • @jscad/core@2.6.11
      • @jscad/3mf-serializer@2.1.13
      • @jscad/amf-deserializer@2.3.9
      • @jscad/amf-serializer@2.1.19
      • @jscad/dxf-deserializer@2.3.26
      • @jscad/dxf-serializer@2.1.19
      • @jscad/io-utils@2.0.29
      • @jscad/io@2.4.10
      • @jscad/json-deserializer@2.0.30
      • @jscad/json-serializer@2.0.29
      • @jscad/obj-deserializer@2.0.29
      • @jscad/obj-serializer@2.1.19
      • @jscad/stl-deserializer@2.1.26
      • @jscad/stl-serializer@2.1.19
      • @jscad/svg-deserializer@2.5.10
      • @jscad/svg-serializer@2.3.17
      • @jscad/x3d-deserializer@2.2.9
      • @jscad/x3d-serializer@2.4.9
      • @jscad/modeling@2.12.4
      • @jscad/regl-renderer@2.6.11
      • @jscad/vtree@2.0.30
      • @jscad/web@2.6.9

      lerna success published 23 packages

      posted in Announcements
      z3dev
      z3dev
    • Release : 2024 OCT 06

      Release : 2024 OCT 06

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

      Bug Fixes

      • modeling: added optional plane to poly3 TS definition
      • modeling: corrected hull of single unconvex solid
      • modeling: corrected TS definition of scission
      • modeling: expose hullPoints2 and hullPoints3

      Thanks to @FishOrBear for the corrections to the TS definitions
      Thanks to @her01n for the correction to hull
      Thanks to @tscircuit for the monthly financial contributions

      Successfully published:

      • @jscad/cli@2.3.3
      • @jscad/core@2.6.10
      • @jscad/3mf-serializer@2.1.12
      • @jscad/amf-deserializer@2.3.8
      • @jscad/amf-serializer@2.1.18
      • @jscad/dxf-deserializer@2.3.25
      • @jscad/dxf-serializer@2.1.18
      • @jscad/io-utils@2.0.28
      • @jscad/io@2.4.9
      • @jscad/json-deserializer@2.0.29
      • @jscad/json-serializer@2.0.28
      • @jscad/obj-deserializer@2.0.28
      • @jscad/obj-serializer@2.1.18
      • @jscad/stl-deserializer@2.1.25
      • @jscad/stl-serializer@2.1.18
      • @jscad/svg-deserializer@2.5.9
      • @jscad/svg-serializer@2.3.16
      • @jscad/x3d-deserializer@2.2.8
      • @jscad/x3d-serializer@2.4.8
      • @jscad/modeling@2.12.3
      • @jscad/regl-renderer@2.6.10
      • @jscad/vtree@2.0.29
      • @jscad/web@2.6.8

      lerna success published 23 packages

      posted in Announcements
      z3dev
      z3dev