Commit | Line | Data |
---|---|---|
b311480e | 1 | -- Created on: 1998-12-29 |
2 | -- Created by: Joelle CHAUVET | |
3 | -- Copyright (c) 1998-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 | |
17 | class NSections from BRepFill inherits SectionLaw from BRepFill | |
18 | ||
19 | ---Purpose: Build Section Law, with N Sections | |
20 | -- | |
21 | ---Level: Advanced | |
22 | ||
23 | uses | |
24 | SectionLaw from GeomFill, | |
d7325741 J |
25 | HArray1OfSectionLaw from GeomFill, |
26 | SequenceOfTrsf from GeomFill, | |
27 | BSplineSurface from Geom, | |
7fd59977 | 28 | HArray2OfShape from TopTools, |
29 | SequenceOfReal from TColStd, | |
30 | SequenceOfShape from TopTools, | |
31 | Shape from GeomAbs, | |
32 | Vertex from TopoDS, | |
33 | Wire from TopoDS, | |
34 | Edge from TopoDS, | |
35 | Shape from TopoDS, | |
36 | Function from Law | |
37 | ||
38 | is | |
39 | Create (S:SequenceOfShape from TopTools; | |
40 | Build : Boolean = Standard_True) | |
41 | ---Purpose: Construct | |
42 | returns NSections from BRepFill; | |
43 | ||
d7325741 J |
44 | Create (S : SequenceOfShape from TopTools; |
45 | Trsfs : SequenceOfTrsf from GeomFill; | |
46 | P : SequenceOfReal from TColStd; | |
47 | VF,VL : Real; | |
48 | Build : Boolean = Standard_True) | |
7fd59977 | 49 | ---Purpose: Construct |
50 | returns NSections from BRepFill; | |
51 | ||
52 | ||
53 | IsVertex(me) | |
54 | ---Purpose: Say if the input shape is a vertex. | |
55 | returns Boolean | |
56 | is redefined; | |
57 | ||
58 | IsConstant(me) | |
59 | ---Purpose: Say if the Law is Constant. | |
60 | returns Boolean | |
61 | is redefined; | |
62 | ||
63 | ConcatenedLaw(me) | |
64 | ---Purpose: Give the law build on a concatened section | |
65 | returns SectionLaw from GeomFill | |
66 | is redefined; | |
67 | ||
68 | Continuity(me; Index : Integer; | |
69 | TolAngular : Real) | |
70 | returns Shape from GeomAbs | |
71 | is redefined; | |
72 | ||
73 | VertexTol(me; Index : Integer; | |
74 | Param : Real) | |
75 | returns Real | |
76 | is redefined; | |
77 | ||
78 | Vertex(me; Index : Integer; | |
79 | Param : Real) | |
80 | returns Vertex from TopoDS | |
81 | is redefined; | |
82 | ||
83 | D0(me:mutable; Param : Real; | |
84 | S : out Shape from TopoDS) | |
85 | is redefined; | |
86 | ||
87 | Init(me : mutable; P : SequenceOfReal from TColStd; | |
88 | B : Boolean from Standard ) is private; | |
89 | ||
90 | fields | |
91 | VFirst, VLast : Real; | |
92 | myShapes: SequenceOfShape from TopTools; | |
d7325741 J |
93 | myTrsfs: SequenceOfTrsf from GeomFill; |
94 | myParams: SequenceOfReal from TColStd; | |
7fd59977 | 95 | myEdges: HArray2OfShape from TopTools; |
96 | mySurface: BSplineSurface from Geom; | |
97 | end NSections; |