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

ModelingData
TKBRep
BRepTools


BRepTools_Quilt Class Reference

A Tool to glue faces at common edges and
reconstruct shells.

The user designate pairs of common edges using the
method Bind. One edge is designated as the edge to
use in place of the other one (they are supposed
to be geometrically confused, but this not
checked). They can be of opposite directions, this
is specified by the orientations.

The user can add shapes with the Add method, all
the faces are registred and copies of faces and
edges are made to glue at the bound edges.

The user can call the Shells methods to compute a
compound of shells from the current set of faces.

If no binding is made this class can be used to
make shell from faces already sharing their edges.
.

#include <BRepTools_Quilt.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT BRepTools_Quilt ()
Standard_EXPORT void Bind (const TopoDS_Edge &Eold, const TopoDS_Edge &Enew)
 Binds <enew> to be the new edge instead of
<eold>.

The faces of the added shape containing <eold>
will be copied to substitute <eold> by <enew>.

The vertices of <eold> will be bound to the
vertices of <enew> with the same orientation.

If <eold> and <enew> have different orientations
the curves are considered to be opposite and the
pcurves of <eold> will be copied and reversed in
the new faces.

<eold> must belong to the next added shape, <enew> must belong
to a Shape added before.
.
Standard_EXPORT void Bind (const TopoDS_Vertex &Vold, const TopoDS_Vertex &Vnew)
 Binds <vnew> to be a new vertex instead of <vold>.

The faces of the added shape containing <vold>
will be copied to substitute <vold> by <vnew>.
.
Standard_EXPORT void Add (const TopoDS_Shape &S)
 Add the faces of <s> to the Quilt, the faces
containing bounded edges are copied.
.
Standard_EXPORT Standard_Boolean IsCopied (const TopoDS_Shape &S) const
 Returns True if <s> has been copied (<s> is a
vertex, an edge or a face)
.
Standard_EXPORT const TopoDS_ShapeCopy (const TopoDS_Shape &S) const
 Returns the shape substitued to <s> in the Quilt.

.
Standard_EXPORT TopoDS_Shape Shells () const
 Returns a Compound of shells made from the current
set of faces. The shells will be flagged as closed
or not closed.
.

Private Attributes

TopTools_IndexedDataMapOfShapeShape myBounds
Standard_Boolean hasCopy


Constructor & Destructor Documentation

Standard_EXPORT BRepTools_Quilt::BRepTools_Quilt  ) 
 


Member Function Documentation

Standard_EXPORT void BRepTools_Quilt::Add const TopoDS_Shape S  ) 
 

Standard_EXPORT void BRepTools_Quilt::Bind const TopoDS_Vertex Vold,
const TopoDS_Vertex Vnew
 

Standard_EXPORT void BRepTools_Quilt::Bind const TopoDS_Edge Eold,
const TopoDS_Edge Enew
 

Standard_EXPORT const TopoDS_Shape& BRepTools_Quilt::Copy const TopoDS_Shape S  )  const
 

Standard_EXPORT Standard_Boolean BRepTools_Quilt::IsCopied const TopoDS_Shape S  )  const
 

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

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

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

Standard_EXPORT TopoDS_Shape BRepTools_Quilt::Shells  )  const
 


Field Documentation

Standard_Boolean BRepTools_Quilt::hasCopy [private]
 

TopTools_IndexedDataMapOfShapeShape BRepTools_Quilt::myBounds [private]
 


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