Open CASCADE Technology
7.1.0.beta
|
A Tool to glue faces at common edges and reconstruct shells. More...
#include <BRepTools_Quilt.hxx>
Public Member Functions | |
BRepTools_Quilt () | |
void | Bind (const TopoDS_Edge &Eold, const TopoDS_Edge &Enew) |
Binds <Enew> to be the new edge instead of <Eold>. More... | |
void | Bind (const TopoDS_Vertex &Vold, const TopoDS_Vertex &Vnew) |
Binds <VNew> to be a new vertex instead of <Vold>. More... | |
void | Add (const TopoDS_Shape &S) |
Add the faces of <S> to the Quilt, the faces containing bounded edges are copied. More... | |
Standard_Boolean | IsCopied (const TopoDS_Shape &S) const |
Returns True if <S> has been copied (<S> is a vertex, an edge or a face) More... | |
const TopoDS_Shape & | Copy (const TopoDS_Shape &S) const |
Returns the shape substitued to <S> in the Quilt. More... | |
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. More... | |
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.
BRepTools_Quilt::BRepTools_Quilt | ( | ) |
void BRepTools_Quilt::Add | ( | const TopoDS_Shape & | S | ) |
Add the faces of <S> to the Quilt, the faces containing bounded edges are copied.
void BRepTools_Quilt::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.
void BRepTools_Quilt::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>.
const TopoDS_Shape& BRepTools_Quilt::Copy | ( | const TopoDS_Shape & | S | ) | const |
Returns the shape substitued to <S> in the Quilt.
Standard_Boolean BRepTools_Quilt::IsCopied | ( | const TopoDS_Shape & | S | ) | const |
Returns True if <S> has been copied (<S> is a vertex, an edge or a face)
TopoDS_Shape BRepTools_Quilt::Shells | ( | ) | const |
Returns a Compound of shells made from the current set of faces. The shells will be flagged as closed or not closed.