![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
API class for performing conversion of 3D, 2D curves to bezier curves and surfaces to bezier based surfaces ( bezier surface, surface of revolution based on bezier curve, offset surface based on any previous type). More...
#include <ShapeUpgrade_ShapeConvertToBezier.hxx>

Public Member Functions | |
| ShapeUpgrade_ShapeConvertToBezier () | |
| Empty constructor. | |
| ShapeUpgrade_ShapeConvertToBezier (const TopoDS_Shape &S) | |
| Initialize by a Shape. | |
| void | Set2dConversion (const bool mode) |
| Sets mode for conversion 2D curves to bezier. | |
| bool | Get2dConversion () const |
| Returns the 2D conversion mode. | |
| void | Set3dConversion (const bool mode) |
| Sets mode for conversion 3d curves to bezier. | |
| bool | Get3dConversion () const |
| Returns the 3D conversion mode. | |
| void | SetSurfaceConversion (const bool mode) |
| Sets mode for conversion surfaces curves to bezier basis. | |
| bool | GetSurfaceConversion () const |
| Returns the surface conversion mode. | |
| void | Set3dLineConversion (const bool mode) |
| Sets mode for conversion Geom_Line to bezier. | |
| bool | Get3dLineConversion () const |
| Returns the Geom_Line conversion mode. | |
| void | Set3dCircleConversion (const bool mode) |
| Sets mode for conversion Geom_Circle to bezier. | |
| bool | Get3dCircleConversion () const |
| Returns the Geom_Circle conversion mode. | |
| void | Set3dConicConversion (const bool mode) |
| Sets mode for conversion Geom_Conic to bezier. | |
| bool | Get3dConicConversion () const |
| Returns the Geom_Conic conversion mode. | |
| void | SetPlaneMode (const bool mode) |
| Sets mode for conversion Geom_Plane to Bezier. | |
| bool | GetPlaneMode () const |
| Returns the Geom_Pline conversion mode. | |
| void | SetRevolutionMode (const bool mode) |
| Sets mode for conversion Geom_SurfaceOfRevolution to Bezier. | |
| bool | GetRevolutionMode () const |
| Returns the Geom_SurfaceOfRevolution conversion mode. | |
| void | SetExtrusionMode (const bool mode) |
| Sets mode for conversion Geom_SurfaceOfLinearExtrusion to Bezier. | |
| bool | GetExtrusionMode () const |
| Returns the Geom_SurfaceOfLinearExtrusion conversion mode. | |
| void | SetBSplineMode (const bool mode) |
| Sets mode for conversion Geom_BSplineSurface to Bezier. | |
| bool | GetBSplineMode () const |
| Returns the Geom_BSplineSurface conversion mode. | |
| bool | Perform (const bool newContext=true) override |
| Performs converting and computes the resulting shape. | |
Public Member Functions inherited from ShapeUpgrade_ShapeDivide | |
| ShapeUpgrade_ShapeDivide () | |
| ShapeUpgrade_ShapeDivide (const TopoDS_Shape &S) | |
| Initialize by a Shape. | |
| void | Init (const TopoDS_Shape &S) |
| Initialize by a Shape. | |
| virtual | ~ShapeUpgrade_ShapeDivide () |
| void | SetPrecision (const double Prec) |
| Defines the spatial precision used for splitting. | |
| void | SetMaxTolerance (const double maxtol) |
| Sets maximal allowed tolerance. | |
| void | SetMinTolerance (const double mintol) |
| Sets minimal allowed tolerance. | |
| void | SetSurfaceSegmentMode (const bool Segment) |
| Purpose sets mode for trimming (segment) surface by wire UV bounds. | |
| TopoDS_Shape | Result () const |
| Gives the resulting Shape, or Null shape if not done. | |
| occ::handle< ShapeBuild_ReShape > | GetContext () const |
| Returns context with all the modifications made during last call(s) to Perform() recorded. | |
| void | SetContext (const occ::handle< ShapeBuild_ReShape > &context) |
| Sets context with recorded modifications to be applied during next call(s) to Perform(shape,false) | |
| virtual void | SetMsgRegistrator (const occ::handle< ShapeExtend_BasicMsgRegistrator > &msgreg) |
| Sets message registrator. | |
| occ::handle< ShapeExtend_BasicMsgRegistrator > | MsgRegistrator () const |
| Returns message registrator. | |
| void | SendMsg (const TopoDS_Shape &shape, const Message_Msg &message, const Message_Gravity gravity=Message_Info) const |
| Sends a message to be attached to the shape. Calls corresponding message of message registrator. | |
| bool | Status (const ShapeExtend_Status status) const |
| Queries the status of last call to Perform OK : no splitting was done (or no call to Perform) DONE1: some edges were split DONE2: surface was split FAIL1: some errors occurred. | |
| void | SetSplitFaceTool (const occ::handle< ShapeUpgrade_FaceDivide > &splitFaceTool) |
| Sets the tool for splitting faces. | |
| void | SetEdgeMode (const int aEdgeMode) |
| Sets mode for splitting 3d curves from edges. 0 - only curve 3d from free edges. 1 - only curve 3d from shared edges. 2 - all curve 3d. | |
Protected Member Functions | |
| occ::handle< ShapeUpgrade_FaceDivide > | GetSplitFaceTool () const override |
| Returns the tool for dividing faces. | |
| Message_Msg | GetFaceMsg () const override |
| Message_Msg | GetWireMsg () const override |
| Message_Msg | GetEdgeMsg () const override |
| Returns a message describing modification of a shape. | |
Additional Inherited Members | |
Protected Attributes inherited from ShapeUpgrade_ShapeDivide | |
| occ::handle< ShapeBuild_ReShape > | myContext |
| occ::handle< ShapeExtend_BasicMsgRegistrator > | myMsgReg |
| TopoDS_Shape | myShape |
| TopoDS_Shape | myResult |
| double | myPrecision |
| double | myMinTol |
| double | myMaxTol |
| bool | mySegmentMode |
| int | myStatus |
| int | myEdgeMode |
API class for performing conversion of 3D, 2D curves to bezier curves and surfaces to bezier based surfaces ( bezier surface, surface of revolution based on bezier curve, offset surface based on any previous type).
| ShapeUpgrade_ShapeConvertToBezier::ShapeUpgrade_ShapeConvertToBezier | ( | ) |
Empty constructor.
| ShapeUpgrade_ShapeConvertToBezier::ShapeUpgrade_ShapeConvertToBezier | ( | const TopoDS_Shape & | S | ) |
Initialize by a Shape.
| bool ShapeUpgrade_ShapeConvertToBezier::Get2dConversion | ( | ) | const |
Returns the 2D conversion mode.
| bool ShapeUpgrade_ShapeConvertToBezier::Get3dCircleConversion | ( | ) | const |
Returns the Geom_Circle conversion mode.
| bool ShapeUpgrade_ShapeConvertToBezier::Get3dConicConversion | ( | ) | const |
Returns the Geom_Conic conversion mode.
| bool ShapeUpgrade_ShapeConvertToBezier::Get3dConversion | ( | ) | const |
Returns the 3D conversion mode.
| bool ShapeUpgrade_ShapeConvertToBezier::Get3dLineConversion | ( | ) | const |
Returns the Geom_Line conversion mode.
| bool ShapeUpgrade_ShapeConvertToBezier::GetBSplineMode | ( | ) | const |
Returns the Geom_BSplineSurface conversion mode.
|
overrideprotectedvirtual |
Returns a message describing modification of a shape.
Reimplemented from ShapeUpgrade_ShapeDivide.
| bool ShapeUpgrade_ShapeConvertToBezier::GetExtrusionMode | ( | ) | const |
Returns the Geom_SurfaceOfLinearExtrusion conversion mode.
|
overrideprotectedvirtual |
Reimplemented from ShapeUpgrade_ShapeDivide.
| bool ShapeUpgrade_ShapeConvertToBezier::GetPlaneMode | ( | ) | const |
Returns the Geom_Pline conversion mode.
| bool ShapeUpgrade_ShapeConvertToBezier::GetRevolutionMode | ( | ) | const |
Returns the Geom_SurfaceOfRevolution conversion mode.
|
overrideprotectedvirtual |
Returns the tool for dividing faces.
Reimplemented from ShapeUpgrade_ShapeDivide.
| bool ShapeUpgrade_ShapeConvertToBezier::GetSurfaceConversion | ( | ) | const |
Returns the surface conversion mode.
|
overrideprotectedvirtual |
Reimplemented from ShapeUpgrade_ShapeDivide.
Performs converting and computes the resulting shape.
Reimplemented from ShapeUpgrade_ShapeDivide.
Sets mode for conversion 2D curves to bezier.
Sets mode for conversion Geom_Circle to bezier.
Sets mode for conversion Geom_Conic to bezier.
Sets mode for conversion 3d curves to bezier.
Sets mode for conversion Geom_Line to bezier.
Sets mode for conversion Geom_BSplineSurface to Bezier.
Sets mode for conversion Geom_SurfaceOfLinearExtrusion to Bezier.
Sets mode for conversion Geom_Plane to Bezier.
Sets mode for conversion Geom_SurfaceOfRevolution to Bezier.
Sets mode for conversion surfaces curves to bezier basis.