0025923: Remove small wires on face read from STEP
[occt.git] / src / PBRep / PBRep_CurveOnClosedSurface.cxx
1 // Created on: 1993-07-26
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #include <PBRep_CurveOnClosedSurface.ixx>
18
19
20 //=======================================================================
21 //function : PBRep_CurveOnClosedSurface
22 //purpose  : 
23 //=======================================================================
24
25 PBRep_CurveOnClosedSurface::PBRep_CurveOnClosedSurface
26   (const Handle(PGeom2d_Curve)& PC1,
27    const Handle(PGeom2d_Curve)& PC2,
28    const Standard_Real          CF,
29    const Standard_Real          CL,
30    const Handle(PGeom_Surface)& S,
31    const PTopLoc_Location& L,
32    const GeomAbs_Shape C) :
33   PBRep_CurveOnSurface(PC1, CF, CL, S, L),
34   myPCurve2(PC2),
35   myContinuity(C)
36 {
37 }
38
39
40 //=======================================================================
41 //function : PCurve2
42 //purpose  : 
43 //=======================================================================
44
45 Handle(PGeom2d_Curve)  PBRep_CurveOnClosedSurface::PCurve2()const 
46 {
47   return myPCurve2;
48 }
49
50
51 //=======================================================================
52 //function : Continuity
53 //purpose  : 
54 //=======================================================================
55
56 GeomAbs_Shape  PBRep_CurveOnClosedSurface::Continuity()const 
57 {
58   return myContinuity;
59 }
60
61 //=======================================================================
62 //function : IsCurveOnClosedSurface
63 //purpose  : 
64 //=======================================================================
65
66 Standard_Boolean  PBRep_CurveOnClosedSurface::IsCurveOnClosedSurface()const 
67 {
68   return Standard_True;
69 }
70
71 //=======================================================================
72 //function : IsRegularity
73 //purpose  : 
74 //=======================================================================
75
76 Standard_Boolean  PBRep_CurveOnClosedSurface::IsRegularity()const 
77 {
78   return Standard_True;
79 }
80
81 //=======================================================================
82 //function : SetUVPoints2
83 //purpose  : 
84 //=======================================================================
85
86 void PBRep_CurveOnClosedSurface::SetUVPoints2(const gp_Pnt2d& Pnt1,
87                                               const gp_Pnt2d& Pnt2) 
88 {
89   myUV21 = Pnt1;
90   myUV22 = Pnt2;
91 }
92
93 //=======================================================================
94 //function : FirstUV2
95 //purpose  : 
96 //=======================================================================
97
98 gp_Pnt2d PBRep_CurveOnClosedSurface::FirstUV2() const 
99 {
100   return myUV21;
101 }
102
103 //=======================================================================
104 //function : LastUV2
105 //purpose  : 
106 //=======================================================================
107
108 gp_Pnt2d PBRep_CurveOnClosedSurface::LastUV2() const 
109 {
110   return myUV22;
111 }
112