Functions | |
void | Regenerate_LOD (const char *segment, const char *options) |
void | Regenerate_LOD_By_Key (HC_KEY segKey, const char *options) |
void Regenerate_LOD | ( | const char * | segment, |
const char * | options | ||
) |
Throws away any existing LODs in the provided segment tree and regenerates them according to the supplied options.
segment | - The segment that the LOD should be calculated for. |
options | - The initial lod generating options. |
This function is used to force 3dGS to regenerate LODs in the provided segment tree.
The options string accepts the lod options of Set_Rendering_Options() that relate to generation: ratio, min triangle count, levels, algorithm, collapse duplicate vertices, tolerance, usefulness heuristic, usefulness cutoff and mode. In most cases, these values can be overridden by child segments. The one exception to that rule is that settings become locked at the level of the first "mode=segment" setting (either in the initial settings passed into this function or set on a segment).
So that the output from Show_One_Net_Rendering_Option() with "level of detail options" can be used directly, any lod option that relates to display -- as opposed to generation (e.g. "clamp"), is silently ignored.
void Regenerate_LOD_By_Key | ( | HC_KEY | segKey, |
const char * | options | ||
) |
Similar to Regenerate_LOD(), but operates on an object referenced by an HC_KEY.
segKey | - The key to the segment that the LOD should be calculated for. |
options | - The default lod generating options. |
No additional details. See Regenerate_LOD()