NVIDIA IndeX API nvidia_logo_transpbg.gif Up
nv::index::IConfig_settings::Subdivision_config Struct Reference

Configuration settings for spatial subdivision. More...

#include <iconfig_settings.h>

Public Types

enum  Subdivision_mode {
  SUBDIVIDE_USING_GRID = 0 ,
  SUBDIVIDE_USING_KD_TREE = 1
}
 Spatial subdivision modes. More...
 

Public Attributes

Subdivision_mode subdivision_mode
 Spatial subdivision mode used for complete scene. More...
 
mi::Uint32 subdivision_part_count
 Number of parts the scene should be subdivided. Used in adaptive subdivision modes like SUBDIVIDE_USING_KD_TREE. More...
 
bool suppress_x_axis_subdivision
 Suppress subdivision of X-axis. More...
 
bool suppress_y_axis_subdivision
 Suppress subdivision of Y-axis. More...
 
bool suppress_z_axis_subdivision
 Suppress subdivision of Z-axis. More...
 
bool save_subdivision
 Save generated subdivision. This can be used to avoid subdivision work on later scene loads. More...
 

Detailed Description

Configuration settings for spatial subdivision.

Member Enumeration Documentation

 Subdivision_mode

Spatial subdivision modes.

Enumerator
SUBDIVIDE_USING_GRID 

Subdivide scene using a regular 3D grid. The grid cell size is based on subcube size settings.

SUBDIVIDE_USING_KD_TREE 

Subdivide scene adaptively into number_adaptive_parts, using a Kd-tree.

        Volume and surface importers should support bounding box estimation for a balanced load 
        distribution to parts. The estimation should be proportional to the number of primitives in the bounding box,
        like cells, faces or particles. If importers do not support estimation, they should return a value of 1
        for non-empty bounding boxes, and a value of 0 for empty bounding boxes.
        The subdivision will then be based on the volume (and other scene elements). 

Member Data Documentation

 save_subdivision

bool nv::index::IConfig_settings::Subdivision_config::save_subdivision

Save generated subdivision. This can be used to avoid subdivision work on later scene loads.

 subdivision_mode

Subdivision_mode nv::index::IConfig_settings::Subdivision_config::subdivision_mode

Spatial subdivision mode used for complete scene.

 subdivision_part_count

mi::Uint32 nv::index::IConfig_settings::Subdivision_config::subdivision_part_count

Number of parts the scene should be subdivided. Used in adaptive subdivision modes like SUBDIVIDE_USING_KD_TREE.

 suppress_x_axis_subdivision

bool nv::index::IConfig_settings::Subdivision_config::suppress_x_axis_subdivision

Suppress subdivision of X-axis.

 suppress_y_axis_subdivision

bool nv::index::IConfig_settings::Subdivision_config::suppress_y_axis_subdivision

Suppress subdivision of Y-axis.

 suppress_z_axis_subdivision

bool nv::index::IConfig_settings::Subdivision_config::suppress_z_axis_subdivision

Suppress subdivision of Z-axis.


The documentation for this struct was generated from the following file: