|
||
SS_FACET_HANDLE prim_facets_collect(OBJECT_NODE *obj, PRIM_NODE *prim)
OBJECT_NODE *obj; // A pointer to the OBJECT_NODE parent of prim PRIM_NODE *prim; // A pointer to a PRIM_NODE
|
|
|||
Synopsis |
#include "silver.h" #include "ssnodes.h"
The prim_facets_collect function facets a primitive, that is it represents a primitive by an approximation of lines.
|
|
||
Parameters |
obj is the object entity that contains prim prim is the primitive that is to be faceted
|
|
||
Return Value |
prim_facets_collect returns a handle that can be used to retrieve information about prim's facets if successful, otherwise it returns NULL
|
|
||
Remarks |
You must call prim_facets_release with a handle you obtained from prim_facets_collect when you are finished with it. If the primitive has holes, those facets will also be retrieved.
|
|
||
See Also |
prim_facet_get, prim_facets_release, prim_facets_count
|
|
||
Example |
The following example allows the user to select a circle from the current drawing, then generates an object with a prefix of "facet" in the root block that contains the circles facets:
|
|