Open CASCADE Technology 7.8.2.dev
BRepPrimAPI_MakeRevol Class Reference

Class to make revolved sweep topologies. More...

#include <BRepPrimAPI_MakeRevol.hxx>

Inheritance diagram for BRepPrimAPI_MakeRevol:

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_RevolRevol () 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_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.
 
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_ListOfShapeDegenerated () const
 Returns the list of degenerated edges.
 
- Public Member Functions inherited from BRepPrimAPI_MakeSweep
- 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.
 
 operator TopoDS_Shape ()
 
virtual const TopTools_ListOfShapeModified (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
 

Detailed Description

Class to make revolved sweep topologies.

a revolved sweep is defined by :

  • A basis topology which is swept.

The basis topology must not contain solids (neither composite solids.).

The basis topology may be copied or shared in the result.

  • A rotation axis and angle :
  • The axis is an Ax1 from gp.
  • The angle is in [0, 2*Pi].
  • The angle default value is 2*Pi.

The result is a topology with a higher dimension :

  • Vertex -> Edge.
  • Edge -> Face.
  • Wire -> Shell.
  • Face -> Solid.
  • Shell -> CompSolid.

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: