1 -- Created on: 1997-08-22
2 -- Created by: Prestataire Mary FABIEN
3 -- Copyright (c) 1997-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 EdgeConnector from BRepAlgo inherits TShared from MMgt
19 ---Purpose: Used by DSAccess to reconstruct an EdgeSet of connected edges. The result produced by
20 -- MakeBlock is a list of non-standard TopoDS_wire,
21 -- which can present connexions of edge of order > 2
22 -- in certain vertex. The method IsWire
23 -- indicates standard/non-standard character of all wire produced.
27 ListOfShape from TopTools,
28 MapOfShape from TopTools,
31 HDataStructure from TopOpeBRepDS,
32 ShapeSet from TopOpeBRepBuild,
33 BlockBuilder from TopOpeBRepBuild,
34 DataMapOfShapeBoolean from BRepAlgo
38 Create returns EdgeConnector from BRepAlgo;
40 Add(me : mutable; e : Edge from TopoDS);
43 Add(me : mutable; LOEdge : in out ListOfShape from TopTools);
46 AddStart(me : mutable; e : Shape from TopoDS);
49 AddStart(me : mutable; LOEdge : in out ListOfShape from TopTools);
52 ClearStartElement(me : mutable);
54 MakeBlock(me : mutable)
55 ---Purpose: returns a list of wire non standard
57 returns ListOfShape from TopTools;
63 ---Purpose: returns true if proceeded to MakeBlock()
64 returns Boolean from Standard;
66 IsWire(me : mutable; W : Shape from TopoDS)
68 ---Purpose: returns true if W is a Wire standard.
69 -- W must belong to the list returned by MakeBlock.
70 returns Boolean from Standard;
74 myListeOfEdge : ListOfShape from TopTools;
75 myListeOfStartEdge : ListOfShape from TopTools;
76 myResultMap : DataMapOfShapeBoolean from BRepAlgo;
77 myResultList : ListOfShape from TopTools;
78 myBlockB : BlockBuilder from TopOpeBRepBuild;
79 myIsDone : Boolean from Standard;
81 end EdgeConnector from BRepAlgo;