Open CASCADE Technology
7.4.0
|
This class represents simple offset algorithm itself. It builds simple offset without intersection. Solid can be created using SetBuildSolidFlag method (set flag to true). By default shell will be constructed. More...
#include <BRepOffset_MakeSimpleOffset.hxx>
Public Member Functions | |
BRepOffset_MakeSimpleOffset () | |
Constructor. Does nothing. More... | |
BRepOffset_MakeSimpleOffset (const TopoDS_Shape &theInputShape, const Standard_Real theOffsetValue) | |
Constructor. More... | |
void | Initialize (const TopoDS_Shape &theInputShape, const Standard_Real theOffsetValue) |
Initialies shape for modifications. More... | |
void | Perform () |
Computes offset shape. More... | |
TCollection_AsciiString | GetErrorMessage () const |
Gets error message. More... | |
BRepOffsetSimple_Status | GetError () const |
Gets error code. More... | |
Standard_Boolean | GetBuildSolidFlag () const |
Gets solid building flag. More... | |
void | SetBuildSolidFlag (const Standard_Boolean theBuildFlag) |
Sets solid building flag. More... | |
Standard_Real | GetOffsetValue () const |
Gets offset value. More... | |
void | SetOffsetValue (const Standard_Real theOffsetValue) |
Sets offset value. More... | |
Standard_Real | GetTolerance () const |
Gets tolerance (used for handling singularities). More... | |
void | SetTolerance (const Standard_Real theValue) |
Sets tolerance (used for handling singularities). More... | |
Standard_Boolean | IsDone () const |
Gets done state. More... | |
const TopoDS_Shape & | GetResultShape () const |
Returns result shape. More... | |
Standard_Real | GetSafeOffset (const Standard_Real theExpectedToler) |
Computes max safe offset value for the given tolerance. More... | |
const TopoDS_Shape | Generated (const TopoDS_Shape &theShape) const |
Returnes result shape for the given one (if exists). More... | |
const TopoDS_Shape | Modified (const TopoDS_Shape &theShape) const |
Returnes modified shape for the given one (if exists). More... | |
Protected Member Functions | |
void | ComputeMaxAngle () |
Computes max angle in faces junction. More... | |
void | Clear () |
Clears previous result. More... | |
This class represents simple offset algorithm itself. It builds simple offset without intersection. Solid can be created using SetBuildSolidFlag method (set flag to true). By default shell will be constructed.
Algorithm:
The possible drawback of the simple algorithm is that it leads, in general case, to tolerance increasing. The tolerances have to grow in order to cover the gaps between the neighbor faces in the output. It should be noted that the actual tolerance growth depends on the offset distance and the quality of joints between the input faces. Anyway the good input shell (smooth connections between adjacent faces) will lead to good result.
BRepOffset_MakeSimpleOffset::BRepOffset_MakeSimpleOffset | ( | ) |
Constructor. Does nothing.
BRepOffset_MakeSimpleOffset::BRepOffset_MakeSimpleOffset | ( | const TopoDS_Shape & | theInputShape, |
const Standard_Real | theOffsetValue | ||
) |
Constructor.
|
protected |
Clears previous result.
|
protected |
Computes max angle in faces junction.
const TopoDS_Shape BRepOffset_MakeSimpleOffset::Generated | ( | const TopoDS_Shape & | theShape | ) | const |
Returnes result shape for the given one (if exists).
|
inline |
Gets solid building flag.
|
inline |
Gets error code.
TCollection_AsciiString BRepOffset_MakeSimpleOffset::GetErrorMessage | ( | ) | const |
Gets error message.
|
inline |
Gets offset value.
|
inline |
Returns result shape.
Standard_Real BRepOffset_MakeSimpleOffset::GetSafeOffset | ( | const Standard_Real | theExpectedToler | ) |
Computes max safe offset value for the given tolerance.
|
inline |
Gets tolerance (used for handling singularities).
void BRepOffset_MakeSimpleOffset::Initialize | ( | const TopoDS_Shape & | theInputShape, |
const Standard_Real | theOffsetValue | ||
) |
Initialies shape for modifications.
|
inline |
Gets done state.
const TopoDS_Shape BRepOffset_MakeSimpleOffset::Modified | ( | const TopoDS_Shape & | theShape | ) | const |
Returnes modified shape for the given one (if exists).
void BRepOffset_MakeSimpleOffset::Perform | ( | ) |
Computes offset shape.
|
inline |
Sets solid building flag.
|
inline |
Sets offset value.
|
inline |
Sets tolerance (used for handling singularities).