Open CASCADE Technology 7.9.0
|
Shape Processing module allows to define and apply general Shape Processing as a customizable sequence of Shape Healing operators. The customization is implemented via user-editable resource file which defines sequence of operators to be executed and their parameters. More...
#include <ShapeProcess.hxx>
Public Types | |
enum | Operation : uint8_t { First = 0 , DirectFaces = First , SameParameter , SetTolerance , SplitAngle , BSplineRestriction , ElementaryToRevolution , SweptToElementary , SurfaceToBSpline , ToBezier , SplitContinuity , SplitClosedFaces , FixWireGaps , FixFaceSize , DropSmallSolids , DropSmallEdges , FixShape , SplitClosedEdges , SplitCommonVertex , Last = SplitCommonVertex } |
Describes all available operations. C++11 enum class is not used to allow implicit conversion to underlying type. More... | |
using | OperationsFlags = std::bitset<Operation::Last + 1> |
Static Public Member Functions | |
static Standard_Boolean | RegisterOperator (const Standard_CString name, const Handle< ShapeProcess_Operator > &op) |
Registers operator to make it visible for Performer. | |
static Standard_Boolean | FindOperator (const Standard_CString name, Handle< ShapeProcess_Operator > &op) |
Finds operator by its name. | |
static Standard_Boolean | Perform (const Handle< ShapeProcess_Context > &context, const Standard_CString seq, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
Performs a specified sequence of operators on Context Resource file and other data should be already loaded to Context (including description of sequence seq) | |
static Standard_Boolean | Perform (const Handle< ShapeProcess_Context > &theContext, const OperationsFlags &theOperations, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
Performs a specified sequence of operators on theContext . | |
static std::pair< Operation, bool > | ToOperationFlag (const char *theName) |
Converts operation name to operation flag. | |
Shape Processing module allows to define and apply general Shape Processing as a customizable sequence of Shape Healing operators. The customization is implemented via user-editable resource file which defines sequence of operators to be executed and their parameters.
using ShapeProcess::OperationsFlags = std::bitset<Operation::Last + 1> |
enum ShapeProcess::Operation : uint8_t |
Describes all available operations. C++11 enum class is not used to allow implicit conversion to underlying type.
|
static |
Finds operator by its name.
|
static |
Performs a specified sequence of operators on Context Resource file and other data should be already loaded to Context (including description of sequence seq)
|
static |
Performs a specified sequence of operators on theContext
.
theContext | Context to perform operations on. Contains the shape to process and processing parameters. If processing parameters are not set, default values are used. Parameters should be in a scope of operation, for example, instead of "FromSTEP.FixShape.Tolerance3d" we should use just "FixShape.Tolerance3d". |
theOperations | Bitset of operations to perform. |
theProgress | Progress indicator. |
|
static |
Registers operator to make it visible for Performer.
|
static |