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

ModelingAlgorithms
TKPrim
BRepPrimAPI


BRepPrimAPI_MakePrism Class Reference

Describes functions to build linear swept topologies, called prisms.
A prism is defined by:
- a basis shape, which is swept, and
- a sweeping direction, which is:
- a vector for finite prisms, or
- a direction for infinite or semi-infinite prisms.
The basis shape must not contain any solids.
The profile generates objects according to the following rules:
- Vertices generate Edges
- Edges generate Faces.
- Wires generate Shells.
- Faces generate Solids.
- Shells generate Composite Solids
A MakePrism object provides a framework for:
- defining the construction of a prism,
- implementing the construction algorithm, and
- consulting the result.
.

#include <BRepPrimAPI_MakePrism.hxx>

Inheritance diagram for BRepPrimAPI_MakePrism:

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_MakePrism (const TopoDS_Shape &S, const gp_Vec &V, const Standard_Boolean Copy=Standard_False, const Standard_Boolean Canonize=Standard_True)
 Builds the prism of base S and vector V. If C is true,
S is copied. If Canonize is true then generated surfaces
are attempted to be canonized in simple types
.
Standard_EXPORT BRepPrimAPI_MakePrism (const TopoDS_Shape &S, const gp_Dir &D, const Standard_Boolean Inf=Standard_True, const Standard_Boolean Copy=Standard_False, const Standard_Boolean Canonize=Standard_True)
 Builds a semi-infinite or an infinite prism of base S.
If Inf is true the prism is infinite, if Inf is false
the prism is semi-infinite (in the direction D). If C
is true S is copied (for semi-infinite prisms).
If Canonize is true then generated surfaces
are attempted to be canonized in simple types
.
Standard_EXPORT const BRepSweep_PrismPrism () 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 TopoDS Shape of the bottom of the prism.
.
Standard_EXPORT TopoDS_Shape LastShape ()
 Returns the TopoDS Shape of the top of the prism.
In the case of a finite prism, FirstShape returns the
basis of the prism, in other words, S if Copy is false;
otherwise, the copy of S belonging to the prism.
LastShape returns the copy of S translated by V at the
time of construction.
.
virtual Standard_EXPORT const
TopTools_ListOfShape & 
Generated (const TopoDS_Shape &S)
 Returns ListOfShape from TopTools.
.
Standard_EXPORT TopoDS_Shape FirstShape (const TopoDS_Shape &theShape)
 Returns the TopoDS Shape of the bottom of the prism.
generated with theShape (subShape of the generating shape).
.
Standard_EXPORT TopoDS_Shape LastShape (const TopoDS_Shape &theShape)
 Returns the TopoDS Shape of the top of the prism.
generated with theShape (subShape of the generating shape).
.

Private Attributes

BRepSweep_Prism myPrism

Constructor & Destructor Documentation

Standard_EXPORT BRepPrimAPI_MakePrism::BRepPrimAPI_MakePrism const TopoDS_Shape &  S,
const gp_Vec &  V,
const Standard_Boolean  Copy = Standard_False,
const Standard_Boolean  Canonize = Standard_True
 

Standard_EXPORT BRepPrimAPI_MakePrism::BRepPrimAPI_MakePrism const TopoDS_Shape &  S,
const gp_Dir &  D,
const Standard_Boolean  Inf = Standard_True,
const Standard_Boolean  Copy = Standard_False,
const Standard_Boolean  Canonize = Standard_True
 


Member Function Documentation

virtual Standard_EXPORT void BRepPrimAPI_MakePrism::Build  )  [virtual]
 

Reimplemented from BRepBuilderAPI_MakeShape.

Standard_EXPORT TopoDS_Shape BRepPrimAPI_MakePrism::FirstShape const TopoDS_Shape &  theShape  ) 
 

Standard_EXPORT TopoDS_Shape BRepPrimAPI_MakePrism::FirstShape  )  [virtual]
 

Implements BRepPrimAPI_MakeSweep.

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

Reimplemented from BRepBuilderAPI_MakeShape.

Standard_EXPORT TopoDS_Shape BRepPrimAPI_MakePrism::LastShape const TopoDS_Shape &  theShape  ) 
 

Standard_EXPORT TopoDS_Shape BRepPrimAPI_MakePrism::LastShape  )  [virtual]
 

Implements BRepPrimAPI_MakeSweep.

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

Reimplemented from BRepPrimAPI_MakeSweep.

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

Reimplemented from BRepPrimAPI_MakeSweep.

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

Reimplemented from BRepPrimAPI_MakeSweep.

Standard_EXPORT const BRepSweep_Prism& BRepPrimAPI_MakePrism::Prism  )  const
 


Field Documentation

BRepSweep_Prism BRepPrimAPI_MakePrism::myPrism [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