1 -- Created on: 1998-08-17
2 -- Created by: Philippe MANGIN
3 -- Copyright (c) 1998-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
23 class ShapeLaw from BRepFill inherits SectionLaw from BRepFill
25 ---Purpose: Build Section Law, with an Vertex, or an Wire
29 SectionLaw from GeomFill,
30 HArray1OfSectionLaw from GeomFill,
31 HArray1OfShape from TopTools,
40 Create (V: Vertex from TopoDS;
41 Build : Boolean = Standard_True )
42 ---Purpose: Construct an constant Law
43 returns ShapeLaw from BRepFill;
45 Create (W:Wire from TopoDS;
46 Build : Boolean = Standard_True)
47 ---Purpose: Construct an constant Law
48 returns ShapeLaw from BRepFill;
50 Create (W: Wire from TopoDS;
52 Build : Boolean = Standard_True)
53 ---Purpose: Construct an evolutive Law
54 returns ShapeLaw from BRepFill;
57 ---Purpose: Say if the input shape is a vertex.
62 ---Purpose: Say if the Law is Constant.
67 ---Purpose: Give the law build on a concaneted section
68 returns SectionLaw from GeomFill
71 Continuity(me; Index : Integer;
73 returns Shape from GeomAbs
76 VertexTol(me; Index : Integer;
81 Vertex(me; Index : Integer;
83 returns Vertex from TopoDS
86 D0(me:mutable; Param : Real;
87 S : out Shape from TopoDS)
90 Edge(me; Index : Integer)
91 ---C++: return const &
93 returns Edge from TopoDS;
95 Init(me : mutable; B : Boolean) is private;
98 myShape: Shape from TopoDS;
99 myEdges: HArray1OfShape from TopTools;
100 TheLaw : Function from Law;
101 vertex : Boolean from Standard is protected;