Open CASCADE Technology 6.6.0
|
Describes functions to build wires from edges. A wire can
be built from any number of edges.
To build a wire you first initialize the construction, then
add edges in sequence. An unlimited number of edges
can be added. The initialization of construction is done with:
More...
#include <BRepBuilderAPI_MakeWire.hxx>
Public Member Functions | |
BRepBuilderAPI_MakeWire () | |
Constructs an empty wire framework, to which edges are added using the Add function. As soon as the wire contains one edge, it can return with the use of the function Wire. Warning The function Error will return BRepBuilderAPI_EmptyWire if it is called before at least one edge is added to the wire under construction. | |
BRepBuilderAPI_MakeWire (const TopoDS_Edge &E) | |
Make a Wire from an edge. | |
BRepBuilderAPI_MakeWire (const TopoDS_Edge &E1, const TopoDS_Edge &E2) | |
Make a Wire from two edges. | |
BRepBuilderAPI_MakeWire (const TopoDS_Edge &E1, const TopoDS_Edge &E2, const TopoDS_Edge &E3) | |
Make a Wire from three edges. | |
BRepBuilderAPI_MakeWire (const TopoDS_Edge &E1, const TopoDS_Edge &E2, const TopoDS_Edge &E3, const TopoDS_Edge &E4) | |
Make a Wire from four edges. //! Constructs a wire | |
BRepBuilderAPI_MakeWire (const TopoDS_Wire &W) | |
Make a Wire from a Wire. Usefull for adding later. | |
BRepBuilderAPI_MakeWire (const TopoDS_Wire &W, const TopoDS_Edge &E) | |
Add an edge to a wire. | |
void | Add (const TopoDS_Edge &E) |
Adds the edge E to the wire under construction. E must be connectable to the wire under construction, and, unless it is the first edge of the wire, must satisfy the following condition: one of its vertices must be geometrically coincident with one of the vertices of the wire (provided that the highest tolerance factor is assigned to the two vertices). It could also be the same vertex. Warning If E is not connectable to the wire under construction it is not added. The function Error will return BRepBuilderAPI_DisconnectedWire, the function IsDone will return false and the function Wire will raise an error, until a new connectable edge is added. | |
void | Add (const TopoDS_Wire &W) |
Add the edges of <W> to the current wire. | |
void | Add (const TopTools_ListOfShape &L) |
Adds 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. If some of them are not connected the Status give DisconnectedWire but the "Maker" is Done() and you can get the partial result. (ie connected to the first edgeof the list <L>) | |
virtual Standard_Boolean | IsDone () const |
Returns true if this algorithm contains a valid wire. IsDone returns false if: | |
BRepBuilderAPI_WireError | Error () const |
Returns the construction status | |
const TopoDS_Wire & | Wire () const |
Returns the constructed wire; or the part of the wire under construction already built. Exceptions StdFail_NotDone if a wire is not built. | |
operator TopoDS_Wire () const | |
const TopoDS_Edge & | Edge () const |
Returns the last edge added to the wire under construction. Warning | |
const TopoDS_Vertex & | Vertex () const |
Returns the last vertex of the last edge added to the wire under construction. Warning A null vertex is returned if there are no edges in the wire under construction, or if the last edge which you tried to add was not connectableR |
BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire | ( | ) |
BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire | ( | const TopoDS_Edge & | E | ) |
BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire | ( | const TopoDS_Edge & | E1, |
const TopoDS_Edge & | E2 | ||
) |
BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire | ( | const TopoDS_Edge & | E1, |
const TopoDS_Edge & | E2, | ||
const TopoDS_Edge & | E3 | ||
) |
BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire | ( | const TopoDS_Edge & | E1, |
const TopoDS_Edge & | E2, | ||
const TopoDS_Edge & | E3, | ||
const TopoDS_Edge & | E4 | ||
) |
BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire | ( | const TopoDS_Wire & | W | ) |
BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire | ( | const TopoDS_Wire & | W, |
const TopoDS_Edge & | E | ||
) |
void BRepBuilderAPI_MakeWire::Add | ( | const TopoDS_Edge & | E | ) |
void BRepBuilderAPI_MakeWire::Add | ( | const TopoDS_Wire & | W | ) |
void BRepBuilderAPI_MakeWire::Add | ( | const TopTools_ListOfShape & | L | ) |
const TopoDS_Edge& BRepBuilderAPI_MakeWire::Edge | ( | ) | const |
BRepBuilderAPI_WireError BRepBuilderAPI_MakeWire::Error | ( | ) | const |
virtual Standard_Boolean BRepBuilderAPI_MakeWire::IsDone | ( | ) | const [virtual] |
Reimplemented from BRepBuilderAPI_Command.
BRepBuilderAPI_MakeWire::operator TopoDS_Wire | ( | ) | const |
const TopoDS_Vertex& BRepBuilderAPI_MakeWire::Vertex | ( | ) | const |
const TopoDS_Wire& BRepBuilderAPI_MakeWire::Wire | ( | ) | const |