Part::BRepOffsetAPI_MakeOffsetFix Class Reference

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 . More...
 
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 . More...
 
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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BRepOffsetAPI_MakeOffsetFix() [1/2]

BRepOffsetAPI_MakeOffsetFix::BRepOffsetAPI_MakeOffsetFix ( )

◆ BRepOffsetAPI_MakeOffsetFix() [2/2]

BRepOffsetAPI_MakeOffsetFix::BRepOffsetAPI_MakeOffsetFix ( const GeomAbs_JoinType  Join,
const Standard_Boolean  IsOpenResult 
)

◆ ~BRepOffsetAPI_MakeOffsetFix()

BRepOffsetAPI_MakeOffsetFix::~BRepOffsetAPI_MakeOffsetFix ( )
virtual

Member Function Documentation

◆ AddWire()

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().

◆ Build()

void BRepOffsetAPI_MakeOffsetFix::Build ( )

Builds the resulting shape (redefined from MakeShape).

◆ Generated()

const TopTools_ListOfShape & BRepOffsetAPI_MakeOffsetFix::Generated ( const TopoDS_Shape &  S)
virtual

returns a list of the created shapes from the shape .

◆ Init() [1/2]

void BRepOffsetAPI_MakeOffsetFix::Init ( const GeomAbs_JoinType  Join = GeomAbs_Arc,
const Standard_Boolean  IsOpenResult = Standard_False 
)

Initialize the evaluation of Offsetting.

◆ Init() [2/2]

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().

◆ IsDeleted()

Standard_Boolean BRepOffsetAPI_MakeOffsetFix::IsDeleted ( const TopoDS_Shape &  S)
virtual

Returns true if the shape S has been deleted.

◆ IsDone()

Standard_Boolean BRepOffsetAPI_MakeOffsetFix::IsDone ( ) const
virtual

◆ Modified()

const TopTools_ListOfShape & BRepOffsetAPI_MakeOffsetFix::Modified ( const TopoDS_Shape &  S)
virtual

Returns the list of shapes modified from the shape .

◆ Perform()

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().

◆ Replace()

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().

◆ Shape()

const TopoDS_Shape & BRepOffsetAPI_MakeOffsetFix::Shape ( )
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().


The documentation for this class was generated from the following files: