FreeCAD C++
Public Member Functions | List of all members
Part::BRepOffsetAPI_MakeOffsetFix Class Reference

#include <Mod/Part/App/BRepOffsetAPI_MakeOffsetFix.h>

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.

Public Member Functions

void AddWire (const TopoDS_Wire &Spine)
 Initializes the algorithm to construct parallels to the wire Spine.
 
void Perform (const Standard_Real Offset, const Standard_Real Alt=0.0)
 
void Build ()
 Builds the resulting shape (redefined from MakeShape).
 
virtual const TopoDS_Shape & Shape ()
 
virtual const TopTools_ListOfShape & Generated (const TopoDS_Shape &S)
 
virtual const TopTools_ListOfShape & Modified (const TopoDS_Shape &S)
 
virtual Standard_Boolean IsDeleted (const TopoDS_Shape &S)
 Returns true if the shape S has been deleted.
 

Member Function Documentation

◆ Generated()

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

returns a list of the created shapes from the shape <S>.

◆ Modified()

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

Returns the list of shapes modified from the shape <S>.

◆ Perform()

void Part::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.

◆ Shape()

virtual const TopoDS_Shape& Part::BRepOffsetAPI_MakeOffsetFix::Shape ( )
virtual

Returns a shape built by the shape construction algorithm. Raises exception StdFail_NotDone if the shape was not built.