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

ModelingAlgorithms
TKTopAlgo
BRepLib


BRepLib_MakeWire Class Reference

Provides methods to build wires.

A wire may be built :

* From a single edge.

* From a wire and an edge.

- A new wire is created with the edges of the
wire + the edge.

- If the edge is not connnected to the wire the
flag NotDone is set and the method Wire will
raise an error.

- The connection may be :

. Through an existing vertex. The edge is shared.

. Through a geometric coincidence of vertices.
The edge is copied and the vertices from the
edge are replaced by the vertices from the
wire.

. The new edge and the connection vertices are
kept by the algorithm.


* From 2, 3, 4 edges.

- A wire is created from the first edge, the
following edges are added.

* From many edges.

- The following syntax may be used :

BRepLib_MakeWire MW;

// for all the edges ...
MW.Add(anEdge);

TopoDS_Wire W = MW;
.

#include <BRepLib_MakeWire.hxx>

Inheritance diagram for BRepLib_MakeWire:

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 BRepLib_MakeWire ()
 NotDone MakeWire.
.
Standard_EXPORT BRepLib_MakeWire (const TopoDS_Edge &E)
 Make a Wire from an edge.
.
Standard_EXPORT BRepLib_MakeWire (const TopoDS_Edge &E1, const TopoDS_Edge &E2)
 Make a Wire from two edges.
.
Standard_EXPORT BRepLib_MakeWire (const TopoDS_Edge &E1, const TopoDS_Edge &E2, const TopoDS_Edge &E3)
 Make a Wire from three edges.
.
Standard_EXPORT BRepLib_MakeWire (const TopoDS_Edge &E1, const TopoDS_Edge &E2, const TopoDS_Edge &E3, const TopoDS_Edge &E4)
 Make a Wire from four edges.
.
Standard_EXPORT BRepLib_MakeWire (const TopoDS_Wire &W)
 Make a Wire from a Wire. Usefull for adding later.
.
Standard_EXPORT BRepLib_MakeWire (const TopoDS_Wire &W, const TopoDS_Edge &E)
 Add an edge to a wire.
.
Standard_EXPORT void Add (const TopoDS_Edge &E)
 Add the edge <e> to the current wire.
.
Standard_EXPORT void Add (const TopoDS_Wire &W)
 Add the edges of <w> to the current wire.
.
Standard_EXPORT void Add (const TopTools_ListOfShape &L)
 Add the edges of <l> to the current wire.
The edges are not to be consecutive. But they are
to be all connected geometrically or topologically.
.
Standard_EXPORT BRepLib_WireError Error () const
Standard_EXPORT const TopoDS_Wire & Wire () const
 Returns the new wire.

.
Standard_EXPORT operator TopoDS_Wire () const
Standard_EXPORT const TopoDS_Edge & Edge () const
 Returns the last edge added to the wire.

.
Standard_EXPORT const TopoDS_Vertex & Vertex () const
 Returns the last connecting vertex.

.

Private Attributes

BRepLib_WireError myError
TopoDS_Edge myEdge
TopoDS_Vertex myVertex
TopTools_MapOfShape myVertices
TopoDS_Vertex FirstVertex
TopoDS_Vertex VF
TopoDS_Vertex VL

Constructor & Destructor Documentation

Standard_EXPORT BRepLib_MakeWire::BRepLib_MakeWire  ) 
 

Standard_EXPORT BRepLib_MakeWire::BRepLib_MakeWire const TopoDS_Edge &  E  ) 
 

Standard_EXPORT BRepLib_MakeWire::BRepLib_MakeWire const TopoDS_Edge &  E1,
const TopoDS_Edge &  E2
 

Standard_EXPORT BRepLib_MakeWire::BRepLib_MakeWire const TopoDS_Edge &  E1,
const TopoDS_Edge &  E2,
const TopoDS_Edge &  E3
 

Standard_EXPORT BRepLib_MakeWire::BRepLib_MakeWire const TopoDS_Edge &  E1,
const TopoDS_Edge &  E2,
const TopoDS_Edge &  E3,
const TopoDS_Edge &  E4
 

Standard_EXPORT BRepLib_MakeWire::BRepLib_MakeWire const TopoDS_Wire &  W  ) 
 

Standard_EXPORT BRepLib_MakeWire::BRepLib_MakeWire const TopoDS_Wire &  W,
const TopoDS_Edge &  E
 


Member Function Documentation

Standard_EXPORT void BRepLib_MakeWire::Add const TopTools_ListOfShape &  L  ) 
 

Standard_EXPORT void BRepLib_MakeWire::Add const TopoDS_Wire &  W  ) 
 

Standard_EXPORT void BRepLib_MakeWire::Add const TopoDS_Edge &  E  ) 
 

Standard_EXPORT const TopoDS_Edge& BRepLib_MakeWire::Edge  )  const
 

Standard_EXPORT BRepLib_WireError BRepLib_MakeWire::Error  )  const
 

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

Reimplemented from BRepLib_MakeShape.

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

Reimplemented from BRepLib_MakeShape.

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

Reimplemented from BRepLib_MakeShape.

Standard_EXPORT BRepLib_MakeWire::operator TopoDS_Wire  )  const
 

Standard_EXPORT const TopoDS_Vertex& BRepLib_MakeWire::Vertex  )  const
 

Standard_EXPORT const TopoDS_Wire& BRepLib_MakeWire::Wire  )  const
 


Field Documentation

TopoDS_Vertex BRepLib_MakeWire::FirstVertex [private]
 

TopoDS_Edge BRepLib_MakeWire::myEdge [private]
 

BRepLib_WireError BRepLib_MakeWire::myError [private]
 

TopoDS_Vertex BRepLib_MakeWire::myVertex [private]
 

TopTools_MapOfShape BRepLib_MakeWire::myVertices [private]
 

TopoDS_Vertex BRepLib_MakeWire::VF [private]
 

TopoDS_Vertex BRepLib_MakeWire::VL [private]
 


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