ExportOptionsModifier.SimplifyPercentages

This page contains reference documentation for the SimplifyPercentages member. This member sets or gets the output terrain tile simplification PERCENT.

Declaration

double[] SimplifyPercentages;

Examples

Examples are as follows:

if( newExportOptionsModifier.LODCount > 1 )
{
   // Initialize the simplification percent.

   int simplify = 0;

   // Determine how the simplification increment by dividing 100 by
   // the total number of levels-of-detail.

   int simplifyIncrement = 100 / newExportOptionsModifier.LODCount;

   // Loop and increment based on the number of levels-of-detail.

   for( int lod = 0; lod < newExportOptionsModifier.LODCount; ++lod )
   {
      newExportOptionsModifier.SimplifyPercentages[lod] = simplify;
      simplify += simplifyIncrement;
   }
}

Working Sample Code

For sample code: