Open CASCADE Technology  7.6.0
Public Member Functions | Protected Member Functions

BRepPrimAPI_MakeRevol Class Reference

Class to make revolved sweep topologies. More...

#include <BRepPrimAPI_MakeRevol.hxx>

Inheritance diagram for BRepPrimAPI_MakeRevol:
Inheritance graph
[legend]

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. More...
 
 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. More...
 
const BRepSweep_RevolRevol () const
 Returns the internal sweeping algorithm. More...
 
virtual void Build (const Message_ProgressRange &theRange=Message_ProgressRange()) override
 Builds the resulting shape (redefined from MakeShape). More...
 
TopoDS_Shape FirstShape () override
 Returns the first shape of the revol (coinciding with the generating shape). More...
 
TopoDS_Shape LastShape () override
 Returns the TopoDS Shape of the end of the revol. More...
 
virtual const TopTools_ListOfShapeGenerated (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. More...
 
virtual Standard_Boolean IsDeleted (const TopoDS_Shape &S) override
 Returns true if the shape S has been deleted. More...
 
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). More...
 
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). More...
 
Standard_Boolean HasDegenerated () const
 Check if there are degenerated edges in the result. More...
 
const TopTools_ListOfShapeDegenerated () const
 Returns the list of degenerated edges. More...
 
- Public Member Functions inherited from BRepBuilderAPI_MakeShape
virtual const TopoDS_ShapeShape ()
 Returns a shape built by the shape construction algorithm. Raises exception StdFail_NotDone if the shape was not built. More...
 
 operator TopoDS_Shape ()
 
virtual const TopTools_ListOfShapeModified (const TopoDS_Shape &S)
 Returns the list of shapes modified from the shape . More...
 
- Public Member Functions inherited from BRepBuilderAPI_Command
virtual ~BRepBuilderAPI_Command ()
 
virtual Standard_Boolean IsDone () const
 
void Check () const
 Raises NotDone if done is false. More...
 

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. More...
 
- Protected Member Functions inherited from BRepBuilderAPI_MakeShape
 BRepBuilderAPI_MakeShape ()
 
- Protected Member Functions inherited from BRepBuilderAPI_Command
 BRepBuilderAPI_Command ()
 Set done to False. More...
 
void Done ()
 Set done to true. More...
 
void NotDone ()
 Set done to false. More...
 

Additional Inherited Members

- Protected Attributes inherited from BRepBuilderAPI_MakeShape
TopoDS_Shape myShape
 
TopTools_ListOfShape myGenerated
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BRepPrimAPI_MakeRevol() [1/2]

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() [2/2]

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.

Member Function Documentation

◆ Build()

virtual void BRepPrimAPI_MakeRevol::Build ( const Message_ProgressRange theRange = Message_ProgressRange())
overridevirtual

Builds the resulting shape (redefined from MakeShape).

Reimplemented from BRepBuilderAPI_MakeShape.

◆ CheckValidity()

Standard_Boolean BRepPrimAPI_MakeRevol::CheckValidity ( const TopoDS_Shape theShape,
const gp_Ax1 theA 
)
protected

Checks possibilities of producing self-intersection surface returns true if all surfaces are valid.

◆ Degenerated()

const TopTools_ListOfShape& BRepPrimAPI_MakeRevol::Degenerated ( ) const

Returns the list of degenerated edges.

◆ FirstShape() [1/2]

TopoDS_Shape BRepPrimAPI_MakeRevol::FirstShape ( )
overridevirtual

Returns the first shape of the revol (coinciding with the generating shape).

Implements BRepPrimAPI_MakeSweep.

◆ FirstShape() [2/2]

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).

◆ Generated()

virtual const TopTools_ListOfShape& BRepPrimAPI_MakeRevol::Generated ( const TopoDS_Shape S)
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.

◆ HasDegenerated()

Standard_Boolean BRepPrimAPI_MakeRevol::HasDegenerated ( ) const

Check if there are degenerated edges in the result.

◆ IsDeleted()

virtual Standard_Boolean BRepPrimAPI_MakeRevol::IsDeleted ( const TopoDS_Shape S)
overridevirtual

Returns true if the shape S has been deleted.

Reimplemented from BRepBuilderAPI_MakeShape.

◆ LastShape() [1/2]

TopoDS_Shape BRepPrimAPI_MakeRevol::LastShape ( )
overridevirtual

Returns the TopoDS Shape of the end of the revol.

Implements BRepPrimAPI_MakeSweep.

◆ LastShape() [2/2]

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).

◆ Revol()

const BRepSweep_Revol& BRepPrimAPI_MakeRevol::Revol ( ) const

Returns the internal sweeping algorithm.


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