The BRepOffsetAPI_MakeOffsetFix class This class works around a limitation of the BRepOffsetAPI_MakeOffset which returns unexpected results when an input wire has set a placement and consists of a single edge only. More...
#include <BRepOffsetAPI_MakeOffsetFix.h>
Public Member Functions | |
void | AddWire (const TopoDS_Wire &Spine) |
Initializes the algorithm to construct parallels to the wire Spine. More... | |
BRepOffsetAPI_MakeOffsetFix () | |
BRepOffsetAPI_MakeOffsetFix (const GeomAbs_JoinType Join, const Standard_Boolean IsOpenResult) | |
void | Build () |
Builds the resulting shape (redefined from MakeShape). More... | |
virtual const TopTools_ListOfShape & | Generated (const TopoDS_Shape &S) |
returns a list of the created shapes from the shape | |
void | Init (const GeomAbs_JoinType Join=GeomAbs_Arc, const Standard_Boolean IsOpenResult=Standard_False) |
Initialize the evaluation of Offsetting. More... | |
void | Init (const TopoDS_Face &Spine, const GeomAbs_JoinType Join=GeomAbs_Arc, const Standard_Boolean IsOpenResult=Standard_False) |
Initializes the algorithm to construct parallels to the spine Spine. More... | |
virtual Standard_Boolean | IsDeleted (const TopoDS_Shape &S) |
Returns true if the shape S has been deleted. More... | |
virtual Standard_Boolean | IsDone () const |
virtual const TopTools_ListOfShape & | Modified (const TopoDS_Shape &S) |
Returns the list of shapes modified from the shape | |
void | Perform (const Standard_Real Offset, const Standard_Real Alt=0.0) |
Computes a parallel to the spine at distance Offset and at an altitude Alt from the plane of the spine in relation to the normal to the spine. More... | |
TopoDS_Shape | Replace (GeomAbs_CurveType, const TopoDS_Shape &S) const |
Replaces the given curve type with a B-Spline. More... | |
virtual const TopoDS_Shape & | Shape () |
Returns a shape built by the shape construction algorithm. More... | |
virtual | ~BRepOffsetAPI_MakeOffsetFix () |
The BRepOffsetAPI_MakeOffsetFix class This class works around a limitation of the BRepOffsetAPI_MakeOffset which returns unexpected results when an input wire has set a placement and consists of a single edge only.
BRepOffsetAPI_MakeOffsetFix::BRepOffsetAPI_MakeOffsetFix | ( | ) |
BRepOffsetAPI_MakeOffsetFix::BRepOffsetAPI_MakeOffsetFix | ( | const GeomAbs_JoinType | Join, |
const Standard_Boolean | IsOpenResult | ||
) |
|
virtual |
void BRepOffsetAPI_MakeOffsetFix::AddWire | ( | const TopoDS_Wire & | Spine | ) |
Initializes the algorithm to construct parallels to the wire Spine.
Referenced by Part::ExtrusionHelper::createTaperedPrismOffset(), and Part::TopoShape::makeOffset2D().
void BRepOffsetAPI_MakeOffsetFix::Build | ( | ) |
Builds the resulting shape (redefined from MakeShape).
|
virtual |
returns a list of the created shapes from the shape .
void BRepOffsetAPI_MakeOffsetFix::Init | ( | const GeomAbs_JoinType | Join = GeomAbs_Arc , |
const Standard_Boolean | IsOpenResult = Standard_False |
||
) |
Initialize the evaluation of Offsetting.
void BRepOffsetAPI_MakeOffsetFix::Init | ( | const TopoDS_Face & | Spine, |
const GeomAbs_JoinType | Join = GeomAbs_Arc , |
||
const Standard_Boolean | IsOpenResult = Standard_False |
||
) |
Initializes the algorithm to construct parallels to the spine Spine.
Join defines the type of parallel generated by the salient vertices of the spine. The default type is GeomAbs_Arc where the vertices generate sections of a circle. If join type is GeomAbs_Intersection, the edges that intersect in a salient vertex generate the edges prolonged until intersection.
Referenced by Part::ExtrusionHelper::createTaperedPrismOffset().
|
virtual |
Returns true if the shape S has been deleted.
|
virtual |
Referenced by Part::ExtrusionHelper::createTaperedPrismOffset().
|
virtual |
Returns the list of shapes modified from the shape .
void BRepOffsetAPI_MakeOffsetFix::Perform | ( | const Standard_Real | Offset, |
const Standard_Real | Alt = 0.0 |
||
) |
Computes a parallel to the spine at distance Offset and at an altitude Alt from the plane of the spine in relation to the normal to the spine.
Exceptions: StdFail_NotDone if the offset is not built.
Referenced by Part::ExtrusionHelper::createTaperedPrismOffset(), and Part::TopoShape::makeOffset2D().
TopoDS_Shape BRepOffsetAPI_MakeOffsetFix::Replace | ( | GeomAbs_CurveType | type, |
const TopoDS_Shape & | S | ||
) | const |
Replaces the given curve type with a B-Spline.
Input shape must be a wire or a compound of wires
Referenced by Part::TopoShape::makeOffset2D().
|
virtual |
Returns a shape built by the shape construction algorithm.
Raises exception StdFail_NotDone if the shape was not built.
Referenced by Part::ExtrusionHelper::createTaperedPrismOffset(), and Part::TopoShape::makeOffset2D().