Open CASCADE Technology 7.8.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>
Protected Member Functions | |
void | ComputeMaxAngle () |
Computes max angle in faces junction. | |
void | Clear () |
Clears previous result. | |
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 |
Returns 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 |
Returns 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).