|
||
BOOLEAN prim_facets_build_cache(OBJECT_NODE *obj, USINT32 cache_flags);
OBJECT_NODE *obj; // A pointer to an OBJECT_NODE USINT32 cache_flags; // An unsigned integer value
|
|
|||
Synopsis |
#include "silver.h"
The prim_facets_build_cache function builds a facet-cache for an object. This can substantially increase the speed of faceting when many primitives in the same object are being faceted together.
|
|
||
Parameters |
obj is a pointer to the OBJECT_NODE to which the cache is applicable cache_flags is reserved for future use and should be set to zero
|
|
||
Return Value |
prim_facets_build_cache returns TRUE if the cache was built successfully, and FALSE otherwise
|
|
||
Remarks |
You must call prim_facets_free_cache when you are finished faceting primitives in the object. Only one facet cache may be active at a time, and calling build again before calling prim_facets_free_cache will destroy the previous cache. Use of the cache is optional.
|
|
||
See Also |
prim_facets_collect, prim_facet_get, prim_facets_release, prim_facets_free_cache
|
|
||
Example |
The following code shows how to use a facets cache to facet every primitive of an object. The 'obj' variable is assumed to have been set to an object entity:
|
|