Open CASCADE Technology 7.8.2.dev
|
Class to make revolved sweep topologies. More...
#include <BRepPrimAPI_MakeRevol.hxx>
Public Member Functions | |
BRepPrimAPI_MakeRevol (const TopoDS_Shape &S, const gp_Ax1 &A, const Standard_Real D, const Standard_Boolean Copy=Standard_False) | |
Builds the Revol of base S, axis A and angle D. If C is true, S is copied. | |
BRepPrimAPI_MakeRevol (const TopoDS_Shape &S, const gp_Ax1 &A, const Standard_Boolean Copy=Standard_False) | |
Builds the Revol of base S, axis A and angle 2*Pi. If C is true, S is copied. | |
const BRepSweep_Revol & | Revol () const |
Returns the internal sweeping algorithm. | |
virtual void | Build (const Message_ProgressRange &theRange=Message_ProgressRange()) override |
Builds the resulting shape (redefined from MakeShape). | |
TopoDS_Shape | FirstShape () override |
Returns the first shape of the revol (coinciding with the generating shape). | |
TopoDS_Shape | LastShape () override |
Returns the TopoDS Shape of the end of the revol. | |
virtual const TopTools_ListOfShape & | Generated (const TopoDS_Shape &S) override |
Returns list of shape generated from shape S Warning: shape S must be shape of type VERTEX, EDGE, FACE, SOLID. For shapes of other types method always returns empty list. | |
virtual Standard_Boolean | IsDeleted (const TopoDS_Shape &S) override |
Returns true if the shape S has been deleted. | |
TopoDS_Shape | FirstShape (const TopoDS_Shape &theShape) |
Returns the TopoDS Shape of the beginning of the revolution, generated with theShape (subShape of the generating shape). | |
TopoDS_Shape | LastShape (const TopoDS_Shape &theShape) |
Returns the TopoDS Shape of the end of the revolution, generated with theShape (subShape of the generating shape). | |
Standard_Boolean | HasDegenerated () const |
Check if there are degenerated edges in the result. | |
const TopTools_ListOfShape & | Degenerated () const |
Returns the list of degenerated edges. | |
Public Member Functions inherited from BRepPrimAPI_MakeSweep | |
Public Member Functions inherited from BRepBuilderAPI_MakeShape | |
virtual const TopoDS_Shape & | Shape () |
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_ListOfShape & | Modified (const TopoDS_Shape &S) |
Returns the list of shapes modified from the shape | |
Public Member Functions inherited from BRepBuilderAPI_Command | |
virtual | ~BRepBuilderAPI_Command () |
virtual Standard_Boolean | IsDone () const |
void | Check () const |
Raises NotDone if done is false. | |
Protected Member Functions | |
Standard_Boolean | CheckValidity (const TopoDS_Shape &theShape, const gp_Ax1 &theA) |
Checks possibilities of producing self-intersection surface returns true if all surfaces are valid. | |
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. | |
Additional Inherited Members | |
Protected Attributes inherited from BRepBuilderAPI_MakeShape | |
TopoDS_Shape | myShape |
TopTools_ListOfShape | myGenerated |
Class to make revolved sweep topologies.
a revolved sweep is defined by :
The basis topology must not contain solids (neither composite solids.).
The basis topology may be copied or shared in the result.
The result is a topology with a higher dimension :
Sweeping a Compound sweeps the elements of the compound and creates a compound with the results.
BRepPrimAPI_MakeRevol::BRepPrimAPI_MakeRevol | ( | const TopoDS_Shape & | S, |
const gp_Ax1 & | A, | ||
const Standard_Real | D, | ||
const Standard_Boolean | Copy = Standard_False ) |
Builds the Revol of base S, axis A and angle D. If C is true, S is copied.
BRepPrimAPI_MakeRevol::BRepPrimAPI_MakeRevol | ( | const TopoDS_Shape & | S, |
const gp_Ax1 & | A, | ||
const Standard_Boolean | Copy = Standard_False ) |
Builds the Revol of base S, axis A and angle 2*Pi. If C is true, S is copied.
|
overridevirtual |
Builds the resulting shape (redefined from MakeShape).
Reimplemented from BRepBuilderAPI_MakeShape.
|
protected |
Checks possibilities of producing self-intersection surface returns true if all surfaces are valid.
const TopTools_ListOfShape & BRepPrimAPI_MakeRevol::Degenerated | ( | ) | const |
Returns the list of degenerated edges.
|
overridevirtual |
Returns the first shape of the revol (coinciding with the generating shape).
Implements BRepPrimAPI_MakeSweep.
TopoDS_Shape BRepPrimAPI_MakeRevol::FirstShape | ( | const TopoDS_Shape & | theShape | ) |
Returns the TopoDS Shape of the beginning of the revolution, generated with theShape (subShape of the generating shape).
|
overridevirtual |
Returns list of shape generated from shape S Warning: shape S must be shape of type VERTEX, EDGE, FACE, SOLID. For shapes of other types method always returns empty list.
Reimplemented from BRepBuilderAPI_MakeShape.
Standard_Boolean BRepPrimAPI_MakeRevol::HasDegenerated | ( | ) | const |
Check if there are degenerated edges in the result.
|
overridevirtual |
Returns true if the shape S has been deleted.
Reimplemented from BRepBuilderAPI_MakeShape.
|
overridevirtual |
Returns the TopoDS Shape of the end of the revol.
Implements BRepPrimAPI_MakeSweep.
TopoDS_Shape BRepPrimAPI_MakeRevol::LastShape | ( | const TopoDS_Shape & | theShape | ) |
Returns the TopoDS Shape of the end of the revolution, generated with theShape (subShape of the generating shape).
const BRepSweep_Revol & BRepPrimAPI_MakeRevol::Revol | ( | ) | const |
Returns the internal sweeping algorithm.