Skip to content

Commit 7705e8d

Browse files
implemented toPolygonPoints export from OCCT shapes and Manifold mesh recreation algorithm from those polygon points. This makes it easier to translate meshed BRep geometries from OCCT to JSCAD and Manifold kernels. There's no need to mangle with game engine meshes in this process.
1 parent 33cc96f commit 7705e8d

File tree

18 files changed

+180
-23
lines changed

18 files changed

+180
-23
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c)2025 Bit By Bit Developers
3+
Copyright (c) 2025 Bit By Bit Developers
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/dev/babylonjs/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c)2025 Bit By Bit Developers
3+
Copyright (c) 2025 Bit By Bit Developers
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/dev/babylonjs/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
## Bit By Bit Developers library for BABYLONJS game engine
22

3+
This project exposes core 3D algorithms of Bitbybit platform through BABYLONJS game engine. Code is open-sourced under MIT license. This library was previously intertwined in core package and is now separated.
4+
5+
<img src="https://app.bitbybit.dev/assets/git-cover.png" alt="Picture showing bitbybit.dev platform">
6+
37
Visit [bitbybit.dev](https://bitbybit.dev) to use our full cloud platform.
48
Best way to support us - [Silver or Gold plan subscription](https://bitbybit.dev/auth/pick-plan)
59
Buy unique products from our [Crafts shop](https://crafts.bitbybit.dev) all designed with Bitbybit algorithms
610
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1) also used in our Crafts shop
711

8-
<img src="https://app.bitbybit.dev/assets/git-cover.png" alt="Picture showing bitbybit.dev platform">
9-
10-
This project exposes 3D algorithms of Bit By Bit Developers platform through BABYLONJS game engine. Code is open-sourced under MIT license. This library was previously intertwined in core package and is now separated.
11-
1212
## Github
1313
https://github.com/bitbybit-dev/bitbybit
1414
## NPM

packages/dev/base/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c)2025 Bit By Bit Developers
3+
Copyright (c) 2025 Bit By Bit Developers
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/dev/core/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c)2025 Bit By Bit Developers
3+
Copyright (c) 2025 Bit By Bit Developers
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/dev/jscad-worker/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c)2025 Bit By Bit Developers
3+
Copyright (c) 2025 Bit By Bit Developers
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/dev/jscad/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c)2025 Bit By Bit Developers
3+
Copyright (c) 2025 Bit By Bit Developers
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/dev/manifold-worker/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c)2025 Bit By Bit Developers
3+
Copyright (c) 2025 Bit By Bit Developers
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/dev/manifold-worker/lib/api/manifold/shapes.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ export class ManifoldShapes {
3232
return this.manifoldWorkerManager.genericCallToWorkerPromise("manifold.shapes.manifoldFromMesh", inputs);
3333
}
3434

35+
/**
36+
* Create a Manifold from a set of polygon points describing triangles.
37+
* @param inputs Polygon points
38+
* @returns Manifold
39+
* @group create
40+
* @shortname from polygon points
41+
* @drawable true
42+
*/
43+
fromPolygonPoints(inputs: Inputs.Manifold.FromPolygonPointsDto): Promise<Inputs.Manifold.ManifoldPointer> {
44+
return this.manifoldWorkerManager.genericCallToWorkerPromise("manifold.shapes.fromPolygonPoints", inputs);
45+
}
46+
3547
/**
3648
* Create a 3D cube shape
3749
* @param inputs Cube parameters

packages/dev/manifold/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c)2025 Bit By Bit Developers
3+
Copyright (c) 2025 Bit By Bit Developers
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)