summaryrefslogtreecommitdiff
path: root/src/BOP/BOP_BuilderTools.cdl
blob: ae02127ce42de05e7f50d8dd367e5cc26a35c871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
-- File:	BOP_BuilderTools.cdl
-- Created:	Fri Nov  2 11:38:01 2001
-- Author:	Peter KURNEV
--		<pkv@irinox>
---Copyright:	 Matra Datavision 2001


class BuilderTools from BOP 

    ---Purpose: 
    	--  Some  handy tools used by classes    
	--  BOP_ShellShell, 
	--  BOP_ShellSolid, 
	--  BOP_SolidSolid  
	--  to build a result  

uses
  
    IndexedMapOfInteger from TColStd,  
     
    State     from TopAbs,  
    ShapeEnum from TopAbs, 
     
    Face from TopoDS, 
    Edge from TopoDS,   
     
    ListOfShape from TopTools, 
      
    StateOfShape from BooleanOperations, 
      
    IndexedDataMapOfIntegerIndexedMapOfInteger from BOPTColStd, 	
     
    CArray1OfSSInterference from BOPTools,  
     
    Operation            from BOP,
    ListOfConnexityBlock from BOP     
    
    
is

    StateToCompare(myclass; 
	    iRank :Integer from Standard; 
	    anOp  :Operation from BOP) 
	returns StateOfShape from BooleanOperations;  
    
    ToReverseSection(myclass; 
	    iRank :Integer from Standard; 
	    anOp  :Operation from BOP) 
	returns Boolean from Standard;   
	 
    ToReverseFace(myclass; 
	    iRank :Integer from Standard; 
	    anOp  :Operation from BOP) 
	returns Boolean from Standard;  
	 
    OrientSectionEdgeOnF1(myclass; 
	    aF1   :Face from TopoDS; 
	    aF2   :Face from TopoDS;  
    	    iRank :Integer from Standard;  
	    anOp  :Operation from BOP;
	    aE    :out Edge from TopoDS); 
	 
    IsSameDomainFaceWithF1(myclass; 
    	    nF1 :Integer from Standard; 
    	    nF2 :Integer from Standard; 
    	    aFFM:IndexedMapOfInteger from TColStd; 
	    aFFs:out CArray1OfSSInterference from BOPTools)  
	returns Boolean from Standard;     

    IsPartIN2DToKeep(myclass;  
    	    aSt   :State from TopAbs;
	    iRank :Integer from Standard;  
	    anOp  :Operation from BOP)	
	returns Boolean from Standard;   	 

    IsPartOn2dToKeep(myclass;  
    	    aSt   :State from TopAbs;
	    iRank :Integer from Standard;  
	    anOp  :Operation from BOP)	
	returns Boolean from Standard;  
	 
    DoMap(myclass;  
    	    aFFs  :out  CArray1OfSSInterference from BOPTools; 
    	    aFFMap:out  IndexedDataMapOfIntegerIndexedMapOfInteger from BOPTColStd);      

    MakeConnexityBlocks(myclass;  
    	    aLE        :  ListOfShape from TopTools;  
	    aType      :  ShapeEnum   from TopAbs;  
	    aLConBlks  : out ListOfConnexityBlock from BOP); 

end BuilderTools;