brepkit-wasm 2.0.0 → 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 +52 -2
- package/brepkit_wasm_bg.js +2 -2
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +2 -2
- package/package.json +1 -1
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
|
|
584
|
+
* Get the analytic surface parameters of a face.
|
|
535
585
|
*
|
|
536
|
-
* Returns a JSON string with type-
|
|
586
|
+
* Returns a JSON string with surface-type-specific parameters.
|
|
537
587
|
*/
|
|
538
588
|
getAnalyticSurfaceParams(face: number): string;
|
|
539
589
|
/**
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -1284,9 +1284,9 @@ export class BrepKernel {
|
|
|
1284
1284
|
return takeFromExternrefTable0(ret[0]);
|
|
1285
1285
|
}
|
|
1286
1286
|
/**
|
|
1287
|
-
* Get analytic surface parameters
|
|
1287
|
+
* Get the analytic surface parameters of a face.
|
|
1288
1288
|
*
|
|
1289
|
-
* Returns a JSON string with type-
|
|
1289
|
+
* Returns a JSON string with surface-type-specific parameters.
|
|
1290
1290
|
* @param {number} face
|
|
1291
1291
|
* @returns {string}
|
|
1292
1292
|
*/
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -1286,9 +1286,9 @@ class BrepKernel {
|
|
|
1286
1286
|
return takeFromExternrefTable0(ret[0]);
|
|
1287
1287
|
}
|
|
1288
1288
|
/**
|
|
1289
|
-
* Get analytic surface parameters
|
|
1289
|
+
* Get the analytic surface parameters of a face.
|
|
1290
1290
|
*
|
|
1291
|
-
* Returns a JSON string with type-
|
|
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