Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
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 double D, const bool Copy=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 bool Copy=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.
 
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.
 
const NCollection_List< TopoDS_Shape > & 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.
 
bool 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).
 
bool HasDegenerated () const
 Check if there are degenerated edges in the result.
 
const NCollection_List< TopoDS_Shape > & Degenerated () const
 Returns the list of degenerated edges.
 
- 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 NCollection_List< TopoDS_Shape > & 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 bool IsDone () const
 
void Check () const
 Raises NotDone if done is false.
 

Protected Member Functions

bool 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
 
NCollection_List< TopoDS_ShapemyGenerated
 

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 double D,
const bool Copy = 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 bool Copy = false )

Builds the Revol of base S, axis A and angle 2*Pi. If C is true, S is copied.

Member Function Documentation

◆ Build()

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

Builds the resulting shape (redefined from MakeShape).

Reimplemented from BRepBuilderAPI_MakeShape.

◆ CheckValidity()

bool 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 NCollection_List< TopoDS_Shape > & 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()

const NCollection_List< TopoDS_Shape > & 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()

bool BRepPrimAPI_MakeRevol::HasDegenerated ( ) const

Check if there are degenerated edges in the result.

◆ IsDeleted()

bool 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: