Scroll to navigation

INSTANCEFACE(3) MBK PHYSICAL UTILITY FUNCTIONS INSTANCEFACE(3)

NAME

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

ORIGIN

This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Université Pierre et Marie CURIE, in Paris, France.

Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr

SYNOPSYS

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

PARAMETERS

Face of a connector in its figure.
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).

BUG REPORT

This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.

October 1, 1997 ASIM/LIP6