1 // File: BRep_PolygonOnSurface.cxx
2 // Created: Wed Mar 15 13:53:11 1995
3 // Author: Laurent PAINNOT
7 #include <BRep_PolygonOnSurface.ixx>
11 //=======================================================================
12 //function : BRep_PolygonOnSurface
14 //=======================================================================
16 BRep_PolygonOnSurface::BRep_PolygonOnSurface(const Handle(Poly_Polygon2D)& P,
17 const Handle(Geom_Surface)& S,
18 const TopLoc_Location& L):
19 BRep_CurveRepresentation(L),
25 //=======================================================================
26 //function : IsPolygonOnSurface
28 //=======================================================================
30 Standard_Boolean BRep_PolygonOnSurface::IsPolygonOnSurface() const
35 //=======================================================================
36 //function : IsPolygonOnSurface
38 //=======================================================================
40 Standard_Boolean BRep_PolygonOnSurface::IsPolygonOnSurface(const Handle(Geom_Surface)& S,
41 const TopLoc_Location& L) const
43 return (S == mySurface) && (L == myLocation);
46 //=======================================================================
49 //=======================================================================
51 const Handle(Geom_Surface)& BRep_PolygonOnSurface::Surface() const
56 //=======================================================================
59 //=======================================================================
61 const Handle(Poly_Polygon2D)& BRep_PolygonOnSurface::Polygon() const
66 //=======================================================================
69 //=======================================================================
71 void BRep_PolygonOnSurface::Polygon(const Handle(Poly_Polygon2D)& P)
76 //=======================================================================
79 //=======================================================================
81 Handle(BRep_CurveRepresentation) BRep_PolygonOnSurface::Copy() const
83 Handle(BRep_PolygonOnSurface) P = new BRep_PolygonOnSurface(myPolygon2D,