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,250 @@
// File: BRepBuilderAPI_MakePolygon.cxx
// Created: Thu Jul 29 17:17:23 1993
// Author: Remi LEQUETTE
// <rle@phylox>
#include <BRepBuilderAPI_MakePolygon.ixx>
//=======================================================================
//function : BRepBuilderAPI_MakePolygon
//purpose :
//=======================================================================
BRepBuilderAPI_MakePolygon::BRepBuilderAPI_MakePolygon()
{
}
//=======================================================================
//function : BRepBuilderAPI_MakePolygon
//purpose :
//=======================================================================
BRepBuilderAPI_MakePolygon::BRepBuilderAPI_MakePolygon(const gp_Pnt& P1, const gp_Pnt& P2)
: myMakePolygon(P1,P2)
{
if (myMakePolygon.IsDone()) {
Done();
myShape = myMakePolygon.Shape();
}
}
//=======================================================================
//function : BRepBuilderAPI_MakePolygon
//purpose :
//=======================================================================
BRepBuilderAPI_MakePolygon::BRepBuilderAPI_MakePolygon(const gp_Pnt& P1,
const gp_Pnt& P2,
const gp_Pnt& P3,
const Standard_Boolean Cl)
: myMakePolygon(P1,P2,P3,Cl)
{
if (myMakePolygon.IsDone()) {
Done();
myShape = myMakePolygon.Shape();
}
}
//=======================================================================
//function : BRepBuilderAPI_MakePolygon
//purpose :
//=======================================================================
BRepBuilderAPI_MakePolygon::BRepBuilderAPI_MakePolygon(const gp_Pnt& P1,
const gp_Pnt& P2,
const gp_Pnt& P3,
const gp_Pnt& P4,
const Standard_Boolean Cl)
: myMakePolygon(P1,P2,P3,P4,Cl)
{
if (myMakePolygon.IsDone()) {
Done();
myShape = myMakePolygon.Shape();
}
}
//=======================================================================
//function : BRepBuilderAPI_MakePolygon
//purpose :
//=======================================================================
BRepBuilderAPI_MakePolygon::BRepBuilderAPI_MakePolygon(const TopoDS_Vertex& V1,
const TopoDS_Vertex& V2)
: myMakePolygon(V1,V2)
{
if (myMakePolygon.IsDone()) {
Done();
myShape = myMakePolygon.Shape();
}
}
//=======================================================================
//function : BRepBuilderAPI_MakePolygon
//purpose :
//=======================================================================
BRepBuilderAPI_MakePolygon::BRepBuilderAPI_MakePolygon(const TopoDS_Vertex& V1,
const TopoDS_Vertex& V2,
const TopoDS_Vertex& V3,
const Standard_Boolean Cl)
: myMakePolygon(V1,V2,V3,Cl)
{
if (myMakePolygon.IsDone()) {
Done();
myShape = myMakePolygon.Shape();
}
}
//=======================================================================
//function : BRepBuilderAPI_MakePolygon
//purpose :
//=======================================================================
BRepBuilderAPI_MakePolygon::BRepBuilderAPI_MakePolygon(const TopoDS_Vertex& V1,
const TopoDS_Vertex& V2,
const TopoDS_Vertex& V3,
const TopoDS_Vertex& V4,
const Standard_Boolean Cl)
: myMakePolygon(V1,V2,V3,V4,Cl)
{
if (myMakePolygon.IsDone()) {
Done();
myShape = myMakePolygon.Shape();
}
}
//=======================================================================
//function : Add
//purpose :
//=======================================================================
void BRepBuilderAPI_MakePolygon::Add(const gp_Pnt& P)
{
myMakePolygon.Add(P);
if (myMakePolygon.IsDone()) {
Done();
if ( !LastVertex().IsNull())
myShape = myMakePolygon.Shape();
}
}
//=======================================================================
//function : Add
//purpose :
//=======================================================================
void BRepBuilderAPI_MakePolygon::Add(const TopoDS_Vertex& V)
{
myMakePolygon.Add(V);
if (myMakePolygon.IsDone()) {
Done();
myShape = myMakePolygon.Shape();
}
}
//=======================================================================
//function : Added
//purpose :
//=======================================================================
Standard_Boolean BRepBuilderAPI_MakePolygon::Added()const
{
return myMakePolygon.Added();
}
//=======================================================================
//function : Close
//purpose :
//=======================================================================
void BRepBuilderAPI_MakePolygon::Close()
{
myMakePolygon.Close();
myShape = myMakePolygon.Shape();
}
//=======================================================================
//function : FirstVertex
//purpose :
//=======================================================================
const TopoDS_Vertex& BRepBuilderAPI_MakePolygon::FirstVertex()const
{
return myMakePolygon.FirstVertex();
}
//=======================================================================
//function : LastVertex
//purpose :
//=======================================================================
const TopoDS_Vertex& BRepBuilderAPI_MakePolygon::LastVertex()const
{
return myMakePolygon.LastVertex();
}
//=======================================================================
//function : IsDone
//purpose :
//=======================================================================
Standard_Boolean BRepBuilderAPI_MakePolygon::IsDone() const
{
return myMakePolygon.IsDone();
}
//=======================================================================
//function : Edge
//purpose :
//=======================================================================
const TopoDS_Edge& BRepBuilderAPI_MakePolygon::Edge()const
{
return myMakePolygon.Edge();
}
//=======================================================================
//function : Wire
//purpose :
//=======================================================================
const TopoDS_Wire& BRepBuilderAPI_MakePolygon::Wire()const
{
return myMakePolygon.Wire();
}
//=======================================================================
//function : operator
//purpose :
//=======================================================================
BRepBuilderAPI_MakePolygon::operator TopoDS_Edge() const
{
return Edge();
}
//=======================================================================
//function : operator
//purpose :
//=======================================================================
BRepBuilderAPI_MakePolygon::operator TopoDS_Wire() const
{
return Wire();
}