Salome HOME
NRI : First integration.
[modules/smesh.git] / src / SMDS / SMDS_MeshHexahedron.cdl
1 -- File:        SMDS_MeshHexahedron.cdl
2 -- Created:     Wed Jan 23 16:17:22 2002
3 -- Author:      Jean-Michel BOULCOURT
4 --              <jmb@coulox.paris1.matra-dtv.fr>
5 ---Copyright:    Matra Datavision 2002
6
7
8 class MeshHexahedron from SMDS inherits MeshVolume from SMDS
9
10         ---Purpose: 
11
12 uses
13   MeshElement from SMDS
14
15     
16 raises 
17   ConstructionError   from Standard
18
19 is
20
21
22     Create (ID,idnode1,idnode2,idnode3,idnode4,idnode5,idnode6,idnode7,idnode8: Integer) 
23     returns mutable MeshHexahedron;
24         ---Purpose: constructor for a hexaedra
25
26     GetEdgeDefinedByNodes(me; rank: Integer; idnode1 : out Integer; idnode2: out Integer) 
27     is redefined static;
28     ---Purpose: returns the idnodes of the ith edge (rank) of the volume
29     --          rank must be comprised between 1 and myNbConnections included.
30     
31     GetFaceDefinedByNodes(me; rank: Integer; idnode : Address; nb: out Integer) 
32     is redefined static;
33     ---Purpose: returns the idnodes of the ith face (rank) of the volume
34     --          rank must be comprised between 1 and myNbConnections included.
35     
36     ComputeKey(me: mutable) is redefined static;
37     ---Purpose: compute the  ID of the volume  based on the  id's of its
38     --          bounding nodes
39     ---C++: inline
40
41     SetConnections(me: mutable; idnode1,idnode2,idnode3,idnode4,idnode5,idnode6,idnode7,idnode8: Integer) 
42     is private;
43
44     GetConnections(me) returns Address is redefined static;
45     ---C++: inline
46
47     GetConnection(me; rank: Integer) returns Integer is redefined static;
48     ---C++: inline
49
50     NbEdges(me) returns Integer
51     is redefined static;
52     ---C++: inline
53
54     NbFaces(me) returns Integer
55     is redefined static;
56     ---C++: inline
57
58     NodesOfFace(myclass; rankface,ranknode: Integer) 
59     returns Integer;
60     ---Purpose: returns the rank node in mynodes. Useful to extract faces from volume
61     --          
62     
63     NodesOfEdge(me;  rankedge: Integer; ranknode: Integer) returns Integer;
64
65 fields
66     
67     myNodes : Integer [8];
68
69 end MeshHexahedron;