1 -- Created on: 1998-06-03
2 -- Created by: data exchange team
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 under
9 -- the terms of the GNU Lesser General Public License 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 WireVertex from ShapeFix
19 ---Purpose: Fixing disconnected edges in the wire
20 -- Fixes vertices in the wire on the basis of pre-analysis
21 -- made by ShapeAnalysis_WireVertex (given as argument).
22 -- The Wire has formerly been loaded in a ShapeExtend_WireData.
26 WireData from ShapeExtend,
27 WireVertex from ShapeAnalysis
31 Create returns WireVertex from ShapeFix;
33 Init (me: in out; wire: Wire from TopoDS; preci: Real);
34 ---Purpose: Loads the wire, ininializes internal analyzer
35 -- (ShapeAnalysis_WireVertex) with the given precision,
36 -- and performs analysis
38 Init (me: in out; sbwd: WireData from ShapeExtend; preci: Real);
39 ---Purpose: Loads the wire, ininializes internal analyzer
40 -- (ShapeAnalysis_WireVertex) with the given precision,
41 -- and performs analysis
43 Init (me: in out; sawv: WireVertex from ShapeAnalysis);
44 ---Purpose: Loads all the data on wire, already analysed by
45 -- ShapeAnalysis_WireVertex
47 Analyzer (me) returns WireVertex from ShapeAnalysis;
48 ---C++: return const &
49 ---Purpose: returns internal analyzer
51 WireData (me) returns WireData from ShapeExtend;
52 ---C++: return const &
53 ---Purpose: returns data on wire (fixed)
54 ---Remark : calls Analyzer().WireData()
56 Wire (me) returns Wire from TopoDS;
57 ---Purpose: returns resulting wire (fixed)
58 ---Remark : calls Analyzer().WireData()->Wire()
60 FixSame (me: in out) returns Integer;
61 ---Purpose: Fixes "Same" or "Close" status (same vertex may be set,
62 -- without changing parameters)
63 -- Returns the count of fixed vertices, 0 if none
65 Fix (me: in out) returns Integer;
66 ---Purpose: Fixes all statuses except "Disjoined", i.e. the cases in which a
67 -- common value has been set, with or without changing parameters
68 -- Returns the count of fixed vertices, 0 if none
72 myAnalyzer: WireVertex from ShapeAnalysis;