Open CASCADE Technology 7.8.2.dev
BRepBuilderAPI_NurbsConvert Class Reference

Conversion of the complete geometry of a shape (all 3D analytical representation of surfaces and curves) into NURBS geometry (execpt for Planes). For example, all curves supporting edges of the basis shape are converted into BSpline curves, and all surfaces supporting its faces are converted into BSpline surfaces. More...

#include <BRepBuilderAPI_NurbsConvert.hxx>

Inheritance diagram for BRepBuilderAPI_NurbsConvert:

Public Member Functions

 BRepBuilderAPI_NurbsConvert ()
 Constructs a framework for converting the geometry of a shape into NURBS geometry. Use the function Perform to define the shape to convert.
 
 BRepBuilderAPI_NurbsConvert (const TopoDS_Shape &S, const Standard_Boolean Copy=Standard_False)
 Builds a new shape by converting the geometry of the shape S into NURBS geometry. Specifically, all curves supporting edges of S are converted into BSpline curves, and all surfaces supporting its faces are converted into BSpline surfaces. Use the function Shape to access the new shape. Note: the constructed framework can be reused to convert other shapes. You specify these with the function Perform.
 
void Perform (const TopoDS_Shape &S, const Standard_Boolean Copy=Standard_False)
 Builds a new shape by converting the geometry of the shape S into NURBS geometry. Specifically, all curves supporting edges of S are converted into BSpline curves, and all surfaces supporting its faces are converted into BSpline surfaces. Use the function Shape to access the new shape. Note: this framework can be reused to convert other shapes: you specify them by calling the function Perform again.
 
virtual const TopTools_ListOfShapeModified (const TopoDS_Shape &S)
 Returns the list of shapes modified from the shape .
 
virtual TopoDS_Shape ModifiedShape (const TopoDS_Shape &S) const
 Returns the modified shape corresponding to . S can correspond to the entire initial shape or to its subshape. Exceptions Standard_NoSuchObject if S is not the initial shape or a subshape of the initial shape to which the transformation has been applied.
 
- Public Member Functions inherited from BRepBuilderAPI_ModifyShape
- Public Member Functions inherited from BRepBuilderAPI_MakeShape
virtual void Build (const Message_ProgressRange &theRange=Message_ProgressRange())
 This is called by Shape(). It does nothing but may be redefined.
 
virtual const TopoDS_ShapeShape ()
 Returns a shape built by the shape construction algorithm. Raises exception StdFail_NotDone if the shape was not built.
 
 operator TopoDS_Shape ()
 
virtual const TopTools_ListOfShapeGenerated (const TopoDS_Shape &S)
 Returns the list of shapes generated from the shape .
 
virtual Standard_Boolean IsDeleted (const TopoDS_Shape &S)
 Returns true if the shape S has been deleted.
 
- Public Member Functions inherited from BRepBuilderAPI_Command
virtual ~BRepBuilderAPI_Command ()
 
virtual Standard_Boolean IsDone () const
 
void Check () const
 Raises NotDone if done is false.
 

Additional Inherited Members

- Protected Member Functions inherited from BRepBuilderAPI_ModifyShape
 BRepBuilderAPI_ModifyShape ()
 Empty constructor.
 
 BRepBuilderAPI_ModifyShape (const TopoDS_Shape &S)
 Initializes the modifier with the Shape , and set the field <myInitialShape> to .
 
 BRepBuilderAPI_ModifyShape (const Handle< BRepTools_Modification > &M)
 Set the field <myModification> with <M>.
 
 BRepBuilderAPI_ModifyShape (const TopoDS_Shape &S, const Handle< BRepTools_Modification > &M)
 Initializes the modifier with the Shape , and set the field <myInitialShape> to , and set the field <myModification> with <M>, the performs the modification.
 
void DoModif (const TopoDS_Shape &S)
 Performs the previously given modification on the shape .
 
void DoModif (const Handle< BRepTools_Modification > &M)
 Performs the modification <M> on a previously given shape.
 
void DoModif (const TopoDS_Shape &S, const Handle< BRepTools_Modification > &M)
 Performs the modification <M> on the shape .
 
- Protected Member Functions inherited from BRepBuilderAPI_MakeShape
 BRepBuilderAPI_MakeShape ()
 
- Protected Member Functions inherited from BRepBuilderAPI_Command
 BRepBuilderAPI_Command ()
 Set done to False.
 
void Done ()
 Set done to true.
 
void NotDone ()
 Set done to false.
 
- Protected Attributes inherited from BRepBuilderAPI_ModifyShape
BRepTools_Modifier myModifier
 
TopoDS_Shape myInitialShape
 
Handle< BRepTools_ModificationmyModification
 
- Protected Attributes inherited from BRepBuilderAPI_MakeShape
TopoDS_Shape myShape
 
TopTools_ListOfShape myGenerated
 

Detailed Description

Conversion of the complete geometry of a shape (all 3D analytical representation of surfaces and curves) into NURBS geometry (execpt for Planes). For example, all curves supporting edges of the basis shape are converted into BSpline curves, and all surfaces supporting its faces are converted into BSpline surfaces.

Constructor & Destructor Documentation

◆ BRepBuilderAPI_NurbsConvert() [1/2]

BRepBuilderAPI_NurbsConvert::BRepBuilderAPI_NurbsConvert ( )

Constructs a framework for converting the geometry of a shape into NURBS geometry. Use the function Perform to define the shape to convert.

◆ BRepBuilderAPI_NurbsConvert() [2/2]

BRepBuilderAPI_NurbsConvert::BRepBuilderAPI_NurbsConvert ( const TopoDS_Shape & S,
const Standard_Boolean Copy = Standard_False )

Builds a new shape by converting the geometry of the shape S into NURBS geometry. Specifically, all curves supporting edges of S are converted into BSpline curves, and all surfaces supporting its faces are converted into BSpline surfaces. Use the function Shape to access the new shape. Note: the constructed framework can be reused to convert other shapes. You specify these with the function Perform.

Member Function Documentation

◆ Modified()

virtual const TopTools_ListOfShape & BRepBuilderAPI_NurbsConvert::Modified ( const TopoDS_Shape & S)
virtual

Returns the list of shapes modified from the shape .

Reimplemented from BRepBuilderAPI_ModifyShape.

◆ ModifiedShape()

virtual TopoDS_Shape BRepBuilderAPI_NurbsConvert::ModifiedShape ( const TopoDS_Shape & S) const
virtual

Returns the modified shape corresponding to . S can correspond to the entire initial shape or to its subshape. Exceptions Standard_NoSuchObject if S is not the initial shape or a subshape of the initial shape to which the transformation has been applied.

Reimplemented from BRepBuilderAPI_ModifyShape.

◆ Perform()

void BRepBuilderAPI_NurbsConvert::Perform ( const TopoDS_Shape & S,
const Standard_Boolean Copy = Standard_False )

Builds a new shape by converting the geometry of the shape S into NURBS geometry. Specifically, all curves supporting edges of S are converted into BSpline curves, and all surfaces supporting its faces are converted into BSpline surfaces. Use the function Shape to access the new shape. Note: this framework can be reused to convert other shapes: you specify them by calling the function Perform again.


The documentation for this class was generated from the following file: