opengeometry 2.0.14 → 2.0.16
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.
- package/README.md +4 -4
- package/index.d.ts +5 -7
- package/index.js +2301 -3312
- package/index.js.map +1 -1
- package/opengeometry/pkg/opengeometry.d.ts +286 -355
- package/opengeometry/pkg/opengeometry.js +826 -1247
- package/opengeometry/pkg/opengeometry_bg.wasm +0 -0
- package/opengeometry/pkg/opengeometry_bg.wasm.d.ts +231 -256
- package/opengeometry_bg.wasm +0 -0
- package/opengeometry_bg.wasm.d.ts +231 -256
- package/package.json +2 -4
- package/src/examples/index.d.ts +1 -1
- package/src/examples/{wall-from-offsets.d.ts → ribbon-from-offsets.d.ts} +6 -6
- package/src/operations/boolean-regions.d.ts +20 -0
- package/src/operations/index.d.ts +1 -0
- package/src/operations/offset-regions.d.ts +11 -12
- package/src/shapes/analytic-solid.d.ts +23 -7
- package/src/world/world-graph.d.ts +112 -0
- package/src/operations/boolean-errors.d.ts +0 -90
- package/src/shapes/boolean-subtract.d.ts +0 -21
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
OpenGeometry is an **open-source, browser-native CAD kernel**. The geometry engine is written in **Rust**, compiled to **WebAssembly**, and paired with a **Three.js-friendly TypeScript layer** so you can build real CAD tools that run in the browser.
|
|
34
34
|
|
|
35
|
-
OpenGeometry is best suited for **browser-based CAD,
|
|
35
|
+
OpenGeometry is best suited for **browser-based CAD, configurators, and geometry-heavy web tools**. Whether you're building a parametric modeler, a solid modeling workflow, a geometry viewer, or a custom Three.js modeling tool, OpenGeometry gives you deterministic, kernel-backed primitives and operations without leaving JavaScript.
|
|
36
36
|
|
|
37
37
|
It is the geometry engine layer, not a full CAD application. OpenPlans is a downstream application/toolkit built on top of OpenGeometry for AEC workflows. In this repository, OpenGeometry is the primary SDK and engine.
|
|
38
38
|
|
|
@@ -41,7 +41,7 @@ It is the geometry engine layer, not a full CAD application. OpenPlans is a down
|
|
|
41
41
|
Use OpenGeometry when you need:
|
|
42
42
|
|
|
43
43
|
- browser-based parametric modeling with Rust + WebAssembly performance
|
|
44
|
-
-
|
|
44
|
+
- cutout subtraction and other solid boolean workflows
|
|
45
45
|
- polygon extrusion into solids for CAD or AEC modeling
|
|
46
46
|
- IFC, STEP, STL, and PDF-style export/projection in web apps
|
|
47
47
|
- a Three.js-friendly CAD kernel instead of ad hoc mesh math
|
|
@@ -61,7 +61,7 @@ Good examples include:
|
|
|
61
61
|
|
|
62
62
|
**Good fit**
|
|
63
63
|
|
|
64
|
-
- browser CAD,
|
|
64
|
+
- browser CAD, mechanical design, and geometry-heavy web applications
|
|
65
65
|
- Three.js-based modeling tools that need a real kernel behind them
|
|
66
66
|
- AI first CAD frontends that need deterministic geometry execution in the browser
|
|
67
67
|
|
|
@@ -186,7 +186,7 @@ npm test
|
|
|
186
186
|
|
|
187
187
|
## Who is this for?
|
|
188
188
|
|
|
189
|
-
- Teams building **browser-based CAD
|
|
189
|
+
- Teams building **browser-based CAD and geometry tools**
|
|
190
190
|
- Developers evaluating **WebAssembly-powered 3D** for the web
|
|
191
191
|
- Contributors interested in the **Rust → WASM geometry pipeline**
|
|
192
192
|
- Anyone exploring **open-source CAD kernel internals**
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Public OpenGeometry JavaScript entrypoint.
|
|
3
3
|
*/
|
|
4
|
-
import { OGAnalyticBrep, OGAnalyticTessellation,
|
|
4
|
+
import { OGAnalyticBrep, OGAnalyticTessellation, WorkPlane, exportBrepToIfc, exportBrepToStep, exportBrepToStl, analyzeProfile, extrudeBrepFaceDirectional, validateAnalyticBrep, tessellate_brep, Vector3 } from "./opengeometry/pkg/opengeometry.js";
|
|
5
5
|
import { SpotLabel } from "./src/markup/spotMarker.js";
|
|
6
6
|
import { OpenGeometryOptions } from "./src/base-types.js";
|
|
7
7
|
export type OUTLINE_TYPE = "front" | "side" | "top";
|
|
@@ -64,18 +64,16 @@ export declare class OpenGeometry {
|
|
|
64
64
|
static create(options: OpenGeometryOptions): Promise<OpenGeometry>;
|
|
65
65
|
private setup;
|
|
66
66
|
}
|
|
67
|
-
|
|
68
|
-
* Scene manager that stores serialized BRep snapshots in wasm for projection,
|
|
69
|
-
* export, and other scene-level workflows.
|
|
70
|
-
*/
|
|
71
|
-
export { OGSceneManager };
|
|
67
|
+
export { exportBrepToIfc, exportBrepToStep, exportBrepToStl };
|
|
72
68
|
export { OGAnalyticBrep, OGAnalyticTessellation };
|
|
73
69
|
export { WorkPlane, analyzeProfile, extrudeBrepFaceDirectional, validateAnalyticBrep };
|
|
74
70
|
export { tessellate_brep };
|
|
75
71
|
export { AnalyticSolid } from "./src/shapes/analytic-solid.js";
|
|
72
|
+
export { WorldGraph, WorldGraphError, matrixToWorldTransform } from "./src/world/world-graph.js";
|
|
73
|
+
export type { WorldClash, WorldClashKind, WorldClashOptions, WorldExportedFile, WorldExportedMesh, WorldGraphErrorCode, WorldNodeOptions, WorldProjectedLine, WorldProjectedLines, WorldProjectedScene, WorldProjectedSegment, WorldProjectionView, WorldProximity, WorldTransform, } from "./src/world/world-graph.js";
|
|
76
74
|
export { AnalyticPattern, circularPattern, linearPattern, rectangularPattern } from "./src/shapes/analytic-pattern.js";
|
|
77
75
|
export type { AnalyticPatternHit, AnalyticPatternInstance } from "./src/shapes/analytic-pattern.js";
|
|
78
|
-
export type { AnalyticBooleanOp, AnalyticBooleanReport, AnalyticBrepOptions, AnalyticFrame, AnalyticAccuracy,
|
|
76
|
+
export type { AnalyticBooleanOp, AnalyticBooleanReport, AnalyticBrepOptions, AnalyticFrame, AnalyticAccuracy, AnalyticAnnularSectorOpening, AnalyticProfileEdge, AnalyticPolygonLoftAlignment, AnalyticProjectionCamera, AnalyticProjectionHlr, AnalyticPrimitiveOptions, AnalyticTessellationStats, AnalyticTessellationOptions, AnalyticStepExport, AnalyticStlExport, } from "./src/shapes/analytic-solid.js";
|
|
79
77
|
/**
|
|
80
78
|
* Shared wasm-backed vector type used throughout the public API.
|
|
81
79
|
*
|