SilverScreen Solid Modeler

color_of_edge

color_of_edge

Previous topic Next topic  

color_of_edge

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

int color_of_edge ( OBJECT_NODE *obj, int i )

 

OBJECT_NODE *obj;   // pointer to SilverScreen object node

int          i;     // edge number

 



Synopsis

#include "ssnodes.h"

 

The color_of_edge function returns the color of the ith edge in the object pointed to by obj .

 

Parameters

obj is a pointer to a SilverScreen object node, as obtained by a call to get_bos . i is an edge number.

 

Return Value

The number returned is a color index. i.e. a number between 0 and 255

 

See Also

rgb_of_edge , color_to_rgb