1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

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,67 @@
// File: BRepAdaptor_Curve2d.cxx
// Created: Tue Jul 13 19:13:38 1993
// Author: Remi LEQUETTE
// <rle@nonox>
#include <BRepAdaptor_Curve2d.ixx>
#include <BRep_Tool.hxx>
//=======================================================================
//function : BRepAdaptor_Curve2d
//purpose :
//=======================================================================
BRepAdaptor_Curve2d::BRepAdaptor_Curve2d()
{
}
//=======================================================================
//function : BRepAdaptor_Curve2d
//purpose :
//=======================================================================
BRepAdaptor_Curve2d::BRepAdaptor_Curve2d(const TopoDS_Edge& E,
const TopoDS_Face& F)
{
Initialize(E,F);
}
//=======================================================================
//function : Initialize
//purpose :
//=======================================================================
void BRepAdaptor_Curve2d::Initialize(const TopoDS_Edge& E,
const TopoDS_Face& F)
{
myEdge = E;
myFace = F;
Standard_Real pf,pl;
const Handle(Geom2d_Curve) PC = BRep_Tool::CurveOnSurface(E,F,pf,pl);
Geom2dAdaptor_Curve::Load(PC,pf,pl);
}
//=======================================================================
//function : Edge
//purpose :
//=======================================================================
const TopoDS_Edge& BRepAdaptor_Curve2d::Edge() const
{
return myEdge;
}
//=======================================================================
//function : Face
//purpose :
//=======================================================================
const TopoDS_Face& BRepAdaptor_Curve2d::Face() const
{
return myFace;
}