|
||
SS_TRIANGLE_HANDLE prim_triangles_collect(OBJECT_NODE *obj, PRIM_NODE *prim, USINT32 flags);
OBJECT_NODE *obj; // A pointer to the OBJECT_NODE parent of prim PRIM_NODE *prim; // A pointer to a PRIM_NODE USINT32 flags; // An unsigned integer value
|
|
|||
Synopsis |
#include "silver.h"
The prim_triangles_collect function triangulates a primitive, that is it represents a primitive by an approximation of triangles.
|
|
||
Parameters |
obj is the object entity that contains prim
prim is the primitive that is to be triangulated
flags is reserved for future use and should be zero
|
|
||
Return Value |
prim_triangles_collect returns a handle that can be used to retrieve information about prim's triangle approximation if successful, otherwise it returns NULL
|
|
||
Remarks |
You must call prim_triangles_release with a handle you obtained from prim_triangles_collect when you are finished with it.
If the primitive has holes, those holes will be represented in the approximation
|
|
||
See Also |
prim_triangle_get, prim_triangles_count, prim_triangles_release
|
|
||
Example |
The following example allows the user to select a polygon from the current drawing, then generates an object with a prefix of "triangle" in the root block that contains the polygons triangulation:
|
|
||
|
|