HC_Regenerate_LOD
-
void
HC_Regenerate_LOD(char const *segment, char const *options) - void HC_Regenerate_LOD(char const segment, char const options)
Throws away any existing LODs in the provided segment tree and regenerates them according to the supplied 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.
HC_Compute_Optimized_ShellParameters
segment: The segment that the LOD should be calculated for.
options: The initial lod generating options.