1INSTANCEFACE(3)         MBK PHYSICAL UTILITY FUNCTIONS         INSTANCEFACE(3)
2
3
4

NAME

6       instanceface - returns the face of a connector in a placed instance
7

SYNOPSIS

9       #include "mph403.h"
10       void ∗instanceface(modelface, symmetry)
11       char modelface, symmetry;
12

PARAMETERS

14       modelface           Face of a connector in its figure.
15
16       symmetry            Geometrical  operation applied to the instantiation
17                           of the figure.
18

DESCRIPTION

20       instanceface determines the orientation of a connector in  an  instance
21       of its model.
22

EXAMPLE

24       #include "mph403.h"
25       char channelFace(channelDir, i, c)
26       char channelDir;
27       phins_list *i;
28       phcon_list *c;
29       {
30          if (channelDir == VER)
31             switch (instanceface(c->ORIENT, i->TRANSF)) {
32                case EAST :
33                   return WEST;
34                case WEST :
35                   return EAST;
36                default :
37                   return instanceface(c->ORIENT, i->TRANSF);
38             }
39          else
40             switch (instanceface(c->ORIENT, i->TRANSF)) {
41                case NORTH :
42                   return SOUTH;
43                case SOUTH :
44                   return NORTH;
45                default :
46                   return instanceface(c->ORIENT, i->TRANSF);
47             }
48       }
49

SEE ALSO

51       mbk(1), phcon(3), phfig(3), phins(3).
52
53
54
55
56
57
58ASIM/LIP6                       October 1, 1997                INSTANCEFACE(3)
Impressum