File indexing completed on 2025-01-18 10:03:12
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepFill_PipeShell_HeaderFile
0018 #define _BRepFill_PipeShell_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <TopoDS_Wire.hxx>
0024 #include <TopoDS_Shape.hxx>
0025 #include <BRepFill_SequenceOfSection.hxx>
0026 #include <TopTools_DataMapOfShapeListOfShape.hxx>
0027 #include <Standard_Integer.hxx>
0028 #include <TopTools_HArray2OfShape.hxx>
0029 #include <GeomFill_Trihedron.hxx>
0030 #include <BRepFill_TransitionStyle.hxx>
0031 #include <GeomFill_PipeError.hxx>
0032 #include <Standard_Transient.hxx>
0033 #include <BRepFill_TypeOfContact.hxx>
0034 #include <TopTools_ListOfShape.hxx>
0035 #include <TopTools_SequenceOfShape.hxx>
0036 #include <TColStd_SequenceOfInteger.hxx>
0037 class Law_Function;
0038 class BRepFill_LocationLaw;
0039 class BRepFill_SectionLaw;
0040 class gp_Ax2;
0041 class gp_Dir;
0042 class TopoDS_Vertex;
0043 class gp_Trsf;
0044 class BRepFill_Sweep;
0045
0046
0047 class BRepFill_PipeShell;
0048 DEFINE_STANDARD_HANDLE(BRepFill_PipeShell, Standard_Transient)
0049
0050
0051
0052
0053 class BRepFill_PipeShell : public Standard_Transient
0054 {
0055
0056 public:
0057
0058
0059
0060
0061 Standard_EXPORT BRepFill_PipeShell(const TopoDS_Wire& Spine);
0062
0063
0064
0065 Standard_EXPORT void Set (const Standard_Boolean Frenet = Standard_False);
0066
0067
0068
0069 Standard_EXPORT void SetDiscrete();
0070
0071
0072
0073 Standard_EXPORT void Set (const gp_Ax2& Axe);
0074
0075
0076
0077 Standard_EXPORT void Set (const gp_Dir& BiNormal);
0078
0079
0080
0081
0082
0083 Standard_EXPORT Standard_Boolean Set (const TopoDS_Shape& SpineSupport);
0084
0085
0086
0087
0088
0089
0090
0091
0092
0093
0094
0095
0096
0097
0098
0099
0100
0101
0102
0103
0104
0105 Standard_EXPORT void Set (const TopoDS_Wire& AuxiliarySpine, const Standard_Boolean CurvilinearEquivalence = Standard_True, const BRepFill_TypeOfContact KeepContact = BRepFill_NoContact);
0106
0107
0108 Standard_EXPORT void SetMaxDegree (const Standard_Integer NewMaxDegree);
0109
0110
0111
0112 Standard_EXPORT void SetMaxSegments (const Standard_Integer NewMaxSegments);
0113
0114
0115
0116
0117
0118
0119
0120
0121
0122
0123 Standard_EXPORT void SetForceApproxC1 (const Standard_Boolean ForceApproxC1);
0124
0125
0126 Standard_EXPORT void Add (const TopoDS_Shape& Profile, const Standard_Boolean WithContact = Standard_False, const Standard_Boolean WithCorrection = Standard_False);
0127
0128
0129 Standard_EXPORT void Add (const TopoDS_Shape& Profile, const TopoDS_Vertex& Location, const Standard_Boolean WithContact = Standard_False, const Standard_Boolean WithCorrection = Standard_False);
0130
0131
0132
0133 Standard_EXPORT void SetLaw (const TopoDS_Shape& Profile, const Handle(Law_Function)& L, const Standard_Boolean WithContact = Standard_False, const Standard_Boolean WithCorrection = Standard_False);
0134
0135
0136
0137 Standard_EXPORT void SetLaw (const TopoDS_Shape& Profile, const Handle(Law_Function)& L, const TopoDS_Vertex& Location, const Standard_Boolean WithContact = Standard_False, const Standard_Boolean WithCorrection = Standard_False);
0138
0139
0140 Standard_EXPORT void DeleteProfile (const TopoDS_Shape& Profile);
0141
0142
0143
0144 Standard_EXPORT Standard_Boolean IsReady() const;
0145
0146
0147 Standard_EXPORT GeomFill_PipeError GetStatus() const;
0148
0149 Standard_EXPORT void SetTolerance (const Standard_Real Tol3d = 1.0e-4, const Standard_Real BoundTol = 1.0e-4, const Standard_Real TolAngular = 1.0e-2);
0150
0151
0152
0153 Standard_EXPORT void SetTransition (const BRepFill_TransitionStyle Mode = BRepFill_Modified, const Standard_Real Angmin = 1.0e-2, const Standard_Real Angmax = 6.0);
0154
0155
0156
0157 Standard_EXPORT void Simulate (const Standard_Integer NumberOfSection, TopTools_ListOfShape& Sections);
0158
0159
0160 Standard_EXPORT Standard_Boolean Build();
0161
0162
0163
0164 Standard_EXPORT Standard_Boolean MakeSolid();
0165
0166
0167 Standard_EXPORT const TopoDS_Shape& Shape() const;
0168
0169 Standard_EXPORT Standard_Real ErrorOnSurface() const;
0170
0171
0172 Standard_EXPORT const TopoDS_Shape& FirstShape() const;
0173
0174
0175 Standard_EXPORT const TopoDS_Shape& LastShape() const;
0176
0177
0178 void Profiles(TopTools_ListOfShape& theProfiles)
0179 {
0180 for (Standard_Integer i = 1; i <= mySeq.Length(); ++i)
0181 theProfiles.Append(mySeq(i).OriginalShape());
0182 }
0183
0184
0185 const TopoDS_Wire& Spine()
0186 {
0187 return mySpine;
0188 }
0189
0190
0191
0192 Standard_EXPORT void Generated (const TopoDS_Shape& S, TopTools_ListOfShape& L);
0193
0194
0195
0196
0197 DEFINE_STANDARD_RTTIEXT(BRepFill_PipeShell,Standard_Transient)
0198
0199 protected:
0200
0201
0202
0203
0204 private:
0205
0206
0207 Standard_EXPORT void Prepare();
0208
0209 Standard_EXPORT void Place (const BRepFill_Section& Sec, TopoDS_Wire& W, gp_Trsf& Trsf, Standard_Real& param);
0210
0211 Standard_EXPORT void ResetLoc();
0212
0213 Standard_EXPORT void BuildHistory (const BRepFill_Sweep& theSweep);
0214
0215 TopoDS_Wire mySpine;
0216 TopoDS_Shape myFirst;
0217 TopoDS_Shape myLast;
0218 TopoDS_Shape myShape;
0219 BRepFill_SequenceOfSection mySeq;
0220 TopTools_SequenceOfShape WSeq;
0221 TColStd_SequenceOfInteger myIndOfSec;
0222 TopTools_DataMapOfShapeListOfShape myEdgeNewEdges;
0223 TopTools_DataMapOfShapeListOfShape myGenMap;
0224 Standard_Real myTol3d;
0225 Standard_Real myBoundTol;
0226 Standard_Real myTolAngular;
0227 Standard_Real angmin;
0228 Standard_Real angmax;
0229 Standard_Integer myMaxDegree;
0230 Standard_Integer myMaxSegments;
0231 Standard_Boolean myForceApproxC1;
0232 Handle(Law_Function) myLaw;
0233 Standard_Boolean myIsAutomaticLaw;
0234 Handle(BRepFill_LocationLaw) myLocation;
0235 Handle(BRepFill_SectionLaw) mySection;
0236 Handle(TopTools_HArray2OfShape) myFaces;
0237 GeomFill_Trihedron myTrihedron;
0238 BRepFill_TransitionStyle myTransition;
0239 GeomFill_PipeError myStatus;
0240 Standard_Real myErrorOnSurf;
0241
0242
0243 };
0244
0245
0246
0247
0248
0249
0250
0251 #endif