Skip to content

Commit faf288e

Browse files
committed
improve makePipeShell
1 parent 04d14c2 commit faf288e

File tree

8 files changed

+722
-241
lines changed

8 files changed

+722
-241
lines changed

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
"valarray": "cpp",
5757
"chrono": "cpp",
5858
"complex": "cpp",
59-
"ratio": "cpp"
59+
"ratio": "cpp",
60+
"compare": "cpp",
61+
"concepts": "cpp",
62+
"ranges": "cpp"
6063
}
6164
}

lib/interfaces.ts

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export interface IShell extends IShape<IShell> {
175175
getCommonEdges(face1: IFace, face2: IFace): IEdge[];
176176
getAdjacentFaces(face: IFace): IFace[];
177177
faces: {
178-
[key: string]: IFace;
178+
[key: string]: IFace;
179179
};
180180
hasMesh: boolean;
181181
mesh: IMesh;
@@ -292,6 +292,35 @@ export interface OCC {
292292
makePipe(spine: IWire, profile: IWire): IShell;
293293
// makePipe(spine: IFace, profile: IWire): ISolid;
294294

295+
296+
// to do find a better name
297+
makePipeShell(params: {
298+
wire: IWire,
299+
spineSupport: IWire,
300+
auxilaryCurve?: IWire,
301+
solid?: false;
302+
}): IShell;
303+
304+
makePipeShell(params: {
305+
wire: IWire,
306+
spineSupport: IWire,
307+
auxilaryCurve?: IWire,
308+
solid: true;
309+
}): ISolid;
310+
311+
makePipeShell(params: {
312+
wires: IWire[],
313+
spineSupport: IWire,
314+
auxilaryCurve?: IWire,
315+
solid?: false;
316+
}): IShell;
317+
318+
makePipeShell(params: {
319+
wires: IWire[],
320+
spineSupport: IWire,
321+
auxilaryCurve?: IWire,
322+
solid: true;
323+
}): ISolid;
295324
makeRevol(vertex: IVertex, axis: IAxisLike, angleDegree?: number): IEdge;
296325
makeRevol(edge: IEdge, axis: IAxisLike, angleDegree?: number): IFace;
297326
makeRevol(wire: IWire, axis: IAxisLike, angleDegree?: number): IShell;

0 commit comments

Comments
 (0)