0029915: Porting to VC 2017 : Regressions in Modeling Algorithms on VC 2017
[occt.git] / src / TopOpeBRepDS / TopOpeBRepDS_Surface.cxx
CommitLineData
b311480e 1// Created on: 1993-06-23
2// Created by: Jean Yves LEBEY
3// Copyright (c) 1993-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 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
973c2be1 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.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
42cf5bc1 17
18#include <Geom_Surface.hxx>
19#include <TopOpeBRepDS_Surface.hxx>
7fd59977 20
21//=======================================================================
22//function : TopOpeBRepDS_Surface
23//purpose :
24//=======================================================================
7fd59977 25TopOpeBRepDS_Surface::TopOpeBRepDS_Surface()
26{
27}
28
29//=======================================================================
30//function : TopOpeBRepDS_Surface
31//purpose :
32//=======================================================================
33
34TopOpeBRepDS_Surface::TopOpeBRepDS_Surface
35 (const Handle(Geom_Surface)& P,
36 const Standard_Real T) :
37 mySurface(P),
38 myTolerance(T)
39{
40}
41
42//
43//modified by NIZNHY-PKV Tue Oct 30 09:28:33 2001 f
44//=======================================================================
45//function : TopOpeBRepDS_Surface::TopOpeBRepDS_Surface
46//purpose :
47//=======================================================================
48TopOpeBRepDS_Surface::TopOpeBRepDS_Surface (const TopOpeBRepDS_Surface& Other)
49{
50 Assign(Other);
51}
52//=======================================================================
53//function : Assign
54//purpose :
55//=======================================================================
56void TopOpeBRepDS_Surface::Assign(const TopOpeBRepDS_Surface& Other)
57{
58 mySurface=Other.mySurface;
59 myTolerance=Other.myTolerance;
60 myKeep=Other.myKeep;
61}
62//modified by NIZNHY-PKV Tue Oct 30 09:28:20 2001 t
63//
64
65//=======================================================================
66//function : Surface
67//purpose :
68//=======================================================================
69
70const Handle(Geom_Surface)& TopOpeBRepDS_Surface::Surface()const
71{
72 return mySurface;
73}
74
75
76//=======================================================================
77//function : Tolerance
78//purpose :
79//=======================================================================
80
81Standard_Real TopOpeBRepDS_Surface::Tolerance()const
82{
83 return myTolerance;
84}
85
86//=======================================================================
87//function : Tolerance
88//purpose :
89//=======================================================================
90
91void TopOpeBRepDS_Surface::Tolerance(const Standard_Real T)
92{
93 myTolerance = T;
94}
95
96//=======================================================================
97//function : Keep
98//purpose :
99//=======================================================================
100
101Standard_Boolean TopOpeBRepDS_Surface::Keep() const
102{
103 return myKeep;
104}
105//=======================================================================
106//function : ChangeKeep
107//purpose :
108//=======================================================================
109
110void TopOpeBRepDS_Surface::ChangeKeep(const Standard_Boolean b)
111{
112 myKeep = b;
113}