summaryrefslogtreecommitdiff
path: root/src/PBRep/PBRep_PolygonOnSurface.cxx
blob: 37888d7f993350746dbfad1df875f59f7fc1206e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <PBRep_PolygonOnSurface.ixx>


//=======================================================================
//function : PBRep_PolygonOnSurface
//purpose  : 
//=======================================================================

PBRep_PolygonOnSurface::PBRep_PolygonOnSurface
(const Handle(PPoly_Polygon2D)& aPPol2d,
 const Handle(PGeom_Surface)&   aPSurf,
 const PTopLoc_Location&        aPLoc) :
 PBRep_CurveRepresentation(aPLoc),
 myPolygon2D(aPPol2d),
 mySurface(aPSurf)
{
}


//=======================================================================
//function : PBRep_PolygonOnSurface::IsPolygonOnSurface
//purpose  : 
//=======================================================================

Standard_Boolean PBRep_PolygonOnSurface::IsPolygonOnSurface() const 
{
  return Standard_True;
}


//=======================================================================
//function : PBRep_PolygonOnSurface::Surface
//purpose  : 
//=======================================================================

Handle(PGeom_Surface) PBRep_PolygonOnSurface::Surface() const 
{
  return mySurface;
}

//=======================================================================
//function : PBRep_PolygonOnSurface::Polygon
//purpose  : 
//=======================================================================

Handle(PPoly_Polygon2D) PBRep_PolygonOnSurface::Polygon() const 
{
  return myPolygon2D;
}