User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
changes_v2 [2019/11/30 03:04]
z3dev [STL]
changes_v2 [2020/03/31 07:33] (current)
z3dev [Changes to Transforms]
Line 4: Line 4:
  
 The modeling package has been fundamentally changed to acheive several goals. The modeling package has been fundamentally changed to acheive several goals.
-  * math functions have been rewritten based on the glmatrix library, which is array based data for WEBGL use+  * math functions have been rewritten based on the glmatrix library, which is array based data
   * geometry has been simplified to arrays of data to improve memory usage and performance   * geometry has been simplified to arrays of data to improve memory usage and performance
     * geom2 - 2D geometries     * geom2 - 2D geometries
Line 25: Line 25:
   * major rewrites of cylinder, roundedRectangle,​ roundedCube   * major rewrites of cylinder, roundedRectangle,​ roundedCube
   * bug fixes   * bug fixes
 +
 +<wrap em>MAJOR CHANGE primitives are centered at 0,0,0 only. use translate() to position the shape</​wrap>​
  
  
Line 34: Line 36:
   * bug fixes   * bug fixes
  
 +<wrap em>MAJOR CHANGE: transforms are accumlated so the order of transforms is now important</​wrap>​
 ==== Changes to Booleans ==== ==== Changes to Booleans ====
  
Line 47: Line 49:
   * **RENAMED** volume to measureVolume   * **RENAMED** volume to measureVolume
   * major rewrites of measureArea and measureVolume   * major rewrites of measureArea and measureVolume
-==== Changes to Hulls ==== 
  
-  * hull, hullChain 
-  * APIs have been standardized 
-  * **RENAMED** chainHull to hullChain 
-  * **NEW** hull and hullChain now support path2 
 ==== Changes to Expansions ==== ==== Changes to Expansions ====
  
Line 79: Line 76:
   * APIs have been standardized   * APIs have been standardized
   * **RENAMED** chain_hull to hullChain   * **RENAMED** chain_hull to hullChain
-  * **NEW** hull function ​for 2D paths+  * **NEW** hull and hullChain ​for 2D paths 
 +  * **NEW** hull for 3D geometries 
 + 
 +==== Changes to Colors ==== 
 + 
 +  * color 
 +  * colorNameToRgb,​ hexToRgb, hslToRgb, hsvToRgb, hueToColorComponent 
 +  * rgbToHex, rgbToHsl, rgbtoHsv 
 +  * **NEW** color for 2D geometries and 2D paths 
 +  * **REMOVED** color using names, use colorNameToRgb
 ==== Removed Functionality ==== ==== Removed Functionality ====
  
   * **REMOVED** CSG, CAG, etc. objects   * **REMOVED** CSG, CAG, etc. objects
 +    * See [[https://​github.com/​jscad-community/​jscad-object-api|Object API]]
   * **REMOVED** OpenSCAD functions / function signitures   * **REMOVED** OpenSCAD functions / function signitures
   * **REMOVED** OpenSCAD math functions   * **REMOVED** OpenSCAD math functions
   * **REMOVED** old text functions   * **REMOVED** old text functions
-    * vector_char (use vectorChar) +    * vector_char (Use NEW vectorChar) 
-    * vector_text (use vectorText)+    * vector_text (Use NEW vectorText)
   * **REMOVED** functionality for 3D geometries   * **REMOVED** functionality for 3D geometries
     * lieFlat     * lieFlat
Line 101: Line 108:
  
 //NOTE: We expect REMOVED functionality to be supported via small user libraries.//​ //NOTE: We expect REMOVED functionality to be supported via small user libraries.//​
- 
 ===== IO Packages ===== ===== IO Packages =====
  
Line 120: Line 126:
  
   * Deserializer (import)   * Deserializer (import)
 +    * bug fix for lwpolylines
     * bug fix for polylines     * bug fix for polylines
     * bug fix for colors     * bug fix for colors