b311480e |
1 | // Created on: 2002-03-04 |
2 | // Created by: Michael KLOKOV |
973c2be1 |
3 | // Copyright (c) 2002-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
7fd59977 |
15 | |
4e57c75e |
16 | #include <BOPAlgo_SectionAttribute.ixx> |
7fd59977 |
17 | //======================================================================= |
4e57c75e |
18 | // function: BOPAlgo_SectionAttribute |
7fd59977 |
19 | // purpose: |
20 | //======================================================================= |
4e57c75e |
21 | BOPAlgo_SectionAttribute::BOPAlgo_SectionAttribute(const Standard_Boolean Aproximation, |
22 | const Standard_Boolean PCurveOnS1, |
23 | const Standard_Boolean PCurveOnS2) |
7fd59977 |
24 | { |
25 | myApproximation = Aproximation; |
26 | myPCurve1 = PCurveOnS1; |
27 | myPCurve2 = PCurveOnS2; |
28 | } |
29 | //======================================================================= |
30 | // function: Approximation |
31 | // purpose: |
32 | //======================================================================= |
4e57c75e |
33 | void BOPAlgo_SectionAttribute::Approximation(const Standard_Boolean theFlag) |
7fd59977 |
34 | { |
35 | myApproximation = theFlag; |
36 | } |
37 | //======================================================================= |
38 | // function: PCurveOnS1 |
39 | // purpose: |
40 | //======================================================================= |
4e57c75e |
41 | void BOPAlgo_SectionAttribute::PCurveOnS1(const Standard_Boolean theFlag) |
7fd59977 |
42 | { |
43 | myPCurve1 = theFlag; |
44 | } |
45 | //======================================================================= |
46 | // function: PCurveOnS2 |
47 | // purpose: |
48 | //======================================================================= |
4e57c75e |
49 | void BOPAlgo_SectionAttribute::PCurveOnS2(const Standard_Boolean theFlag) |
7fd59977 |
50 | { |
51 | myPCurve2 = theFlag; |
52 | } |
53 | |