mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-29 08:59:07 +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:
@@ -274,13 +274,24 @@ public:
|
||||
|
||||
Standard_EXPORT Standard_Real ErrorOnSurface() const;
|
||||
|
||||
//! 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)
|
||||
{
|
||||
myPipe->SetIsBuildHistory(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 myPipe->IsBuildHistory(); }
|
||||
|
||||
//! Returns the list of original profiles
|
||||
void Profiles(TopTools_ListOfShape& theProfiles) { myPipe->Profiles(theProfiles); }
|
||||
|
||||
//! Returns the spine
|
||||
const TopoDS_Wire& Spine() { return myPipe->Spine(); }
|
||||
|
||||
protected:
|
||||
private:
|
||||
Handle(BRepFill_PipeShell) myPipe;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user