Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions

View File

@@ -0,0 +1,240 @@
// File: BRepBuilderAPI_MakeWire.cxx
// Created: Fri Jul 23 15:51:57 1993
// Author: Remi LEQUETTE
// <rle@nonox>
#include <BRepBuilderAPI_MakeWire.ixx>
//=======================================================================
//function : BRepBuilderAPI_MakeWire
//purpose :
//=======================================================================
BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire()
{
}
//=======================================================================
//function : BRepBuilderAPI_MakeWire
//purpose :
//=======================================================================
BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire(const TopoDS_Edge& E)
: myMakeWire(E)
{
if ( myMakeWire.IsDone()) {
Done();
myShape = myMakeWire.Wire();
}
}
//=======================================================================
//function : BRepBuilderAPI_MakeWire
//purpose :
//=======================================================================
BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire(const TopoDS_Edge& E1,
const TopoDS_Edge& E2)
: myMakeWire(E1,E2)
{
if ( myMakeWire.IsDone()) {
Done();
myShape = myMakeWire.Wire();
}
}
//=======================================================================
//function : BRepBuilderAPI_MakeWire
//purpose :
//=======================================================================
BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire(const TopoDS_Edge& E1,
const TopoDS_Edge& E2,
const TopoDS_Edge& E3)
: myMakeWire(E1,E2,E3)
{
if ( myMakeWire.IsDone()) {
Done();
myShape = myMakeWire.Wire();
}
}
//=======================================================================
//function : BRepBuilderAPI_MakeWire
//purpose :
//=======================================================================
BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire(const TopoDS_Edge& E1,
const TopoDS_Edge& E2,
const TopoDS_Edge& E3,
const TopoDS_Edge& E4)
: myMakeWire(E1,E2,E3,E4)
{
if ( myMakeWire.IsDone()) {
Done();
myShape = myMakeWire.Wire();
}
}
//=======================================================================
//function : BRepBuilderAPI_MakeWire
//purpose :
//=======================================================================
BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire(const TopoDS_Wire& W)
: myMakeWire(W)
{
if ( myMakeWire.IsDone()) {
Done();
myShape = myMakeWire.Wire();
}
}
//=======================================================================
//function : BRepBuilderAPI_MakeWire
//purpose :
//=======================================================================
BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire(const TopoDS_Wire& W,
const TopoDS_Edge& E)
: myMakeWire(W,E)
{
if ( myMakeWire.IsDone()) {
Done();
myShape = myMakeWire.Wire();
}
}
//=======================================================================
//function : Add
//purpose :
//=======================================================================
void BRepBuilderAPI_MakeWire::Add(const TopoDS_Wire& W)
{
myMakeWire.Add(W);
if ( myMakeWire.IsDone()) {
Done();
myShape = myMakeWire.Wire();
}
}
//=======================================================================
//function : Add
//purpose :
//=======================================================================
void BRepBuilderAPI_MakeWire::Add(const TopoDS_Edge& E)
{
myMakeWire.Add(E);
if ( myMakeWire.IsDone()) {
Done();
myShape = myMakeWire.Wire();
}
}
//=======================================================================
//function : Add
//purpose :
//=======================================================================
void BRepBuilderAPI_MakeWire::Add(const TopTools_ListOfShape& L)
{
myMakeWire.Add(L);
if ( myMakeWire.IsDone()) {
Done();
myShape = myMakeWire.Wire();
}
}
//=======================================================================
//function : Wire
//purpose :
//=======================================================================
const TopoDS_Wire& BRepBuilderAPI_MakeWire::Wire()const
{
return myMakeWire.Wire();
}
//=======================================================================
//function : Edge
//purpose :
//=======================================================================
const TopoDS_Edge& BRepBuilderAPI_MakeWire::Edge()const
{
return myMakeWire.Edge();
}
//=======================================================================
//function : Vertex
//purpose :
//=======================================================================
const TopoDS_Vertex& BRepBuilderAPI_MakeWire::Vertex()const
{
return myMakeWire.Vertex();
}
//=======================================================================
//function : operator
//purpose :
//=======================================================================
BRepBuilderAPI_MakeWire::operator TopoDS_Wire() const
{
return Wire();
}
//=======================================================================
//function : IsDone
//purpose :
//=======================================================================
Standard_Boolean BRepBuilderAPI_MakeWire::IsDone() const
{
return myMakeWire.IsDone();
}
//=======================================================================
//function : Error
//purpose :
//=======================================================================
BRepBuilderAPI_WireError BRepBuilderAPI_MakeWire::Error() const
{
switch ( myMakeWire.Error()) {
case BRepLib_WireDone:
return BRepBuilderAPI_WireDone;
case BRepLib_EmptyWire:
return BRepBuilderAPI_EmptyWire;
case BRepLib_DisconnectedWire:
return BRepBuilderAPI_DisconnectedWire;
case BRepLib_NonManifoldWire:
return BRepBuilderAPI_NonManifoldWire;
}
// portage WNT
return BRepBuilderAPI_WireDone;
}