Skip to content

Commit 7245d05

Browse files
Merge pull request #52 from bitbybit-dev/develop
Bug fix in threejs for assigning material and update to readme
2 parents e352468 + 6485a8f commit 7245d05

2 files changed

Lines changed: 36 additions & 9 deletions

File tree

README.md

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,47 @@ Visit https://bitbybit.dev to use our full cloud platform.
88

99
## Github
1010
https://github.com/bitbybit-dev/bitbybit
11+
1112
## NPM Packages
12-
https://www.npmjs.com/package/@bitbybit-dev/babylonjs
13-
https://www.npmjs.com/package/@bitbybit-dev/threejs
14-
https://www.npmjs.com/package/@bitbybit-dev/core
13+
14+
[@bitbybit-dev/babylonjs](https://www.npmjs.com/package/@bitbybit-dev/babylonjs)
15+
BabylonJS game engine integration that allows easy drawing of geometry constructed by JSCAD, Manifold and OCCT kernels.
16+
[@bitbybit-dev/threejs](https://www.npmjs.com/package/@bitbybit-dev/threejs)
17+
ThreeJS game engine integration that allows easy drawing of geometry constructed by JSCAD, Manifold and OCCT kernels.
18+
[@bitbybit-dev/core](https://www.npmjs.com/package/@bitbybit-dev/core)
19+
Assembles various packages and provides additional features that may combine all CAD kernels
20+
[@bitbybit-dev/jscad](https://www.npmjs.com/package/@bitbybit-dev/jscad)
21+
Wraps JSCAD with additional algorithms offered by bitbybit.dev
22+
[@bitbybit-dev/jscad-worker](https://www.npmjs.com/package/@bitbybit-dev/jscad-worker)
23+
Exposes @bitbybit-dev/jscad package via webworker and makes all calls asynchronouse and non-blocking
24+
[@bitbybit-dev/manifold](https://www.npmjs.com/package/@bitbybit-dev/manifold)
25+
Wraps MANIFOLD with additional algorithms offered by bitbybit.dev
26+
[@bitbybit-dev/manifold-worker](https://www.npmjs.com/package/@bitbybit-dev/manifold-worker)
27+
Exposes @bitbybit-dev/manifold package via webworker and makes all calls asynchronouse and non-blocking
28+
[@bitbybit-dev/occt](https://www.npmjs.com/package/@bitbybit-dev/occt)
29+
Wraps OpenCascade with additional algorithms offered by bitbybit.dev
30+
[@bitbybit-dev/occt-worker](https://www.npmjs.com/package/@bitbybit-dev/occt-worker)
31+
Exposes @bitbybit-dev/occt package via webworker and makes all calls asynchronouse and non-blocking
32+
[@bitbybit-dev/base](https://www.npmjs.com/package/@bitbybit-dev/base)
33+
Contains various base algorithms used in all other layers, such as vector math.
34+
35+
To understand the structure of these packages better we provided this diagram:
36+
37+
## NPM Package Architecture
38+
<img src="https://app.bitbybit.dev/assets/npm-package-architecture.jpeg" alt="Schematic diagram showing the architecture of all NPM packages">
1539

1640
## Example Applications
1741
Laptop Holder
1842
https://app-store.bitbybit.dev/laptop-holder
19-
Github Source Code Angular - https://github.com/bitbybit-dev/app-examples/tree/main/angular/laptop-holder
20-
Github Source Code React - https://github.com/bitbybit-dev/app-examples/tree/main/react/laptop-holder
43+
Github Source Code Angular
44+
https://github.com/bitbybit-dev/app-examples/tree/main/angular/laptop-holder
45+
Github Source Code React
46+
https://github.com/bitbybit-dev/app-examples/tree/main/react/laptop-holder
2147

2248
Cup Configurator
23-
https://app-store.bitbybit.dev/cup
24-
Github Source Code - https://github.com/bitbybit-dev/app-examples/tree/main/react/cup
49+
https://app-store.bitbybit.dev/cup
50+
Github Source Code
51+
https://github.com/bitbybit-dev/app-examples/tree/main/react/cup
2552

2653
## Closed Source Example Applications
2754
https://app-store.bitbybit.dev/terrace-furniture
@@ -42,4 +69,4 @@ Bit By Bit Developers company will keep these core algorithms that you can find
4269
Bit By Bit Developers web platform allows creators to program geometry through simple visual programming language or choose monaco typescript editor with full intellisense of bitbybit API. This cloud platform can fulfil many practical, educational and artistic needs of its users. Through familiar programming interface used in tools such as Scratch and Blockly.Games we expose powerful 3D algorithms that make it easier to implement various parametric tasks. Our goal is to make it very simple for users to share their ideas and designs. We want to encourage everyone to engage in the future of this tool.
4370

4471
## Major Dependencies
45-
BabylonJS, ThreeJS, OpenCascade, JSCAD, Verbnurbs
72+
BabylonJS, ThreeJS, OpenCascade, Manifold, JSCAD, Verbnurbs

packages/dev/threejs/lib/api/draw-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ export class DrawHelper extends DrawHelperCore {
741741
}
742742
group.add(new Mesh(geometry, material));
743743
} else {
744-
group.add(new Mesh(geometry));
744+
group.add(new Mesh(geometry, options.faceMaterial));
745745
}
746746
this.context.scene.add(group);
747747
return group;

0 commit comments

Comments
 (0)