7fd59977 |
1 | -- File: TopOpeBRepDS_TOOL.cdl |
2 | -- Created: Mon Jan 25 14:23:13 1999 |
3 | -- Author: Xuan PHAM PHU |
4 | -- <xpu@poulopox.paris1.matra-dtv.fr> |
5 | ---Copyright: Matra Datavision 1999 |
6 | |
7 | class TOOL from TopOpeBRepDS |
8 | uses |
9 | Edge from TopoDS, |
10 | Shape from TopoDS, |
11 | ListOfShape from TopTools, |
12 | Config from TopOpeBRepDS, |
13 | HDataStructure from TopOpeBRepDS, |
14 | DataMapOfShapeListOfShapeOn1State from TopOpeBRepDS |
15 | is |
16 | |
17 | EShareG(myclass; HDS : HDataStructure; E: Edge from TopoDS; |
18 | lEsd : out ListOfShape from TopTools) |
19 | returns Integer; |
20 | -- Fills up <lEsd> with edges sharing geometric domain with <E>, |
21 | -- using interferences attached to <E>. |
22 | -- Returns <lEsd>'s length. |
23 | |
24 | ShareG(myclass; HDS : HDataStructure; is1,is2 : Integer) |
25 | returns Boolean; |
26 | -- Returns true if shapes <is1> and <is2> share geometric domain. |
27 | |
28 | GetEsd(myclass; HDS : HDataStructure; S : Shape; ie : Integer; iesd : out Integer) |
29 | returns Boolean; |
30 | -- Gets edge<iesd> in shape <S>, edge<ie> shares geometric domain with edge<iesd> |
31 | -- Returns true if <iesd> is found |
32 | |
33 | ShareSplitON(myclass; HDS : HDataStructure; MspON : DataMapOfShapeListOfShapeOn1State; |
34 | i1, i2 : Integer; spON : out Shape) |
35 | returns Boolean; |
36 | -- Gets <spON> splitON shared by shapes <i1> an <i2> (shapes same domain) |
37 | -- Returns true if <spON> is found. |
38 | |
39 | GetConfig(myclass; HDS : HDataStructure; MEspON : DataMapOfShapeListOfShapeOn1State; |
40 | ie, iesd : Integer; conf : out Integer) |
41 | returns Boolean; |
42 | -- Gives relative orientation conf = 1 : SAMEORIENTED |
43 | -- 2 : DIFFORIENTED. |
44 | -- edges <ie>, <iesd> are same domain. |
45 | -- Returns true if <conf> is found. |
46 | |
47 | end TOOL; |