1 -- Created on: 1998-07-02
2 -- Created by: Joelle CHAUVET
3 -- Copyright (c) 1998-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and / or modify it
9 -- under the terms of the GNU Lesser General Public 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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class CompatibleWires from BRepFill
19 ---Purpose: Constructs a sequence of Wires agreed each other
20 -- so that the surface passing through these sections
26 SequenceOfShape from TopTools,
27 ListOfShape from TopTools,
28 DataMapOfShapeListOfShape from TopTools
31 ConstructionError from Standard,
32 NoSuchObject from Standard
36 Create returns CompatibleWires from BRepFill;
38 Create ( Sections : SequenceOfShape from TopTools)
39 returns CompatibleWires from BRepFill;
42 Sections : SequenceOfShape from TopTools)
44 ConstructionError from Standard
47 SetPercent ( me : in out; percent : Real = 0.01)
51 WithRotation : Boolean = Standard_True)
52 ---Purpose: Performs CompatibleWires According to the orientation
53 -- and the origin of each other
55 ConstructionError from Standard
59 returns Boolean from Standard
64 Shape(me) returns SequenceOfShape from TopTools
65 ---Purpose: returns the generated sequence.
66 ---C++ : return const &
69 GeneratedShapes (me ; SubSection : Edge from TopoDS)
70 ---Purpose: Returns the shapes created from a subshape
71 -- <SubSection> of a section.
73 ---C++ : return const &
74 returns ListOfShape from TopTools
78 ---C++: return const &
79 returns DataMapOfShapeListOfShape from TopTools
82 SameNumberByPolarMethod (me : in out;
83 WithRotation : Boolean = Standard_True)
84 ---Purpose: Insert cutting points on closed wires to have same
85 -- number of edges. The sequence of shapes must
86 -- be a sequence of wires.
89 SameNumberByACR (me : in out; report : Boolean from Standard )
90 ---Purpose: Insert cutting points on open wires to have same
91 -- number of edges. The sequence of shapes must
92 -- be a sequence of wires.
95 ComputeOrigin (me : in out; polar : Boolean from Standard )
96 ---Purpose: Computes origins and orientation on closed wires to
97 -- avoid twisted results. The sequence of shapes must
98 -- be a sequence of wires. <polar> must be true
99 -- if SameNumberByPolarMethod was used before.
102 SearchOrigin (me : in out)
103 ---Purpose: Computes origins and orientation on open wires to
104 -- avoid twisted results. The sequence of shapes must
105 -- be a sequence of wires.
111 myInit : SequenceOfShape from TopTools;
112 myWork : SequenceOfShape from TopTools;
113 myPercent : Real from Standard;
114 myDegen1 : Boolean from Standard;
115 myDegen2 : Boolean from Standard;
116 myIsDone : Boolean from Standard;
117 myMap : DataMapOfShapeListOfShape from TopTools;