SilverScreen Solid Modeler

get_prim

get_prim

Previous topic Next topic  

get_prim

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

PRIM_NODE *get_prim ( char *path, OBJECT_NODE **obj )

 

char         *path;        // path name of primitive

OBJECT_NODE **obj;         // address of pointer to object structure

 

 




Synopsis

#include "ssnodes.h"

 

The get_prim function returns a pointer to the primitive located at path . It also sets obj to the object node that contains the primitive.

 

 

Parameters

path is a null-terminated string that contains the name of the primitive. obj is the address of a pointer to an OBJECT_NODE that is to receive the object structure address.

 

 

Return Value

get_prim returns 1 if the specified primitive is found, and obj is updated; otherwise get_prim returns 0.

 

 

Comments

The pointer returned is a direct pointer into the SilverScreen drawing database.

 

 

See Also

get_bos