Level of Detail Flags
From NFBSP
Everything on this page is theoretical. Using the algorithm below, it will accurately produce the count of rows in the Level of Detail table; however, it is very likely that this is wrong (especially the names of the flags). They most likely bear more meaning to the flags than what is currently known.
As long as the value is not equal to "None" or "0," the Level of Detail table will appear immediately after Sequence Groups (unless buffered) and immediately before Body Groups.
[edit]
C# Code
enum LevelOfDetailFlags :int { None = 0, TimesOne = 1, TimesTwo = 2, TimesFive = 4, PlusOne = 256, PlusTwo = 512, PlusFour = 1024 }
[edit]
Pseudocode for Retrieving LOD Length
temp = 0 if ( TimesOne ) temp = 1 if ( TimesTwo ) temp = 2 val = 0 if ( PlusOne ) val += 1 * temp if ( PlusTwo ) val += 2 * temp if ( PlusFour ) val += 4 * temp if ( TimesFive ) val *= 5
[edit]
