@bitbybit-dev/create-app 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +6 -6
  3. package/dist/index.js.map +1 -1
  4. package/package.json +2 -2
  5. package/src/index.ts +6 -6
  6. package/templates/_agent/AGENTS.md +2 -2
  7. package/templates/apps/drone-assembly/README.md +1 -1
  8. package/templates/apps/drone-assembly/package.json +4 -4
  9. package/templates/apps/drone-assembly/scripts/smoke.ts +3 -3
  10. package/templates/apps/drone-assembly/src/main.ts +1 -1
  11. package/templates/apps/drone-assembly/src/parts.ts +1 -1
  12. package/templates/apps/ifc-house/AGENTS.section.md +2 -2
  13. package/templates/apps/ifc-house/README.md +2 -2
  14. package/templates/apps/ifc-house/package.json +9 -9
  15. package/templates/apps/ifc-house/scripts/smoke.ts +3 -3
  16. package/templates/apps/ifc-house/src/main.ts +23 -27
  17. package/templates/apps/ifc-house/src/scene/draw-house.ts +52 -51
  18. package/templates/apps/ifc-house/src/scene/scene-types.ts +4 -3
  19. package/templates/apps/ifc-house/src/workers/manifold.worker.ts +1 -1
  20. package/templates/apps/laser-cut-box/README.md +1 -1
  21. package/templates/apps/laser-cut-box/package.json +3 -3
  22. package/templates/apps/laser-cut-box/scripts/smoke.ts +3 -3
  23. package/templates/apps/product-configurator/AGENTS.section.md +1 -1
  24. package/templates/apps/product-configurator/README.md +1 -1
  25. package/templates/apps/product-configurator/package.json +3 -3
  26. package/templates/apps/product-configurator/scripts/smoke.ts +3 -3
  27. package/templates/apps/sheet-metal-unfold/AGENTS.section.md +3 -3
  28. package/templates/apps/sheet-metal-unfold/README.md +1 -1
  29. package/templates/apps/sheet-metal-unfold/backend/package.json +1 -1
  30. package/templates/apps/sheet-metal-unfold/frontend/package.json +3 -3
  31. package/templates/apps/sheet-metal-unfold/frontend/scripts/smoke.ts +3 -3
  32. package/templates/apps/sheet-metal-unfold/frontend/src/cloud-access.ts +1 -1
  33. package/templates/apps/step-to-gltf-cli/AGENTS.section.md +1 -1
  34. package/templates/apps/step-to-gltf-cli/README.md +1 -1
  35. package/templates/apps/step-to-gltf-cli/package.json +2 -2
  36. package/templates/apps/step-to-gltf-cli/src/cli.ts +2 -2
  37. package/templates/apps/step-to-gltf-cli/src/cloud.ts +1 -1
  38. package/templates/apps/step-to-gltf-cli/src/kernel.ts +3 -3
  39. package/templates/cloud/backends/hono-rest/package.json +1 -1
  40. package/templates/cloud/backends/hono-sdk/package.json +2 -2
  41. package/templates/cloud/backends/nodejs-rest/package.json +1 -1
  42. package/templates/cloud/backends/nodejs-sdk/package.json +2 -2
  43. package/templates/cloud/frontend/package.json +2 -2
  44. package/templates/vite/babylonjs/typescript/AGENTS.section.md +2 -2
  45. package/templates/vite/babylonjs/typescript/package.json +2 -2
  46. package/templates/vite/babylonjs/typescript/scripts/smoke.ts +3 -3
  47. package/templates/vite/playcanvas/typescript/AGENTS.section.md +2 -2
  48. package/templates/vite/playcanvas/typescript/package.json +3 -3
  49. package/templates/vite/playcanvas/typescript/scripts/smoke.ts +3 -3
  50. package/templates/vite/threejs/typescript/AGENTS.section.md +2 -2
  51. package/templates/vite/threejs/typescript/package.json +2 -2
  52. package/templates/vite/threejs/typescript/scripts/smoke.ts +3 -3
@@ -1,13 +1,15 @@
1
1
  import * as THREE from "three";
2
- import { Inputs, type BitByBitBase } from "@bitbybit-dev/threejs";
2
+ import type { BitByBitBase, Inputs } from "@bitbybit-dev/threejs";
3
3
  import { ROOF } from "../house/house-plan";
4
4
  import type { HouseModel, Layer } from "../house/house-types";
5
- import type { DrawnElement, ElementInfo, Look } from "./scene-types";
5
+ import type { DrawnHouse, ElementInfo, Look } from "./scene-types";
6
6
 
7
7
  const SHARP_ANGLE = 40;
8
8
  const FALLBACK_COLOUR = "#d6d3cc";
9
9
  const MATTE: Look = { roughness: 0.88, metalness: 0 };
10
10
  const FOLIAGE: Look = { roughness: 0.95, metalness: 0, faceted: true };
11
+ const GLASS: Look = { roughness: 0.04, metalness: 0, glass: true };
12
+ const GLASS_ENVIRONMENT = 1.8;
11
13
  const LOOKS: Record<string, Look> = {
12
14
  "#3b342e": { roughness: 0.86, metalness: 0 },
13
15
  "#161514": { roughness: 0.7, metalness: 0 },
@@ -29,64 +31,63 @@ function hexOf(rgba: readonly number[]): string {
29
31
  return `#${rgba.slice(0, 3).map((channel) => Math.round(channel * 255).toString(16).padStart(2, "0")).join("")}`;
30
32
  }
31
33
 
32
- class Materials {
33
- private readonly made = new Map<string, THREE.Material>();
34
-
35
- of(rgba: readonly number[] | undefined): THREE.Material {
36
- const colour = rgba ? hexOf(rgba) : FALLBACK_COLOUR;
37
- const alpha = rgba?.[3] ?? 1;
38
- const key = `${colour}/${alpha}`;
39
- let material = this.made.get(key);
40
- if (!material) {
41
- material = alpha < 1 ? this.glass(colour, alpha) : this.solid(colour, LOOKS[colour] ?? MATTE);
42
- this.made.set(key, material);
43
- }
44
- return material;
34
+ function lookOf(rgba: readonly number[] | undefined): Look {
35
+ if (!rgba) {
36
+ return MATTE;
45
37
  }
38
+ return (rgba[3] ?? 1) < 1 ? GLASS : LOOKS[hexOf(rgba)] ?? MATTE;
39
+ }
46
40
 
47
- private solid(colour: string, look: Look): THREE.Material {
48
- return new THREE.MeshStandardMaterial({ color: colour, roughness: look.roughness, metalness: look.metalness, flatShading: look.faceted ?? false });
41
+ function styled(material: THREE.Material, look: Look): THREE.Material {
42
+ if (!look.glass && !look.faceted) {
43
+ return material;
49
44
  }
50
-
51
- private glass(colour: string, alpha: number): THREE.Material {
52
- return new THREE.MeshPhysicalMaterial({
53
- color: colour, transparent: true, opacity: Math.max(0.18, alpha), roughness: 0.04, metalness: 0,
54
- envMapIntensity: 1.8, depthWrite: false, side: THREE.DoubleSide,
55
- });
45
+ const own = material.clone() as THREE.MeshPhysicalMaterial;
46
+ if (look.glass) {
47
+ own.envMapIntensity = GLASS_ENVIRONMENT;
48
+ own.side = THREE.DoubleSide;
56
49
  }
50
+ own.flatShading = look.faceted ?? false;
51
+ return own;
57
52
  }
58
53
 
59
- export async function drawHouse(bitbybit: BitByBitBase, house: HouseModel): Promise<DrawnElement[]> {
54
+ export async function drawHouse(bitbybit: BitByBitBase, house: HouseModel): Promise<DrawnHouse> {
60
55
  const recipe = await bitbybit.ifc.geometry.recipe({ model: house.model });
61
- const solids = await bitbybit.manifold.recipes.build({ recipe, adjustZtoY: true, emptyWhenFailed: true });
62
- const meshes = await bitbybit.manifold.decomposeManifoldsOrCrossSections({ manifoldsOrCrossSections: solids, minSharpAngle: SHARP_ANGLE });
63
- const materials = new Materials();
64
- const drawn: DrawnElement[] = [];
65
- for (const [index, root] of recipe.roots.entries()) {
66
- const mesh = meshes[index];
67
- if (!mesh) {
68
- continue;
56
+ const built = await bitbybit.manifold.recipes.meshes({ recipe, adjustZtoY: true, emptyWhenFailed: true, minSharpAngle: SHARP_ANGLE });
57
+ const elements = new Map<string, ElementInfo>();
58
+ const rootsByLook = new Map<Look, Set<number>>();
59
+ built.placements.forEach((placement, root) => {
60
+ if (placement.mesh < 0) {
61
+ return;
62
+ }
63
+ const tag = placement.tag;
64
+ const globalId = String(tag["globalId"]);
65
+ if (!elements.has(globalId)) {
66
+ elements.set(globalId, {
67
+ globalId,
68
+ type: String(tag["type"]),
69
+ name: String(tag["name"] ?? ""),
70
+ layer: house.layers.get(globalId) ?? LAYERS_BY_NAME[String(tag["name"])] ?? "ground",
71
+ });
69
72
  }
70
- const tag = root.tag;
71
- const rgba = Array.isArray(tag["rgba"]) ? tag["rgba"] : undefined;
72
- const options = new Inputs.Draw.DrawManifoldOrCrossSectionOptions();
73
- options.faceMaterial = materials.of(rgba);
74
- options.drawTwoSided = false;
75
- options.minSharpAngle = SHARP_ANGLE;
76
- const object = await bitbybit.draw.drawAnyAsync({ entity: mesh as Inputs.Manifold.DecomposedManifoldMeshDto, options });
77
- const info: ElementInfo = {
78
- globalId: String(tag["globalId"]),
79
- type: String(tag["type"]),
80
- name: String(tag["name"] ?? ""),
81
- layer: house.layers.get(String(tag["globalId"])) ?? LAYERS_BY_NAME[String(tag["name"])] ?? "ground",
73
+ const look = lookOf(Array.isArray(tag["rgba"]) ? tag["rgba"] : undefined);
74
+ rootsByLook.set(look, (rootsByLook.get(look) ?? new Set()).add(root));
75
+ });
76
+ const groups: THREE.Group[] = [];
77
+ for (const [look, roots] of rootsByLook) {
78
+ const entity: Inputs.Manifold.RecipeMeshesDto = {
79
+ meshes: built.meshes,
80
+ placements: built.placements.map((placement, root) => roots.has(root) ? placement : { mesh: -1, matrix: placement.matrix, tag: placement.tag, group: placement.group }),
82
81
  };
83
- const seeThrough = rgba !== undefined && (rgba[3] ?? 1) < 1;
84
- object.traverse((part) => {
85
- part.userData = { ...part.userData, element: info };
86
- part.castShadow = !seeThrough;
87
- part.receiveShadow = true;
82
+ const options = bitbybit.draw.optionsRecipeMeshes({ defaultColour: FALLBACK_COLOUR, metallic: look.metalness, roughness: look.roughness });
83
+ const group = await bitbybit.draw.drawAnyAsync({ entity, options });
84
+ group.traverse((part) => {
85
+ if (part instanceof THREE.Mesh) {
86
+ part.material = styled(part.material as THREE.Material, look);
87
+ part.castShadow = !look.glass;
88
+ }
88
89
  });
89
- drawn.push({ info, object });
90
+ groups.push(group);
90
91
  }
91
- return drawn;
92
+ return { groups, elements };
92
93
  }
@@ -18,13 +18,14 @@ export interface ElementInfo {
18
18
  layer: Layer;
19
19
  }
20
20
 
21
- export interface DrawnElement {
22
- info: ElementInfo;
23
- object: THREE.Object3D;
21
+ export interface DrawnHouse {
22
+ groups: THREE.Group[];
23
+ elements: Map<string, ElementInfo>;
24
24
  }
25
25
 
26
26
  export interface Look {
27
27
  roughness: number;
28
28
  metalness: number;
29
29
  faceted?: boolean;
30
+ glass?: boolean;
30
31
  }
@@ -1,7 +1,7 @@
1
1
  import { initializationComplete, onMessageInput, type DataInput } from "@bitbybit-dev/manifold-worker";
2
2
  import Module from "manifold-3d";
3
3
 
4
- const MANIFOLD_WASM_URL = "https://git-cdn.bitbybit.dev/v1.5.0/wasm/manifold-3.5.3.wasm";
4
+ const MANIFOLD_WASM_URL = "https://git-cdn.bitbybit.dev/v1.6.0/wasm/manifold-3.5.4.wasm";
5
5
 
6
6
  async function init(): Promise<void> {
7
7
  const wasm = await Module({ locateFile: () => MANIFOLD_WASM_URL });
@@ -1,6 +1,6 @@
1
1
  # {{PROJECT_NAME}}
2
2
 
3
- A finger-jointed box generator for laser cutting, built on the open-source [Bitbybit](https://bitbybit.dev) CAD packages and Three.js. Set the outer dimensions, the sheet thickness, your laser's kerf and the finger width, toggle the lid (it gets a finger-hole handle when it has room), and download the cutting layout as DXF or SVG or the assembled box as STEP. Everything runs in the browser; no account, key or server is involved.
3
+ A finger-jointed box generator for laser cutting, built on the free [Bitbybit](https://bitbybit.dev) CAD packages and Three.js. Set the outer dimensions, the sheet thickness, your laser's kerf and the finger width, toggle the lid (it gets a finger-hole handle when it has room), and download the cutting layout as DXF or SVG or the assembled box as STEP. Everything runs in the browser; no account, key or server is involved.
4
4
 
5
5
  ```bash
6
6
  npm install
@@ -12,11 +12,11 @@
12
12
  "lint": "eslint . --max-warnings 0"
13
13
  },
14
14
  "dependencies": {
15
- "@bitbybit-dev/threejs": "1.5.0",
16
- "three": "0.186.0"
15
+ "@bitbybit-dev/threejs": "1.6.0",
16
+ "three": "0.186.1"
17
17
  },
18
18
  "devDependencies": {
19
- "@bitbybit-dev/occt": "1.5.0",
19
+ "@bitbybit-dev/occt": "1.6.0",
20
20
  "@eslint/js": "10.0.1",
21
21
  "@types/node": "22.20.1",
22
22
  "@types/three": "0.186.0",
@@ -2,7 +2,7 @@ import { createRequire } from "node:module";
2
2
  import { readdirSync } from "node:fs";
3
3
  import { dirname, join } from "node:path";
4
4
  import initOpenCascade from "@bitbybit-dev/occt/bitbybit-dev-occt/index.js";
5
- import { Inputs, OCCTService, OccHelper, VectorHelperService, ShapesHelperService } from "@bitbybit-dev/occt";
5
+ import { Inputs, OCCTService } from "@bitbybit-dev/occt";
6
6
  import { buildModel, clampParams, defaultParams, type BoxParams, type Occt } from "../src/model.ts";
7
7
  import { partsOverlap, slotArea } from "../src/panels.ts";
8
8
 
@@ -28,9 +28,9 @@ function pairs<T>(items: T[]): [T, T][] {
28
28
  const require = createRequire(import.meta.url);
29
29
  const kernelDir = dirname(require.resolve("@bitbybit-dev/occt/bitbybit-dev-occt/index.js"));
30
30
  const wasmFile = readdirSync(kernelDir).find((file) => file.endsWith(".wasm"));
31
- if (!wasmFile) throw new Error(`no OCCT kernel (.wasm) found in ${kernelDir}`);
31
+ if (!wasmFile) throw new Error(`no Bitbybit OCCT Kernel (.wasm) found in ${kernelDir}`);
32
32
  const occ = await initOpenCascade({ locateFile: (file: string) => (file.endsWith(".wasm") ? join(kernelDir, wasmFile) : file) });
33
- const occt = inProcess(new OCCTService(occ, new OccHelper(new VectorHelperService(), new ShapesHelperService(), occ)));
33
+ const occt = inProcess(new OCCTService(occ));
34
34
 
35
35
  const round = (n: number): number => Math.round(n * 1000) / 1000;
36
36
  const spans = (box: number[], expected: [number, number, number], slack: number): boolean => expected.every((value, i) => Math.abs((box[i] ?? Number.NaN) - value) <= slack);
@@ -5,7 +5,7 @@ A parametric planter with its own form, a live price and downloads, the way a st
5
5
  - `src/model.ts` is the geometry. `buildModel(occt, params)` builds the planter and returns the shape with its volume and surface area: walls that lean inward by a draft angle (`occt.draft.draftAngle` on the side faces of a rounded block, the negative angle being the inward lean), a stepped lip at the rim, the cavity drafted the same way so the wall keeps one thickness, the rim's edges rounded (selected by their height with `getEdgesCentersOfMass`), a recess under the base so the pot stands on a rim, and the drainage holes, all with planes, cylinders and cones so the booleans stay quick. `STYLE` holds those fixed proportions; `taperAngle` eases the lean off on tall narrow pots so the base keeps at least half the top. One kernel limit is worked around on purpose: a drafted block whose corner arcs are under a millimetre makes the hollowing boolean return the outer solid untouched, so corners that small are cut sharp (`SMALLEST_DRAFTED_CORNER`). `PlanterParams` are the customer-facing parameters, `LIMITS` their ranges, `clampParams` the rule that keeps them buildable (a corner radius cannot exceed half the smallest side minus the wall). Every kernel call is awaited, so the same function runs in the browser through the OCCT worker and in Node in-process.
6
6
  - `src/catalog.ts` is the shop side: materials with a colour, a roughness and a clearcoat for the physically based look, and a price per litre, three presets, and `quoteFor(params, model)`, the price formula. It reads the model's measurements and nothing else, so it is pure and the smoke checks it for every preset.
7
7
  - `src/ui.ts` renders the panel (presets, sliders, material, quote, export buttons) with plain DOM and calls back on change. It knows the parameter names and limits, not the kernel.
8
- - `src/main.ts` is the wiring: the Three.js scene, Bitbybit, debounced rebuilds that drop stale results, the draw with one physically based material per catalogue material under a room environment, and the STEP, STL and GLB downloads. `cameraOptions` gives the orbit camera explicit distance limits from the scene size and leaves its sensitivities at their base values: the engine's defaults scale zoom and pan by the scene size although both already follow the camera's distance, so a scene this large would jump a third of the way in per wheel notch. STEP and STL come from the OCCT kernel (`occt.io.saveShapeSTEP`, `occt.io.saveShapeStl`, converted to Z-up for CAD tools); GLB comes from Three.js's `GLTFExporter` over the drawn group.
8
+ - `src/main.ts` is the wiring: the Three.js scene, Bitbybit, debounced rebuilds that drop stale results, the draw with one physically based material per catalogue material under a room environment, and the STEP, STL and GLB downloads. `cameraOptions` gives the orbit camera explicit distance limits from the scene size and leaves its sensitivities at their base values: the engine's defaults scale zoom and pan by the scene size although both already follow the camera's distance, so a scene this large would jump a third of the way in per wheel notch. STEP and STL come from the Bitbybit OCCT Kernel (`occt.io.saveShapeSTEP`, `occt.io.saveShapeStl`, converted to Z-up for CAD tools); GLB comes from Three.js's `GLTFExporter` over the drawn group.
9
9
  - `scripts/smoke.ts` builds the default planter and every preset on the in-process kernel and prints one JSON line: `template`, `params`, then for `default` and each entry of `presets` the fields `valid`, `faces`, `edges`, `volume`, `surfaceArea` and `price`. It exits 1 when any planter is not a valid solid, has no volume, is not hollow (its volume must be below the block's less the cavity's least possible size), has a bounding box other than the declared width by height by depth (within the rim's radius, because OpenCascade's box around a fillet surface is loose by up to that), has a quote that is not a positive number, or places a different number of drainage holes than asked. The kernel is loaded in-process from `node_modules`, the same WebAssembly the browser runs inside a worker; its content-hashed `.wasm` is found beside the loader rather than spelled out.
10
10
 
11
11
  Commands:
@@ -1,6 +1,6 @@
1
1
  # {{PROJECT_NAME}}
2
2
 
3
- A parametric product configurator built on the open-source [Bitbybit](https://bitbybit.dev) CAD packages and Three.js. The product is a planter with leaning walls, a stepped lip, a rounded rim and a foot rim: the customer sets its dimensions, wall thickness, corner radius, drainage holes and material, sees it rebuilt live in a physically based material, gets a price computed from the measured solid, and downloads it as STEP, STL or GLB. Nothing runs on a server: the OpenCascade kernel runs in the browser as WebAssembly, and there is no account, key or service in the loop.
3
+ A parametric product configurator built on the free [Bitbybit](https://bitbybit.dev) CAD packages and Three.js. The product is a planter with leaning walls, a stepped lip, a rounded rim and a foot rim: the customer sets its dimensions, wall thickness, corner radius, drainage holes and material, sees it rebuilt live in a physically based material, gets a price computed from the measured solid, and downloads it as STEP, STL or GLB. Nothing runs on a server: the Bitbybit OCCT Kernel runs in the browser as WebAssembly, and there is no account, key or service in the loop.
4
4
 
5
5
  ```bash
6
6
  npm install
@@ -12,11 +12,11 @@
12
12
  "lint": "eslint . --max-warnings 0"
13
13
  },
14
14
  "dependencies": {
15
- "@bitbybit-dev/threejs": "1.5.0",
16
- "three": "0.186.0"
15
+ "@bitbybit-dev/threejs": "1.6.0",
16
+ "three": "0.186.1"
17
17
  },
18
18
  "devDependencies": {
19
- "@bitbybit-dev/occt": "1.5.0",
19
+ "@bitbybit-dev/occt": "1.6.0",
20
20
  "@eslint/js": "10.0.1",
21
21
  "@types/node": "22.20.1",
22
22
  "@types/three": "0.186.0",
@@ -2,7 +2,7 @@ import { createRequire } from "node:module";
2
2
  import { readdirSync } from "node:fs";
3
3
  import { dirname, join } from "node:path";
4
4
  import initOpenCascade from "@bitbybit-dev/occt/bitbybit-dev-occt/index.js";
5
- import { OCCTService, OccHelper, VectorHelperService, ShapesHelperService } from "@bitbybit-dev/occt";
5
+ import { OCCTService } from "@bitbybit-dev/occt";
6
6
  import { bottomSize, buildModel, clampParams, defaultParams, drainageHoleCenters, STYLE, type Occt, type PlanterParams } from "../src/model.ts";
7
7
  import { PRESETS, quoteFor } from "../src/catalog.ts";
8
8
 
@@ -22,9 +22,9 @@ function inProcess(service: object): Occt {
22
22
  const require = createRequire(import.meta.url);
23
23
  const kernelDir = dirname(require.resolve("@bitbybit-dev/occt/bitbybit-dev-occt/index.js"));
24
24
  const wasmFile = readdirSync(kernelDir).find((file) => file.endsWith(".wasm"));
25
- if (!wasmFile) throw new Error(`no OCCT kernel (.wasm) found in ${kernelDir}`);
25
+ if (!wasmFile) throw new Error(`no Bitbybit OCCT Kernel (.wasm) found in ${kernelDir}`);
26
26
  const occ = await initOpenCascade({ locateFile: (file: string) => (file.endsWith(".wasm") ? join(kernelDir, wasmFile) : file) });
27
- const occt = inProcess(new OCCTService(occ, new OccHelper(new VectorHelperService(), new ShapesHelperService(), occ)));
27
+ const occt = inProcess(new OCCTService(occ));
28
28
 
29
29
  const round = (n: number): number => Math.round(n * 1000) / 1000;
30
30
  const spans = (box: number[], expected: [number, number, number], tolerance: number): boolean => expected.every((value, i) => Math.abs((box[i] ?? Number.NaN) - value) < tolerance);
@@ -1,8 +1,8 @@
1
1
  ## This template: sheet-metal unfold
2
2
 
3
- A sheet-metal channel that is built in the browser on the open-source packages and unfolded on CAD Cloud, because the unfold is a Pro algorithm that exists only there. Two packages in one npm workspace: `frontend/` (Vite, Three.js, the OCCT kernel in a worker) and `backend/` (Express, the CAD Cloud SDK, the key).
3
+ A sheet-metal channel that is built in the browser on the free packages and unfolded on CAD Cloud, because the unfold is a Pro algorithm that exists only there. Two packages in one npm workspace: `frontend/` (Vite, Three.js, the Bitbybit OCCT Kernel in a worker) and `backend/` (Express, the CAD Cloud SDK, the key).
4
4
 
5
- - `frontend/src/model.ts` is the open-source geometry. `centreLine` is the sheet's centre line through the channel's cross-section as a sharp polyline; `buildModel(occt, params)` rounds every corner of it with `fillet2d` at the mid-sheet radius (inner radius plus half the thickness), then sweeps a thickness-by-depth rectangle along it with `pipe`. A swept sheet has concentric bend arcs and one thickness everywhere, which is what the unfold needs. `mounting` then adds two holes through the base and a slot through each flange, on the flat sheet between the bends and never in a bend zone, leaving out any feature that does not fit with its margin (`MOUNTING`); the slot is a rectangle rounded to a stadium. The part's volume is exactly the thickness times the centre line's length times the depth minus what those features remove (`removedVolume`, analytic because every feature goes through flat sheet), which is what the smoke checks. `flatLengthEstimate` is the K-factor estimate of the developed length, computed without any kernel, so the page shows a number before the cloud answers and the difference afterwards.
5
+ - `frontend/src/model.ts` is the geometry built in the browser. `centreLine` is the sheet's centre line through the channel's cross-section as a sharp polyline; `buildModel(occt, params)` rounds every corner of it with `fillet2d` at the mid-sheet radius (inner radius plus half the thickness), then sweeps a thickness-by-depth rectangle along it with `pipe`. A swept sheet has concentric bend arcs and one thickness everywhere, which is what the unfold needs. `mounting` then adds two holes through the base and a slot through each flange, on the flat sheet between the bends and never in a bend zone, leaving out any feature that does not fit with its margin (`MOUNTING`); the slot is a rectangle rounded to a stadium. The part's volume is exactly the thickness times the centre line's length times the depth minus what those features remove (`removedVolume`, analytic because every feature goes through flat sheet), which is what the smoke checks. `flatLengthEstimate` is the K-factor estimate of the developed length, computed without any kernel, so the page shows a number before the cloud answers and the difference afterwards.
6
6
  - `frontend/src/flat.ts` reads the cloud's report: bend lines to draw over the flat pattern, and `summarize` for the facts. `toScene` maps the report's Z-up frame onto the ground plane the flat STEP is loaded onto with `adjustZtoY`.
7
7
  - `frontend/src/main.ts` is the wiring: scene, kernel, debounced rebuilds, the part and flat views (the flat pattern drawn one millimetre above the ground so it never fights the ground plane for pixels), the unfold call and the downloads, the sheet in a brushed steel material under a room environment. `cameraOptions` gives the orbit camera explicit distance limits from the scene size and leaves its sensitivities at their base values: the engine's defaults scale zoom and pan by the scene size although both already follow the camera's distance, so a scene this large would jump a third of the way in per wheel notch.
8
8
  - `frontend/src/cloud-access.ts` is the access state: `accessFromResponse` turns the backend's answer into `ready`, `locked` (503 with `NO_API_KEY`), `unreachable` or `error`, and `renderAccess` shows the locked state with the CAD Cloud page, the Studio keys page and the `.env` line. That state is part of the app: keep it working and keep its links current.
@@ -17,7 +17,7 @@ Commands, from the project root:
17
17
 
18
18
  ## What needs CAD Cloud and where to get it
19
19
 
20
- Only the unfold. Building the part, measuring it, estimating the flat length and downloading the part as STEP run in the browser on the MIT packages; nothing of Bitbybit's is in that loop. The unfold (`POST /api/v1/cad/pro/unfold/solid`) is a Pro algorithm available only on [CAD Cloud](https://bitbybit.dev/cad-cloud): it returns the flat pattern as STEP and glTF and a report with every bend's angle, radii and allowance. That is the one call in `backend/src/cloud.ts`.
20
+ Only the unfold. Building the part, measuring it, estimating the flat length and downloading the part as STEP run in the browser on the MIT packages; no Bitbybit service is in that loop. The unfold (`POST /api/v1/cad/pro/unfold/solid`) is a Pro algorithm available only on [CAD Cloud](https://bitbybit.dev/cad-cloud): it returns the flat pattern as STEP and glTF and a report with every bend's angle, radii and allowance. That is the one call in `backend/src/cloud.ts`.
21
21
 
22
22
  - The plan needed: any CAD Cloud plan. The key needs the `cad`, `files` and `tasks` scopes. Every unfold is one metered task on the key's account.
23
23
  - Where the key comes from: [Bitbybit Studio](https://studio.bitbybit.dev/keys/billing), which also lists the tasks this app ran.
@@ -1,6 +1,6 @@
1
1
  # {{PROJECT_NAME}}
2
2
 
3
- A sheet-metal channel that you shape in the browser and unfold on [Bitbybit CAD Cloud](https://bitbybit.dev/cad-cloud). The part, its measurements, the K-factor estimate of its flat length and the STEP download all run in your browser on the open-source [Bitbybit](https://bitbybit.dev) packages. The exact flat pattern, with its bend lines and bend table, comes from the cloud's sheet-metal unfold, a Pro algorithm that exists only there, and comes back as STEP and as a DXF written in the browser.
3
+ A sheet-metal channel that you shape in the browser and unfold on [Bitbybit CAD Cloud](https://bitbybit.dev/cad-cloud). The part, its measurements, the K-factor estimate of its flat length and the STEP download all run in your browser on the free [Bitbybit](https://bitbybit.dev) packages. The exact flat pattern, with its bend lines and bend table, comes from the cloud's sheet-metal unfold, a Pro algorithm that exists only there, and comes back as STEP and as a DXF written in the browser.
4
4
 
5
5
  ```bash
6
6
  npm install # both workspaces
@@ -12,7 +12,7 @@
12
12
  "lint": "eslint . --max-warnings 0"
13
13
  },
14
14
  "dependencies": {
15
- "@bitbybit-dev/cad-cloud-sdk": "1.5.0",
15
+ "@bitbybit-dev/cad-cloud-sdk": "1.6.0",
16
16
  "express": "^5.1.0"
17
17
  },
18
18
  "devDependencies": {
@@ -12,11 +12,11 @@
12
12
  "lint": "eslint . --max-warnings 0"
13
13
  },
14
14
  "dependencies": {
15
- "@bitbybit-dev/threejs": "1.5.0",
16
- "three": "0.186.0"
15
+ "@bitbybit-dev/threejs": "1.6.0",
16
+ "three": "0.186.1"
17
17
  },
18
18
  "devDependencies": {
19
- "@bitbybit-dev/occt": "1.5.0",
19
+ "@bitbybit-dev/occt": "1.6.0",
20
20
  "@eslint/js": "10.0.1",
21
21
  "@types/node": "22.20.1",
22
22
  "@types/three": "0.186.0",
@@ -2,7 +2,7 @@ import { createRequire } from "node:module";
2
2
  import { readdirSync } from "node:fs";
3
3
  import { dirname, join } from "node:path";
4
4
  import initOpenCascade from "@bitbybit-dev/occt/bitbybit-dev-occt/index.js";
5
- import { OCCTService, OccHelper, VectorHelperService, ShapesHelperService } from "@bitbybit-dev/occt";
5
+ import { OCCTService } from "@bitbybit-dev/occt";
6
6
  import { buildModel, clampParams, defaultParams, flatLengthEstimate, profileArea, removedVolume, type Occt, type PartParams } from "../src/model.ts";
7
7
  import { bendLines, summarize, toScene, type UnfoldSolidReport } from "../src/flat.ts";
8
8
  import { accessFromResponse, NO_KEY_CODE } from "../src/cloud-access.ts";
@@ -24,9 +24,9 @@ function inProcess(service: object): Occt {
24
24
  const require = createRequire(import.meta.url);
25
25
  const kernelDir = dirname(require.resolve("@bitbybit-dev/occt/bitbybit-dev-occt/index.js"));
26
26
  const wasmFile = readdirSync(kernelDir).find((file) => file.endsWith(".wasm"));
27
- if (!wasmFile) throw new Error(`no OCCT kernel (.wasm) found in ${kernelDir}`);
27
+ if (!wasmFile) throw new Error(`no Bitbybit OCCT Kernel (.wasm) found in ${kernelDir}`);
28
28
  const occ = await initOpenCascade({ locateFile: (file: string) => (file.endsWith(".wasm") ? join(kernelDir, wasmFile) : file) });
29
- const occt = inProcess(new OCCTService(occ, new OccHelper(new VectorHelperService(), new ShapesHelperService(), occ)));
29
+ const occt = inProcess(new OCCTService(occ));
30
30
 
31
31
  const round = (n: number): number => Math.round(n * 1000) / 1000;
32
32
  const spans = (box: number[], expected: [number, number, number]): boolean => expected.every((value, i) => Math.abs((box[i] ?? Number.NaN) - value) < 0.001);
@@ -25,7 +25,7 @@ export function renderAccess(root: HTMLElement, access: Access): void {
25
25
  if (access.state === "locked") {
26
26
  root.innerHTML = `
27
27
  <strong>Unfolding needs CAD Cloud</strong>
28
- Everything else on this page runs in your browser on the open-source packages. The sheet-metal unfold is a Pro algorithm that exists only on
28
+ Everything else on this page runs in your browser on the free packages. The sheet-metal unfold is a Pro algorithm that exists only on
29
29
  <a href="${CAD_CLOUD_URL}" target="_blank" rel="noopener noreferrer">CAD Cloud</a>; any plan includes it.
30
30
  Create a key in <a href="${STUDIO_KEYS_URL}" target="_blank" rel="noopener noreferrer">Bitbybit Studio</a>, put it in <code>backend/.env</code> as
31
31
  <code>${KEY_LINE}</code>
@@ -1,6 +1,6 @@
1
1
  ## This template: STEP to glTF command line
2
2
 
3
- A batch converter: STEP and IGES files in, GLB and STL files and a JSON of facts out, in this process, on the open-source OpenCascade kernel. It is the honesty rule as a program: a machine that can run the kernel needs no service to convert a file. The `--cloud` flag exists for the two cases that cannot, and says so.
3
+ A batch converter: STEP and IGES files in, GLB and STL files and a JSON of facts out, in this process, on the free Bitbybit OCCT Kernel. It is the honesty rule as a program: a machine that can run the kernel needs no service to convert a file. The `--cloud` flag exists for the two cases that cannot, and says so.
4
4
 
5
5
  - `src/kernel.ts` loads the kernel once per run.
6
6
  - `src/convert.ts` is the conversion: `convertFile(occt, name, text, options)` reads the file through the kernel, counts its solids, faces and edges, measures its volume and extents, writes the GLB with the kernel's converter and the STL from the loaded shape. It is a pure function over the kernel, so the smoke calls it directly.
@@ -1,6 +1,6 @@
1
1
  # {{PROJECT_NAME}}
2
2
 
3
- A command-line converter from STEP and IGES to GLB and STL, built on the open-source [Bitbybit](https://bitbybit.dev) OpenCascade kernel. Files are converted in this process, on this machine; nothing is uploaded and no account is needed. Beside each result it writes a JSON with what the file contained: solids, faces, edges, volume, extents, sizes and timing.
3
+ A command-line converter from STEP and IGES to GLB and STL, built on the free [Bitbybit](https://bitbybit.dev) OCCT Kernel. Files are converted in this process, on this machine; nothing is uploaded and no account is needed. Beside each result it writes a JSON with what the file contained: solids, faces, edges, volume, extents, sizes and timing.
4
4
 
5
5
  ```bash
6
6
  npm install
@@ -11,8 +11,8 @@
11
11
  "lint": "eslint . --max-warnings 0"
12
12
  },
13
13
  "dependencies": {
14
- "@bitbybit-dev/cad-cloud-sdk": "1.5.0",
15
- "@bitbybit-dev/occt": "1.5.0"
14
+ "@bitbybit-dev/cad-cloud-sdk": "1.6.0",
15
+ "@bitbybit-dev/occt": "1.6.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@eslint/js": "10.0.1",
@@ -7,8 +7,8 @@ import { loadKernel } from "./kernel.js";
7
7
  const CAD_EXTENSIONS = new Set([".step", ".stp", ".iges", ".igs"]);
8
8
  const USAGE = `usage: npm run convert -- <file or directory>... [--out <dir>] [--precision <n>] [--stl-precision <n>] [--no-stl] [--cloud]
9
9
 
10
- Converts STEP and IGES files to GLB (and STL) in this process, on the open-source OpenCascade
11
- kernel, and writes a JSON of facts beside each result. Nothing leaves this machine.
10
+ Converts STEP and IGES files to GLB (and STL) in this process, on the free Bitbybit OCCT Kernel,
11
+ and writes a JSON of facts beside each result. Nothing leaves this machine.
12
12
 
13
13
  --out <dir> where to write (default: out)
14
14
  --precision <n> glTF mesh precision as a fraction of each edge (default: ${defaultOptions.meshPrecision})
@@ -10,7 +10,7 @@ export const NO_KEY_EXIT = 2;
10
10
 
11
11
  export const NO_KEY_MESSAGE = [
12
12
  `--cloud converts on CAD Cloud, and ${KEY_VARIABLE} is not set.`,
13
- "Without --cloud this tool converts in-process on the open-source kernel, free, with the same result for any file this machine can hold;",
13
+ "Without --cloud this tool converts in-process on the local kernel, free, with the same result for any file this machine can hold;",
14
14
  "--cloud is for the cases a local kernel cannot serve: a serverless or edge function without the memory for it, or a volume of files worth handing to a queue.",
15
15
  `Any CAD Cloud plan includes conversion (${CAD_CLOUD_URL}); create a key in Bitbybit Studio (${STUDIO_KEYS_URL}) and export ${KEY_VARIABLE} before running with --cloud.`,
16
16
  ].join("\n");
@@ -2,13 +2,13 @@ import { createRequire } from "node:module";
2
2
  import { readdirSync } from "node:fs";
3
3
  import { dirname, join } from "node:path";
4
4
  import initOpenCascade from "@bitbybit-dev/occt/bitbybit-dev-occt/index.js";
5
- import { OCCTService, OccHelper, VectorHelperService, ShapesHelperService } from "@bitbybit-dev/occt";
5
+ import { OCCTService } from "@bitbybit-dev/occt";
6
6
 
7
7
  export async function loadKernel(): Promise<OCCTService> {
8
8
  const require = createRequire(import.meta.url);
9
9
  const kernelDir = dirname(require.resolve("@bitbybit-dev/occt/bitbybit-dev-occt/index.js"));
10
10
  const wasmFile = readdirSync(kernelDir).find((file) => file.endsWith(".wasm"));
11
- if (!wasmFile) throw new Error(`no OCCT kernel (.wasm) found in ${kernelDir}`);
11
+ if (!wasmFile) throw new Error(`no Bitbybit OCCT Kernel (.wasm) found in ${kernelDir}`);
12
12
  const occ = await initOpenCascade({ locateFile: (file: string) => (file.endsWith(".wasm") ? join(kernelDir, wasmFile) : file) });
13
- return new OCCTService(occ, new OccHelper(new VectorHelperService(), new ShapesHelperService(), occ));
13
+ return new OCCTService(occ);
14
14
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitbybit-api-hono-rest-threejs",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitbybit-api-hono-sdk-threejs",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "hono": "^4.7.0",
15
- "@bitbybit-dev/cad-cloud-sdk": "1.5.0"
15
+ "@bitbybit-dev/cad-cloud-sdk": "1.6.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@cloudflare/workers-types": "^5.20260903.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitbybit-api-nodejs-rest-threejs",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitbybit-api-nodejs-sdk-threejs",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -14,7 +14,7 @@
14
14
  "dependencies": {
15
15
  "express": "^5.1.0",
16
16
  "multer": "^2.3.0",
17
- "@bitbybit-dev/cad-cloud-sdk": "1.5.0"
17
+ "@bitbybit-dev/cad-cloud-sdk": "1.6.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@eslint/js": "10.0.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitbybit-example-frontend",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -14,7 +14,7 @@
14
14
  "dependencies": {
15
15
  "react": "^19.1.0",
16
16
  "react-dom": "^19.1.0",
17
- "three": "0.186.0"
17
+ "three": "0.186.1"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@eslint/js": "10.0.1",
@@ -2,7 +2,7 @@
2
2
 
3
3
  - `src/model.ts` is the geometry. `buildModel(occt, params)` builds the OCCT shape from `ModelParams` and returns it. It knows nothing about rendering, and every kernel call is awaited, so the same function runs in the browser (through the OCCT worker, whose calls return promises) and in Node (in-process, whose calls return values). Put new geometry here, and new parameters in `ModelParams` with a default in `defaultParams`.
4
4
  - `src/main.ts` is the wiring: it starts the Babylon.js scene, initialises Bitbybit, calls `buildModel` and draws the result. The Manifold and JSCAD demonstrations live here as well. Keep geometry out of this file.
5
- - `scripts/smoke.ts` loads the OCCT kernel in Node, runs `buildModel` with `defaultParams` and prints one JSON line with the field names `template`, `params`, `valid`, `faces`, `edges`, `volume`, `area` and `bbox`, the box that just holds the exact geometry (`analysis.measure.tightBoundingBox`). It exits 1 when `shapeFix.isValid` finds the shape malformed or it has no volume; `debugInfo`'s own `valid` only says the shape is not empty. Add an assertion here when a change to the model has a fact worth pinning, such as a face count or a bounding box.
5
+ - `scripts/smoke.ts` loads the Bitbybit OCCT Kernel in Node, runs `buildModel` with `defaultParams` and prints one JSON line with the field names `template`, `params`, `valid`, `faces`, `edges`, `volume`, `area` and `bbox`, the box that just holds the exact geometry (`analysis.measure.tightBoundingBox`). It exits 1 when `shapeFix.isValid` finds the shape malformed or it has no volume; `debugInfo`'s own `valid` only says the shape is not empty. Add an assertion here when a change to the model has a fact worth pinning, such as a face count or a bounding box.
6
6
 
7
7
  Commands:
8
8
 
@@ -10,4 +10,4 @@ Commands:
10
10
  - `npm run build` typechecks and bundles for production; `npm run typecheck` and `npm run lint` run alone as well
11
11
  - `npm run smoke` typechecks, lints, then builds the model headlessly and prints the summary line; the kernel loads from `node_modules`, so nothing is downloaded: it is the same WebAssembly the browser runs inside a worker, loaded in-process, its content-hashed `.wasm` found beside the loader. The smoke script types the in-process kernel as the same `Occt` the browser code sees, through one `inProcess` cast, and awaits every call, so `buildModel` runs exactly as it does in the browser and `scripts/` is typechecked with the rest.
12
12
 
13
- The OCCT kernel runs in a web worker in the browser, so the objects `buildModel` handles there are pointers to shapes held by the worker, not the shapes themselves. That is why geometry is built entirely inside `buildModel` and only the result is drawn.
13
+ The Bitbybit OCCT Kernel runs in a web worker in the browser, so the objects `buildModel` handles there are pointers to shapes held by the worker, not the shapes themselves. That is why geometry is built entirely inside `buildModel` and only the result is drawn.
@@ -12,10 +12,10 @@
12
12
  "lint": "eslint . --max-warnings 0"
13
13
  },
14
14
  "dependencies": {
15
- "@bitbybit-dev/babylonjs": "1.5.0"
15
+ "@bitbybit-dev/babylonjs": "1.6.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@bitbybit-dev/occt": "1.5.0",
18
+ "@bitbybit-dev/occt": "1.6.0",
19
19
  "@eslint/js": "10.0.1",
20
20
  "@types/node": "22.20.1",
21
21
  "eslint": "10.10.0",
@@ -2,7 +2,7 @@ import { createRequire } from "node:module";
2
2
  import { readdirSync } from "node:fs";
3
3
  import { dirname, join } from "node:path";
4
4
  import initOpenCascade from "@bitbybit-dev/occt/bitbybit-dev-occt/index.js";
5
- import { OCCTService, OccHelper, VectorHelperService, ShapesHelperService } from "@bitbybit-dev/occt";
5
+ import { OCCTService } from "@bitbybit-dev/occt";
6
6
  import { buildModel, defaultParams, type Occt } from "../src/model.ts";
7
7
 
8
8
  function inProcess(service: object): Occt {
@@ -12,9 +12,9 @@ function inProcess(service: object): Occt {
12
12
  const require = createRequire(import.meta.url);
13
13
  const kernelDir = dirname(require.resolve("@bitbybit-dev/occt/bitbybit-dev-occt/index.js"));
14
14
  const wasmFile = readdirSync(kernelDir).find((file) => file.endsWith(".wasm"));
15
- if (!wasmFile) throw new Error(`no OCCT kernel (.wasm) found in ${kernelDir}`);
15
+ if (!wasmFile) throw new Error(`no Bitbybit OCCT Kernel (.wasm) found in ${kernelDir}`);
16
16
  const occ = await initOpenCascade({ locateFile: (file: string) => (file.endsWith(".wasm") ? join(kernelDir, wasmFile) : file) });
17
- const occt = inProcess(new OCCTService(occ, new OccHelper(new VectorHelperService(), new ShapesHelperService(), occ)));
17
+ const occt = inProcess(new OCCTService(occ));
18
18
 
19
19
  const shape = await buildModel(occt, defaultParams);
20
20
  const info = await occt.shapes.solid.debugInfo({ shape });
@@ -2,7 +2,7 @@
2
2
 
3
3
  - `src/model.ts` is the geometry. `buildModel(occt, params)` builds the OCCT shape from `ModelParams` and returns it. It knows nothing about rendering, and every kernel call is awaited, so the same function runs in the browser (through the OCCT worker, whose calls return promises) and in Node (in-process, whose calls return values). Put new geometry here, and new parameters in `ModelParams` with a default in `defaultParams`.
4
4
  - `src/main.ts` is the wiring: it starts the PlayCanvas scene, initialises Bitbybit, calls `buildModel` and draws the result. The Manifold and JSCAD demonstrations live here as well. Keep geometry out of this file.
5
- - `scripts/smoke.ts` loads the OCCT kernel in Node, runs `buildModel` with `defaultParams` and prints one JSON line with the field names `template`, `params`, `valid`, `faces`, `edges`, `volume`, `area` and `bbox`, the box that just holds the exact geometry (`analysis.measure.tightBoundingBox`). It exits 1 when `shapeFix.isValid` finds the shape malformed or it has no volume; `debugInfo`'s own `valid` only says the shape is not empty. Add an assertion here when a change to the model has a fact worth pinning, such as a face count or a bounding box.
5
+ - `scripts/smoke.ts` loads the Bitbybit OCCT Kernel in Node, runs `buildModel` with `defaultParams` and prints one JSON line with the field names `template`, `params`, `valid`, `faces`, `edges`, `volume`, `area` and `bbox`, the box that just holds the exact geometry (`analysis.measure.tightBoundingBox`). It exits 1 when `shapeFix.isValid` finds the shape malformed or it has no volume; `debugInfo`'s own `valid` only says the shape is not empty. Add an assertion here when a change to the model has a fact worth pinning, such as a face count or a bounding box.
6
6
 
7
7
  Commands:
8
8
 
@@ -10,4 +10,4 @@ Commands:
10
10
  - `npm run build` typechecks and bundles for production; `npm run typecheck` and `npm run lint` run alone as well
11
11
  - `npm run smoke` typechecks, lints, then builds the model headlessly and prints the summary line; the kernel loads from `node_modules`, so nothing is downloaded: it is the same WebAssembly the browser runs inside a worker, loaded in-process, its content-hashed `.wasm` found beside the loader. The smoke script types the in-process kernel as the same `Occt` the browser code sees, through one `inProcess` cast, and awaits every call, so `buildModel` runs exactly as it does in the browser and `scripts/` is typechecked with the rest.
12
12
 
13
- The OCCT kernel runs in a web worker in the browser, so the objects `buildModel` handles there are pointers to shapes held by the worker, not the shapes themselves. That is why geometry is built entirely inside `buildModel` and only the result is drawn.
13
+ The Bitbybit OCCT Kernel runs in a web worker in the browser, so the objects `buildModel` handles there are pointers to shapes held by the worker, not the shapes themselves. That is why geometry is built entirely inside `buildModel` and only the result is drawn.
@@ -12,11 +12,11 @@
12
12
  "lint": "eslint . --max-warnings 0"
13
13
  },
14
14
  "dependencies": {
15
- "@bitbybit-dev/playcanvas": "1.5.0",
16
- "playcanvas": "2.22.2"
15
+ "@bitbybit-dev/playcanvas": "1.6.0",
16
+ "playcanvas": "2.23.3"
17
17
  },
18
18
  "devDependencies": {
19
- "@bitbybit-dev/occt": "1.5.0",
19
+ "@bitbybit-dev/occt": "1.6.0",
20
20
  "@eslint/js": "10.0.1",
21
21
  "@types/node": "22.20.1",
22
22
  "eslint": "10.10.0",