Skip to content

Commit 04d14c2

Browse files
committed
extend makePipe and IShell definition
1 parent b1d4e76 commit 04d14c2

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

lib/interfaces.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,22 @@ export interface IFace extends IShape<IFace> {
165165

166166
export interface IShell extends IShape<IShell> {
167167
shapeType: "SHELL";
168-
169168
hashCode: string;
170-
171169
numFaces: UInteger;
172170
orientation: "FORWARD";
171+
area: Real;
172+
getEdges(): IEdge[];
173+
getFaces(): IFace[];
174+
getVertices(): IVertex[];
175+
getCommonEdges(face1: IFace, face2: IFace): IEdge[];
176+
getAdjacentFaces(face: IFace): IFace[];
177+
faces: {
178+
[key: string]: IFace;
179+
};
180+
hasMesh: boolean;
181+
mesh: IMesh;
182+
createMesh(tolerance: Real, angle?: Real): IMesh;
183+
getShapeName(topologyElement: IFace | IEdge | IVertex): string;
173184
}
174185

175186
export interface IShapeIterator<T> {
@@ -279,7 +290,7 @@ export interface OCC {
279290
* @param profile
280291
*/
281292
makePipe(spine: IWire, profile: IWire): IShell;
282-
makePipe(spine: IFace, profile: IWire): ISolid;
293+
// makePipe(spine: IFace, profile: IWire): ISolid;
283294

284295
makeRevol(vertex: IVertex, axis: IAxisLike, angleDegree?: number): IEdge;
285296
makeRevol(edge: IEdge, axis: IAxisLike, angleDegree?: number): IFace;

0 commit comments

Comments
 (0)