instanceface.3alc man page

instanceface — returns the face of a connector in a placed instance

Synopsis

#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 instantiation 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).

Info

October 1, 1997 ASIM/LIP6 MBK PHYSICAL UTILITY FUNCTIONS