1 -- File: SMDS_MeshPyramid.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
8 class MeshPyramid from SMDS inherits MeshVolume from SMDS
16 ConstructionError from Standard
20 Create (ID,idnode1,idnode2,idnode3,idnode4,idnode5: Integer) returns mutable MeshPyramid;
21 ---Purpose: constructor for a pyramid
24 GetFaceDefinedByNodes(me; rank: Integer; idnode : Address; nb: out Integer)
26 ---Purpose: returns the idnodes of the ith face (rank) of the volume
27 -- rank must be comprised between 1 and myNbConnections included.
29 GetEdgeDefinedByNodes(me; rank: Integer; idnode1 : out Integer; idnode2: out Integer)
31 ---Purpose: returns the idnodes of the ith edge (rank) of the volume
32 -- rank must be comprised between 1 and myNbConnections included.
34 ComputeKey(me: mutable);
35 ---Purpose: compute the ID of the volume based on the id's of its
40 SetConnections(me: mutable; idnode1,idnode2,idnode3,idnode4,idnode5: Integer) is private;
42 GetConnections(me) returns Address is redefined static;
45 GetConnection(me; rank: Integer) returns Integer is redefined static;
48 NbEdges(me) returns Integer
52 NbFaces(me) returns Integer
56 NodesOfFace(myclass; rankface,ranknode: Integer)
58 ---Purpose: returns the rank node in mynodes. Useful to extract faces from volume
61 NodesOfEdge(me; rankedge: Integer; ranknode: Integer) returns Integer;
66 myNodes : Integer [5];