Skip to content

Commit

Permalink
Update JSxCAD
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbourSmith committed Nov 15, 2021
1 parent 087b271 commit e606c51
Show file tree
Hide file tree
Showing 25 changed files with 48,497 additions and 4,050 deletions.
Binary file modified dist/cgal_browser.wasm
100644 → 100755
Binary file not shown.
166 changes: 137 additions & 29 deletions dist/jsxcad-algorithm-cgal.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions dist/jsxcad-algorithm-pack.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { min, max } from './jsxcad-math-vec3.js';
import { toKeptGeometry, translate, measureBoundingBox } from './jsxcad-geometry.js';
import { toTransformedGeometry, translate, measureBoundingBox } from './jsxcad-geometry.js';

var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};

Expand Down Expand Up @@ -306,7 +306,9 @@ const pack = (
[fit.x + xOffset + fit.w, fit.y + yOffset + fit.h, 0],
maxPoint
);
const transformed = toKeptGeometry(translate([xo, yo, -minZ], geometry));
const transformed = toTransformedGeometry(
translate([xo, yo, -minZ], geometry)
);
packedGeometries.push(transformed);
} else {
unpackedGeometries.push(geometry);
Expand Down

0 comments on commit e606c51

Please sign in to comment.