brepkit-wasm 1.3.2 → 2.1.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.
package/brepkit_wasm.d.ts CHANGED
@@ -1,5 +1,55 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ /**
4
+ * Typed result for `boundingBox`.
5
+ */
6
+ export interface BoundingBoxResult {
7
+ min_x: number;
8
+ min_y: number;
9
+ min_z: number;
10
+ max_x: number;
11
+ max_y: number;
12
+ max_z: number;
13
+ }
14
+
15
+ /**
16
+ * Typed result for `sketchSolve`.
17
+ */
18
+ export interface SketchSolveResult {
19
+ converged: boolean;
20
+ points: number[];
21
+ residual: number;
22
+ }
23
+
24
+ /**
25
+ * Typed result for `tessellateSolidGrouped`.
26
+ */
27
+ export interface GroupedMeshResult {
28
+ positions: number[];
29
+ normals: number[];
30
+ indices: number[];
31
+ faceOffsets: number[];
32
+ }
33
+
34
+ /**
35
+ * Typed result for `tessellateSolidUV`.
36
+ */
37
+ export interface UvMeshResult {
38
+ positions: number[];
39
+ normals: number[];
40
+ indices: number[];
41
+ uvs: number[];
42
+ }
43
+
44
+ /**
45
+ * Typed result for boolean operations with evolution tracking.
46
+ */
47
+ export interface EvolutionResult {
48
+ solid: number;
49
+ generated: number[];
50
+ modified: number[];
51
+ }
52
+
3
53
 
4
54
  /**
5
55
  * The B-Rep modeling kernel.
@@ -531,9 +581,9 @@ export class BrepKernel {
531
581
  */
532
582
  fuseWithEvolution(a: number, b: number): any;
533
583
  /**
534
- * Get analytic surface parameters for a face.
584
+ * Get the analytic surface parameters of a face.
535
585
  *
536
- * Returns a JSON string with type-dependent fields.
586
+ * Returns a JSON string with surface-type-specific parameters.
537
587
  */
538
588
  getAnalyticSurfaceParams(face: number): string;
539
589
  /**
@@ -1284,9 +1284,9 @@ export class BrepKernel {
1284
1284
  return takeFromExternrefTable0(ret[0]);
1285
1285
  }
1286
1286
  /**
1287
- * Get analytic surface parameters for a face.
1287
+ * Get the analytic surface parameters of a face.
1288
1288
  *
1289
- * Returns a JSON string with type-dependent fields.
1289
+ * Returns a JSON string with surface-type-specific parameters.
1290
1290
  * @param {number} face
1291
1291
  * @returns {string}
1292
1292
  */
Binary file
@@ -1286,9 +1286,9 @@ class BrepKernel {
1286
1286
  return takeFromExternrefTable0(ret[0]);
1287
1287
  }
1288
1288
  /**
1289
- * Get analytic surface parameters for a face.
1289
+ * Get the analytic surface parameters of a face.
1290
1290
  *
1291
- * Returns a JSON string with type-dependent fields.
1291
+ * Returns a JSON string with surface-type-specific parameters.
1292
1292
  * @param {number} face
1293
1293
  * @returns {string}
1294
1294
  */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "brepkit-wasm",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for brepkit — browser-native B-Rep solid modeling",
5
- "version": "1.3.2",
5
+ "version": "2.1.0",
6
6
  "license": "AGPL-3.0-only",
7
7
  "repository": {
8
8
  "type": "git",