File indexing completed on 2026-10-06 09:19:45
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepFill_Pipe_HeaderFile
0018 #define _BRepFill_Pipe_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <TopoDS_Wire.hxx>
0025 #include <TopoDS_Shape.hxx>
0026 #include <gp_Trsf.hxx>
0027 #include <TopTools_ShapeMapHasher.hxx>
0028 #include <NCollection_Map.hxx>
0029 #include <NCollection_Array2.hxx>
0030 #include <NCollection_HArray2.hxx>
0031 #include <NCollection_DataMap.hxx>
0032 #include <NCollection_List.hxx>
0033 #include <Standard_Integer.hxx>
0034 #include <GeomAbs_Shape.hxx>
0035 #include <GeomFill_Trihedron.hxx>
0036 class BRepFill_LocationLaw;
0037 class TopoDS_Face;
0038 class TopoDS_Edge;
0039 class TopoDS_Vertex;
0040 class gp_Pnt;
0041 class BRepFill_Sweep;
0042
0043
0044
0045
0046
0047
0048
0049 class BRepFill_Pipe
0050 {
0051 public:
0052 DEFINE_STANDARD_ALLOC
0053
0054 Standard_EXPORT BRepFill_Pipe();
0055
0056 Standard_EXPORT BRepFill_Pipe(const TopoDS_Wire& Spine,
0057 const TopoDS_Shape& Profile,
0058 const GeomFill_Trihedron aMode = GeomFill_IsCorrectedFrenet,
0059 const bool ForceApproxC1 = false,
0060 const bool GeneratePartCase = false);
0061
0062 Standard_EXPORT void Perform(const TopoDS_Wire& Spine,
0063 const TopoDS_Shape& Profile,
0064 const bool GeneratePartCase = false);
0065
0066 Standard_EXPORT const TopoDS_Shape& Spine() const;
0067
0068 Standard_EXPORT const TopoDS_Shape& Profile() const;
0069
0070 Standard_EXPORT const TopoDS_Shape& Shape() const;
0071
0072 Standard_EXPORT double ErrorOnSurface() const;
0073
0074 Standard_EXPORT const TopoDS_Shape& FirstShape() const;
0075
0076 Standard_EXPORT const TopoDS_Shape& LastShape() const;
0077
0078
0079
0080 Standard_EXPORT void Generated(const TopoDS_Shape& S, NCollection_List<TopoDS_Shape>& L);
0081
0082
0083
0084
0085 Standard_EXPORT TopoDS_Face Face(const TopoDS_Edge& ESpine, const TopoDS_Edge& EProfile);
0086
0087
0088
0089
0090
0091 Standard_EXPORT TopoDS_Edge Edge(const TopoDS_Edge& ESpine, const TopoDS_Vertex& VProfile);
0092
0093
0094
0095
0096 Standard_EXPORT TopoDS_Shape Section(const TopoDS_Vertex& VSpine) const;
0097
0098
0099
0100 Standard_EXPORT TopoDS_Wire PipeLine(const gp_Pnt& Point);
0101
0102 private:
0103
0104 Standard_EXPORT TopoDS_Shape MakeShape(const TopoDS_Shape& S,
0105 const TopoDS_Shape& theOriginalS,
0106 const TopoDS_Shape& FirstShape,
0107 const TopoDS_Shape& LastShape);
0108
0109
0110 Standard_EXPORT int FindEdge(const TopoDS_Shape& S, const TopoDS_Edge& E, int& Init) const;
0111
0112 Standard_EXPORT int FindVertex(const TopoDS_Shape& S, const TopoDS_Vertex& V, int& Init) const;
0113
0114 Standard_EXPORT void DefineRealSegmax();
0115
0116 Standard_EXPORT void RebuildTopOrBottomFace(const TopoDS_Shape& aFace, const bool IsTop) const;
0117
0118 Standard_EXPORT void BuildHistory(const BRepFill_Sweep& theSweep, const TopoDS_Shape& theSection);
0119
0120 TopoDS_Wire mySpine;
0121 TopoDS_Shape myProfile;
0122 TopoDS_Shape myShape;
0123 gp_Trsf myTrsf;
0124 occ::handle<BRepFill_LocationLaw> myLoc;
0125 occ::handle<NCollection_HArray2<TopoDS_Shape>> mySections;
0126 occ::handle<NCollection_HArray2<TopoDS_Shape>> myFaces;
0127 occ::handle<NCollection_HArray2<TopoDS_Shape>> myEdges;
0128 NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> myReversedEdges;
0129 NCollection_DataMap<TopoDS_Shape,
0130 occ::handle<NCollection_HArray2<TopoDS_Shape>>,
0131 TopTools_ShapeMapHasher>
0132 myTapes;
0133 NCollection_DataMap<TopoDS_Shape,
0134 occ::handle<NCollection_HArray2<TopoDS_Shape>>,
0135 TopTools_ShapeMapHasher>
0136 myRails;
0137 int myCurIndexOfSectionEdge;
0138 TopoDS_Shape myFirst;
0139 TopoDS_Shape myLast;
0140 NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>
0141 myGenMap;
0142 int myDegmax;
0143 int mySegmax;
0144 GeomAbs_Shape myContinuity;
0145 GeomFill_Trihedron myMode;
0146 bool myForceApproxC1;
0147 double myErrorOnSurf;
0148 };
0149
0150 #endif