Open CASCADE Technology
6.9.1
|
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. More... | |
ShapeUpgrade_ShapeConvertToBezier (const TopoDS_Shape &S) | |
Initialize by a Shape. More... | |
void | Set2dConversion (const Standard_Boolean mode) |
Sets mode for conversion 2D curves to bezier. More... | |
Standard_Boolean | Get2dConversion () const |
Returns the 2D conversion mode. More... | |
void | Set3dConversion (const Standard_Boolean mode) |
Sets mode for conversion 3d curves to bezier. More... | |
Standard_Boolean | Get3dConversion () const |
Returns the 3D conversion mode. More... | |
void | SetSurfaceConversion (const Standard_Boolean mode) |
Sets mode for conversion surfaces curves to bezier basis. More... | |
Standard_Boolean | GetSurfaceConversion () const |
Returns the surface conversion mode. More... | |
void | Set3dLineConversion (const Standard_Boolean mode) |
Sets mode for conversion Geom_Line to bezier. More... | |
Standard_Boolean | Get3dLineConversion () const |
Returns the Geom_Line conversion mode. More... | |
void | Set3dCircleConversion (const Standard_Boolean mode) |
Sets mode for conversion Geom_Circle to bezier. More... | |
Standard_Boolean | Get3dCircleConversion () const |
Returns the Geom_Circle conversion mode. More... | |
void | Set3dConicConversion (const Standard_Boolean mode) |
Sets mode for conversion Geom_Conic to bezier. More... | |
Standard_Boolean | Get3dConicConversion () const |
Returns the Geom_Conic conversion mode. More... | |
void | SetPlaneMode (const Standard_Boolean mode) |
Sets mode for conversion Geom_Plane to Bezier. More... | |
Standard_Boolean | GetPlaneMode () const |
Returns the Geom_Pline conversion mode. More... | |
void | SetRevolutionMode (const Standard_Boolean mode) |
Sets mode for conversion Geom_SurfaceOfRevolution to Bezier. More... | |
Standard_Boolean | GetRevolutionMode () const |
Returns the Geom_SurfaceOfRevolution conversion mode. More... | |
void | SetExtrusionMode (const Standard_Boolean mode) |
Sets mode for conversion Geom_SurfaceOfLinearExtrusion to Bezier. More... | |
Standard_Boolean | GetExtrusionMode () const |
Returns the Geom_SurfaceOfLinearExtrusion conversion mode. More... | |
void | SetBSplineMode (const Standard_Boolean mode) |
Sets mode for conversion Geom_BSplineSurface to Bezier. More... | |
Standard_Boolean | GetBSplineMode () const |
Returns the Geom_BSplineSurface conversion mode. More... | |
virtual Standard_Boolean | Perform (const Standard_Boolean newContext=Standard_True) |
Performs converting and computes the resulting shape. More... | |
Public Member Functions inherited from ShapeUpgrade_ShapeDivide | |
ShapeUpgrade_ShapeDivide () | |
ShapeUpgrade_ShapeDivide (const TopoDS_Shape &S) | |
Initialize by a Shape. More... | |
void | Init (const TopoDS_Shape &S) |
Initialize by a Shape. More... | |
virtual void | Delete () |
virtual | ~ShapeUpgrade_ShapeDivide () |
void | SetPrecision (const Standard_Real Prec) |
Defines the spatial precision used for splitting. More... | |
void | SetMaxTolerance (const Standard_Real maxtol) |
Sets maximal allowed tolerance. More... | |
void | SetMinTolerance (const Standard_Real mintol) |
Sets minimal allowed tolerance. More... | |
void | SetSurfaceSegmentMode (const Standard_Boolean Segment) |
Purpose sets mode for trimming (segment) surface by wire UV bounds. More... | |
TopoDS_Shape | Result () const |
Gives the resulting Shape, or Null shape if not done. More... | |
Handle< ShapeBuild_ReShape > | GetContext () const |
Returns context with all the modifications made during last call(s) to Perform() recorded. More... | |
void | SetContext (const Handle< ShapeBuild_ReShape > &context) |
Sets context with recorded modifications to be applied during next call(s) to Perform(shape,Standard_False) More... | |
virtual void | SetMsgRegistrator (const Handle< ShapeExtend_BasicMsgRegistrator > &msgreg) |
Sets message registrator. More... | |
Handle< ShapeExtend_BasicMsgRegistrator > | MsgRegistrator () const |
Returns message registrator. More... | |
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. More... | |
Standard_Boolean | 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 splitted DONE2: surface was splitted FAIL1: some errors occured. More... | |
void | SetSplitFaceTool (const Handle< ShapeUpgrade_FaceDivide > &splitFaceTool) |
Sets the tool for splitting faces. More... | |
void | SetEdgeMode (const Standard_Integer 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. More... | |
Protected Member Functions | |
virtual Handle< ShapeUpgrade_FaceDivide > | GetSplitFaceTool () const |
Returns the tool for dividing faces. More... | |
virtual Message_Msg | GetFaceMsg () const |
virtual Message_Msg | GetWireMsg () const |
virtual Message_Msg | GetEdgeMsg () const |
Returns a message decsribing modification of a shape. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ShapeUpgrade_ShapeDivide | |
Handle< ShapeBuild_ReShape > | myContext |
Handle< ShapeExtend_BasicMsgRegistrator > | myMsgReg |
TopoDS_Shape | myShape |
TopoDS_Shape | myResult |
Standard_Real | myPrecision |
Standard_Real | myMinTol |
Standard_Real | myMaxTol |
Standard_Boolean | mySegmentMode |
Standard_Integer | myStatus |
Standard_Integer | 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.
Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get2dConversion | ( | ) | const |
Returns the 2D conversion mode.
Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dCircleConversion | ( | ) | const |
Returns the Geom_Circle conversion mode.
Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dConicConversion | ( | ) | const |
Returns the Geom_Conic conversion mode.
Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dConversion | ( | ) | const |
Returns the 3D conversion mode.
Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dLineConversion | ( | ) | const |
Returns the Geom_Line conversion mode.
Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetBSplineMode | ( | ) | const |
Returns the Geom_BSplineSurface conversion mode.
|
protectedvirtual |
Returns a message decsribing modification of a shape.
Reimplemented from ShapeUpgrade_ShapeDivide.
Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetExtrusionMode | ( | ) | const |
Returns the Geom_SurfaceOfLinearExtrusion conversion mode.
|
protectedvirtual |
Reimplemented from ShapeUpgrade_ShapeDivide.
Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetPlaneMode | ( | ) | const |
Returns the Geom_Pline conversion mode.
Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetRevolutionMode | ( | ) | const |
Returns the Geom_SurfaceOfRevolution conversion mode.
|
protectedvirtual |
Returns the tool for dividing faces.
Reimplemented from ShapeUpgrade_ShapeDivide.
Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetSurfaceConversion | ( | ) | const |
Returns the surface conversion mode.
|
protectedvirtual |
Reimplemented from ShapeUpgrade_ShapeDivide.
|
virtual |
Performs converting and computes the resulting shape.
Reimplemented from ShapeUpgrade_ShapeDivide.
void ShapeUpgrade_ShapeConvertToBezier::Set2dConversion | ( | const Standard_Boolean | mode | ) |
Sets mode for conversion 2D curves to bezier.
void ShapeUpgrade_ShapeConvertToBezier::Set3dCircleConversion | ( | const Standard_Boolean | mode | ) |
Sets mode for conversion Geom_Circle to bezier.
void ShapeUpgrade_ShapeConvertToBezier::Set3dConicConversion | ( | const Standard_Boolean | mode | ) |
Sets mode for conversion Geom_Conic to bezier.
void ShapeUpgrade_ShapeConvertToBezier::Set3dConversion | ( | const Standard_Boolean | mode | ) |
Sets mode for conversion 3d curves to bezier.
void ShapeUpgrade_ShapeConvertToBezier::Set3dLineConversion | ( | const Standard_Boolean | mode | ) |
Sets mode for conversion Geom_Line to bezier.
void ShapeUpgrade_ShapeConvertToBezier::SetBSplineMode | ( | const Standard_Boolean | mode | ) |
Sets mode for conversion Geom_BSplineSurface to Bezier.
void ShapeUpgrade_ShapeConvertToBezier::SetExtrusionMode | ( | const Standard_Boolean | mode | ) |
Sets mode for conversion Geom_SurfaceOfLinearExtrusion to Bezier.
void ShapeUpgrade_ShapeConvertToBezier::SetPlaneMode | ( | const Standard_Boolean | mode | ) |
Sets mode for conversion Geom_Plane to Bezier.
void ShapeUpgrade_ShapeConvertToBezier::SetRevolutionMode | ( | const Standard_Boolean | mode | ) |
Sets mode for conversion Geom_SurfaceOfRevolution to Bezier.
void ShapeUpgrade_ShapeConvertToBezier::SetSurfaceConversion | ( | const Standard_Boolean | mode | ) |
Sets mode for conversion surfaces curves to bezier basis.