brepjs-opencascade 0.2.0 → 0.4.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/package.json +10 -3
- package/src/brepjs_single.d.ts +50 -0
- package/src/brepjs_single.wasm +0 -0
- package/src/brepjs_threaded.d.ts +9097 -0
- package/src/brepjs_threaded.js +16 -0
- package/src/brepjs_threaded.wasm +0 -0
- package/src/brepjs_threaded.worker.js +1 -0
- package/src/brepjs_with_exceptions.d.ts +50 -0
- package/src/brepjs_with_exceptions.js +1 -1
- package/src/brepjs_with_exceptions.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs-opencascade",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "OpenCascade.js custom WASM build for brepjs",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "src/brepjs_single.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./src/brepjs_single.js",
|
|
9
|
+
"./single": "./src/brepjs_single.js",
|
|
10
|
+
"./threaded": "./src/brepjs_threaded.js",
|
|
11
|
+
"./src/*": "./src/*"
|
|
12
|
+
},
|
|
7
13
|
"directories": {
|
|
8
14
|
"lib": "src"
|
|
9
15
|
},
|
|
@@ -11,10 +17,11 @@
|
|
|
11
17
|
"src"
|
|
12
18
|
],
|
|
13
19
|
"scripts": {
|
|
14
|
-
"buildWasm": "pnpm run generateConfig && pnpm run buildSingle && pnpm run buildWithExceptions",
|
|
20
|
+
"buildWasm": "pnpm run generateConfig && pnpm run buildSingle && pnpm run buildWithExceptions && pnpm run buildThreaded",
|
|
15
21
|
"updateDocker": "docker pull donalffons/opencascade.js",
|
|
16
22
|
"generateConfig": "ytt -f build-source/ --output-files build-config",
|
|
17
23
|
"buildSingle": "cd build-config && docker run -it --rm -v $(pwd):/src -u $(id -u):$(id -g) donalffons/opencascade.js custom_build_single.yml && mv brepjs_single* ../src && cd -",
|
|
18
|
-
"buildWithExceptions": "cd build-config && docker run -it --rm -v $(pwd):/src -u $(id -u):$(id -g) donalffons/opencascade.js custom_build_with_exceptions.yml && mv brepjs_with_exceptions* ../src && cd -"
|
|
24
|
+
"buildWithExceptions": "cd build-config && docker run -it --rm -v $(pwd):/src -u $(id -u):$(id -g) donalffons/opencascade.js custom_build_with_exceptions.yml && mv brepjs_with_exceptions* ../src && cd -",
|
|
25
|
+
"buildThreaded": "cd build-config && docker run -it --rm -v $(pwd):/src -u $(id -u):$(id -g) donalffons/opencascade.js:multi-threaded custom_build_threaded.yml && mv brepjs_threaded* ../src && cd -"
|
|
19
26
|
}
|
|
20
27
|
}
|
package/src/brepjs_single.d.ts
CHANGED
|
@@ -8039,6 +8039,48 @@ export declare class BooleanBatch {
|
|
|
8039
8039
|
delete(): void;
|
|
8040
8040
|
}
|
|
8041
8041
|
|
|
8042
|
+
export declare class EdgeMeshData {
|
|
8043
|
+
getLinesPtr(): Standard_Integer;
|
|
8044
|
+
getLinesSize(): Standard_Integer;
|
|
8045
|
+
getEdgeGroupsPtr(): Standard_Integer;
|
|
8046
|
+
getEdgeGroupsSize(): Standard_Integer;
|
|
8047
|
+
delete(): void;
|
|
8048
|
+
}
|
|
8049
|
+
|
|
8050
|
+
export declare class EdgeMeshData_1 extends EdgeMeshData {
|
|
8051
|
+
constructor();
|
|
8052
|
+
}
|
|
8053
|
+
|
|
8054
|
+
export declare class EdgeMeshData_2 extends EdgeMeshData {
|
|
8055
|
+
constructor(other: EdgeMeshData);
|
|
8056
|
+
}
|
|
8057
|
+
|
|
8058
|
+
export declare class EdgeMeshExtractor {
|
|
8059
|
+
constructor();
|
|
8060
|
+
static extract(shape: TopoDS_Shape, tolerance: Standard_Real, angularTolerance: Standard_Real): EdgeMeshData;
|
|
8061
|
+
delete(): void;
|
|
8062
|
+
}
|
|
8063
|
+
|
|
8064
|
+
export declare class TopologyResult {
|
|
8065
|
+
getShapesCount(): Standard_Integer;
|
|
8066
|
+
getShape(index: Standard_Integer): TopoDS_Shape;
|
|
8067
|
+
delete(): void;
|
|
8068
|
+
}
|
|
8069
|
+
|
|
8070
|
+
export declare class TopologyResult_1 extends TopologyResult {
|
|
8071
|
+
constructor();
|
|
8072
|
+
}
|
|
8073
|
+
|
|
8074
|
+
export declare class TopologyResult_2 extends TopologyResult {
|
|
8075
|
+
constructor(other: TopologyResult);
|
|
8076
|
+
}
|
|
8077
|
+
|
|
8078
|
+
export declare class TopologyExtractor {
|
|
8079
|
+
constructor();
|
|
8080
|
+
static extract(shape: TopoDS_Shape, shapeType: Standard_Integer): TopologyResult;
|
|
8081
|
+
delete(): void;
|
|
8082
|
+
}
|
|
8083
|
+
|
|
8042
8084
|
type Standard_Boolean = boolean;
|
|
8043
8085
|
type Standard_Byte = number;
|
|
8044
8086
|
type Standard_Character = number;
|
|
@@ -9040,6 +9082,14 @@ export type OpenCascadeInstance = {FS: typeof FS} & {
|
|
|
9040
9082
|
MeshData_2: typeof MeshData_2;
|
|
9041
9083
|
MeshExtractor: typeof MeshExtractor;
|
|
9042
9084
|
BooleanBatch: typeof BooleanBatch;
|
|
9085
|
+
EdgeMeshData: typeof EdgeMeshData;
|
|
9086
|
+
EdgeMeshData_1: typeof EdgeMeshData_1;
|
|
9087
|
+
EdgeMeshData_2: typeof EdgeMeshData_2;
|
|
9088
|
+
EdgeMeshExtractor: typeof EdgeMeshExtractor;
|
|
9089
|
+
TopologyResult: typeof TopologyResult;
|
|
9090
|
+
TopologyResult_1: typeof TopologyResult_1;
|
|
9091
|
+
TopologyResult_2: typeof TopologyResult_2;
|
|
9092
|
+
TopologyExtractor: typeof TopologyExtractor;
|
|
9043
9093
|
};
|
|
9044
9094
|
|
|
9045
9095
|
declare function init(): Promise<OpenCascadeInstance>;
|
package/src/brepjs_single.wasm
CHANGED
|
Binary file
|