SilverScreen Solid Modeler

rgb_of_edge

rgb_of_edge

Previous topic Next topic  

rgb_of_edge

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

void rgb_of_edge ( OBJECT_NODE *obj, int i, int *r, int *g, int *b )

 

OBJECT_NODE *obj;      // object structure pointer

int          i;        // edge number in object

int         *r;        // address of integer to receive red value

int         *g;        // address of integer to receive green value

int         *b;        // address of integer to receive blue value

 

 




Synopsis

#include "ssnodes.h"

 

The rgb_of_edge function retrieves the red, green and blue values for the ith edge of object obj . These values are returned stored into the integers at r , g , and b .

 

 

Parameters

obj is the address of of an object pointer, as obtained via get_bos . i is an integer specifying the edge number in the edge list of obj . r , g and b are all addresses of integers that are to receive the color values.

 

 

Return Value

none.

 

 

See Also

color_of_edge, get_bos