Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
INSTANCEFACE(3)		MBK PHYSICAL UTILITY FUNCTIONS	       INSTANCEFACE(3)

NAME
       instanceface - returns the face of a connector in a placed instance

SYNOPSYS
       #include	"mph403.h"
       void *instanceface(modelface, symmetry)
       char modelface, symmetry;

PARAMETERS
       modelface	   Face	of a connector in its figure.

       symmetry		   Geometrical	operation applied to the instanciation
			   of the figure.

DESCRIPTION
       instanceface determines the orientation of a connector in  an  instance
       of its model.

EXAMPLE
       #include	"mph403.h"
       char channelFace(channelDir, i, c)
       char channelDir;
       phins_list *i;
       phcon_list *c;
       {
	  if (channelDir == VER)
	     switch (instanceface(c->ORIENT, i->TRANSF)) {
		case EAST :
		   return WEST;
		case WEST :
		   return EAST;
		default	:
		   return instanceface(c->ORIENT, i->TRANSF);
	     }
	  else
	     switch (instanceface(c->ORIENT, i->TRANSF)) {
		case NORTH :
		   return SOUTH;
		case SOUTH :
		   return NORTH;
		default	:
		   return instanceface(c->ORIENT, i->TRANSF);
	     }
       }

SEE ALSO
       mbk(1), phcon(3), phfig(3), phins(3).

ASIM/LIP6			October	1, 1997		       INSTANCEFACE(3)

NAME | SYNOPSYS | PARAMETERS | DESCRIPTION | EXAMPLE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=instanceface&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help