mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-15 23:24:04 +08:00
Modelling - Add option to not build history in BRepFill_PipeShell (#632)
- Adds `myIsBuildHistory` boolean member to `BRepFill_PipeShell` with default value `true` - Implements getter/setter methods in both `BRepFill_PipeShell` and `BRepOffsetAPI_MakePipeShell` interfaces - Conditionally calls `BuildHistory()` method based on the flag value
This commit is contained in:
@@ -122,6 +122,18 @@ public:
|
||||
//! spine
|
||||
Standard_EXPORT void SetForceApproxC1(const Standard_Boolean ForceApproxC1);
|
||||
|
||||
//! Sets the build history flag.
|
||||
//! If set to True, the pipe shell will store the history of the sections
|
||||
//! and the spine, which can be used for further modifications or analysis.
|
||||
inline void SetIsBuildHistory(const Standard_Boolean theIsBuildHistory)
|
||||
{
|
||||
myIsBuildHistory = theIsBuildHistory;
|
||||
}
|
||||
|
||||
//! Returns the build history flag.
|
||||
//! If True, the pipe shell stores the history of the sections and the spine.
|
||||
inline bool IsBuildHistory() const { return myIsBuildHistory; }
|
||||
|
||||
//! Set an section. The correspondence with the spine, will be automatically performed.
|
||||
Standard_EXPORT void Add(const TopoDS_Shape& Profile,
|
||||
const Standard_Boolean WithContact = Standard_False,
|
||||
@@ -246,6 +258,7 @@ private:
|
||||
BRepFill_TransitionStyle myTransition;
|
||||
GeomFill_PipeError myStatus;
|
||||
Standard_Real myErrorOnSurf;
|
||||
Standard_Boolean myIsBuildHistory;
|
||||
};
|
||||
|
||||
#endif // _BRepFill_PipeShell_HeaderFile
|
||||
|
||||
Reference in New Issue
Block a user