Skip to content

Commit

Permalink
🐳 chore: update occ
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangechen committed May 1, 2024
1 parent 9c8a3f0 commit 59953e8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/chili-occ/occ-wasm/build_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ mainBuild:
- symbol: BRepPrimAPI_MakeSweep
- symbol: BRepPrimAPI_MakeTorus
- symbol: BRepTools
- symbol: BRepTools_ReShape
- symbol: ChFi3d_FilletShape
- symbol: ChFiDS_ChamfMode
- symbol: Convert_ParameterisationType
Expand Down Expand Up @@ -166,6 +167,7 @@ mainBuild:
- symbol: ProjLib
- symbol: ShapeAnalysis_Edge
- symbol: ShapeAnalysis_WireOrder
- symbol: ShapeBuild_ReShape
- symbol: ShapeFix_EdgeConnect
- symbol: ShapeFix_Face
- symbol: ShapeFix_Root
Expand Down
34 changes: 34 additions & 0 deletions packages/chili-occ/occ-wasm/chili_occ.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2077,6 +2077,26 @@ export declare class BRepTools {
delete(): void;
}

export declare class BRepTools_ReShape extends Standard_Transient {
constructor()
Clear(): void;
Remove(shape: TopoDS_Shape): void;
Replace(shape: TopoDS_Shape, newshape: TopoDS_Shape): void;
IsRecorded(shape: TopoDS_Shape): Standard_Boolean;
Value(shape: TopoDS_Shape): TopoDS_Shape;
Status(shape: TopoDS_Shape, newsh: TopoDS_Shape, last: Standard_Boolean): Graphic3d_ZLayerId;
Apply(theShape: TopoDS_Shape, theUntil: TopAbs_ShapeEnum): TopoDS_Shape;
ModeConsiderLocation(): Standard_Boolean;
CopyVertex_1(theV: TopoDS_Vertex, theTol: Standard_Real): TopoDS_Vertex;
CopyVertex_2(theV: TopoDS_Vertex, theNewPos: gp_Pnt, aTol: Standard_Real): TopoDS_Vertex;
IsNewShape(theShape: TopoDS_Shape): Standard_Boolean;
History(): Handle_BRepTools_History;
static get_type_name(): Standard_Character;
static get_type_descriptor(): Handle_Standard_Type;
DynamicType(): Handle_Standard_Type;
delete(): void;
}

export declare class Bnd_Box {
SetWhole(): void;
SetVoid(): void;
Expand Down Expand Up @@ -4154,6 +4174,18 @@ export declare class ShapeAnalysis_WireOrder {
constructor(mode3d: Standard_Boolean, tol: Standard_Real);
}

export declare class ShapeBuild_ReShape extends BRepTools_ReShape {
constructor()
Apply_1(shape: TopoDS_Shape, until: TopAbs_ShapeEnum, buildmode: Graphic3d_ZLayerId): TopoDS_Shape;
Apply_2(shape: TopoDS_Shape, until: TopAbs_ShapeEnum): TopoDS_Shape;
Status_1(shape: TopoDS_Shape, newsh: TopoDS_Shape, last: Standard_Boolean): Graphic3d_ZLayerId;
Status_2(status: ShapeExtend_Status): Standard_Boolean;
static get_type_name(): Standard_Character;
static get_type_descriptor(): Handle_Standard_Type;
DynamicType(): Handle_Standard_Type;
delete(): void;
}

export declare class ShapeFix_EdgeConnect {
constructor()
Add_1(aFirst: TopoDS_Edge, aSecond: TopoDS_Edge): void;
Expand Down Expand Up @@ -6536,6 +6568,7 @@ export type OpenCascadeInstance = {FS: typeof FS} & {
BRepPrimAPI_MakeTorus_7: typeof BRepPrimAPI_MakeTorus_7;
BRepPrimAPI_MakeTorus_8: typeof BRepPrimAPI_MakeTorus_8;
BRepTools: typeof BRepTools;
BRepTools_ReShape: typeof BRepTools_ReShape;
Bnd_Box: typeof Bnd_Box;
Bnd_Box_1: typeof Bnd_Box_1;
Bnd_Box_2: typeof Bnd_Box_2;
Expand Down Expand Up @@ -6764,6 +6797,7 @@ export type OpenCascadeInstance = {FS: typeof FS} & {
ShapeAnalysis_WireOrder: typeof ShapeAnalysis_WireOrder;
ShapeAnalysis_WireOrder_1: typeof ShapeAnalysis_WireOrder_1;
ShapeAnalysis_WireOrder_2: typeof ShapeAnalysis_WireOrder_2;
ShapeBuild_ReShape: typeof ShapeBuild_ReShape;
ShapeFix_EdgeConnect: typeof ShapeFix_EdgeConnect;
ShapeFix_Face: typeof ShapeFix_Face;
ShapeFix_Face_1: typeof ShapeFix_Face_1;
Expand Down
Binary file modified packages/chili-occ/occ-wasm/chili_occ.wasm
Binary file not shown.

0 comments on commit 59953e8

Please sign in to comment.