

int primitive_plane2 ( PRIM_NODE *prim, SS_COEF *coef )
PRIM_NODE *prim; // address of primitive node SS_COEF *coef; // address of plane structure to receive result



Synopsis 
#include "ssnodes.h"
The primitive_plane2 function calculates the plane equation of the primitive pointed to by prim . The plane is returned in the SS_COEF structure at plane . If the primitive is a member of a solid, then the plane is oriented so that it faces out.


Parameters 
prim is address of a PRIM_NODE structure, as obtained by get_prim . coef is the address of an SS_COEF structure that is to receive the plane equation.


Return Value 
primitive_plane2 stores the plane equation into coef if the coefficient could be computed, and returns 1; othewise the function returns 0.


Comments 
Note that the return values for this function are different from those returned in primitive_plane .


See Also 



