SL_SpatialMappingParameters Struct Reference

Data Fields

float resolution_meter
 Spatial mapping resolution in meters. Should fit allowed_resolution (Default is 0.05f).
 
float range_meter
 Depth range in meters. Can be different from the value set by setDepthMaxRangeValue. Set to 0 by default. In this case, the range is computed from resolution_meter and from the current internal parameters to fit your application.
 
bool save_texture
 Set to true if you want to be able to apply the texture to your mesh after its creation. More...
 
bool use_chunk_only
 Set to false if you want to ensure consistency between the mesh and its inner chunk data (default is false). More...
 
int max_memory_usage
 The maximum CPU memory (in MB) allocated for the meshing process (default is 2048).
 
bool reverse_vertex_order
 Specify if the order of the vertices of the triangles needs to be inverted. If your display process does not handle front and back face culling, you can use this to correct it. More...
 
enum SL_SPATIAL_MAP_TYPE map_type
 The type of spatial map to be created. This dictates the format that will be used for the mapping(e.g. mesh, point cloud). See SPATIAL_MAP_TYPE.
 

Field Documentation

◆ save_texture

bool SL_SpatialMappingParameters::save_texture

Set to true if you want to be able to apply the texture to your mesh after its creation.

Note
This option will consume more memory.
This option is only available for SPATIAL_MAP_TYPE_MESH

◆ use_chunk_only

bool SL_SpatialMappingParameters::use_chunk_only

Set to false if you want to ensure consistency between the mesh and its inner chunk data (default is false).

Note
Updating the mesh is time-consuming. Setting this to true results in better performance.

◆ reverse_vertex_order

bool SL_SpatialMappingParameters::reverse_vertex_order

Specify if the order of the vertices of the triangles needs to be inverted. If your display process does not handle front and back face culling, you can use this to correct it.

Note
This option is only available for SPATIAL_MAP_TYPE_MESH