OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKPrim
BRepPrimAPI


BRepPrimAPI_MakeRevol Class Reference

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.

.

#include <BRepPrimAPI_MakeRevol.hxx>

Inheritance diagram for BRepPrimAPI_MakeRevol:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT 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.
.
Standard_EXPORT 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.
.
Standard_EXPORT const BRepSweep_RevolRevol () const
 Returns the internal sweeping algorithm.

.
virtual Standard_EXPORT void Build ()
 Builds the resulting shape (redefined from MakeShape).
.
Standard_EXPORT TopoDS_Shape FirstShape ()
 Returns the first shape of the revol (coinciding with
the generating shape).
.
Standard_EXPORT TopoDS_Shape LastShape ()
 Returns the TopoDS Shape of the end of the revol.
.
virtual Standard_EXPORT const
TopTools_ListOfShape & 
Generated (const TopoDS_Shape &S)
 Returns the list of shapes generated from the
shape <s>.
.
Standard_EXPORT 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).
.
Standard_EXPORT 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_EXPORT Standard_Boolean HasDegenerated () const
 Check if there are degenerated edges in the result.
.
Standard_EXPORT const TopTools_ListOfShape & Degenerated () const

Private Attributes

BRepSweep_Revol myRevol
TopTools_ListOfShape myDegenerated

Constructor & Destructor Documentation

Standard_EXPORT BRepPrimAPI_MakeRevol::BRepPrimAPI_MakeRevol const TopoDS_Shape &  S,
const gp_Ax1 &  A,
const Standard_Real  D,
const Standard_Boolean  Copy = Standard_False
 

Standard_EXPORT BRepPrimAPI_MakeRevol::BRepPrimAPI_MakeRevol const TopoDS_Shape &  S,
const gp_Ax1 &  A,
const Standard_Boolean  Copy = Standard_False
 


Member Function Documentation

virtual Standard_EXPORT void BRepPrimAPI_MakeRevol::Build  )  [virtual]
 

Reimplemented from BRepBuilderAPI_MakeShape.

Standard_EXPORT const TopTools_ListOfShape& BRepPrimAPI_MakeRevol::Degenerated  )  const
 

Standard_EXPORT TopoDS_Shape BRepPrimAPI_MakeRevol::FirstShape const TopoDS_Shape &  theShape  ) 
 

Standard_EXPORT TopoDS_Shape BRepPrimAPI_MakeRevol::FirstShape  )  [virtual]
 

Implements BRepPrimAPI_MakeSweep.

virtual Standard_EXPORT const TopTools_ListOfShape& BRepPrimAPI_MakeRevol::Generated const TopoDS_Shape &  S  )  [virtual]
 

Reimplemented from BRepBuilderAPI_MakeShape.

Standard_EXPORT Standard_Boolean BRepPrimAPI_MakeRevol::HasDegenerated  )  const
 

Standard_EXPORT TopoDS_Shape BRepPrimAPI_MakeRevol::LastShape const TopoDS_Shape &  theShape  ) 
 

Standard_EXPORT TopoDS_Shape BRepPrimAPI_MakeRevol::LastShape  )  [virtual]
 

Implements BRepPrimAPI_MakeSweep.

void BRepPrimAPI_MakeRevol::operator delete void *  anAddress  )  [inline]
 

Reimplemented from BRepPrimAPI_MakeSweep.

void* BRepPrimAPI_MakeRevol::operator new size_t  size  )  [inline]
 

Reimplemented from BRepPrimAPI_MakeSweep.

void* BRepPrimAPI_MakeRevol::operator new size_t  ,
void *  anAddress
[inline]
 

Reimplemented from BRepPrimAPI_MakeSweep.

Standard_EXPORT const BRepSweep_Revol& BRepPrimAPI_MakeRevol::Revol  )  const
 


Field Documentation

TopTools_ListOfShape BRepPrimAPI_MakeRevol::myDegenerated [private]
 

BRepSweep_Revol BRepPrimAPI_MakeRevol::myRevol [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:41:33 2008 for OpenCASCADE by  doxygen 1.4.1