Tango: doing mesh decimation only when texturing

This commit is contained in:
matlabbe
2017-02-05 18:04:22 -05:00
parent f7616f6e94
commit 3a9b725c0c
2 changed files with 2 additions and 2 deletions

View File

@@ -1578,7 +1578,7 @@ bool RTABMapApp::exportMesh(
if(mesh->polygons.size()) if(mesh->polygons.size())
{ {
if(optimizedDecimationFactor > 0.0f) if(textureSize > 0 && optimizedDecimationFactor > 0.0f)
{ {
#ifndef DISABLE_VTK #ifndef DISABLE_VTK
unsigned int count = mesh->polygons.size(); unsigned int count = mesh->polygons.size();

View File

@@ -484,7 +484,7 @@
<string name="pref_title_opt_depth">Reconstruction Depth</string> <string name="pref_title_opt_depth">Reconstruction Depth</string>
<string name="pref_summary_opt_depth">Lowering this parameter decreases reconstruction time, but geometry precision is lower.</string> <string name="pref_summary_opt_depth">Lowering this parameter decreases reconstruction time, but geometry precision is lower.</string>
<string name="pref_title_opt_decimation_factor">Mesh Decimation Factor</string> <string name="pref_title_opt_decimation_factor">Mesh Decimation Factor</string>
<string name="pref_summary_opt_decimation_factor">Reduce the number of the output polygons on plane areas by this factor. This also reduces texture projection time.</string> <string name="pref_summary_opt_decimation_factor">Reduce the number of the output polygons on plane areas by this factor. Only used when exporting with texture. This also reduces texture projection time.</string>
<string name="pref_title_opt_color_radius">Color Radius</string> <string name="pref_title_opt_color_radius">Color Radius</string>
<string name="pref_summary_opt_color_radius">Radius used to transfer nearest color from the point cloud to reconstructed mesh.</string> <string name="pref_summary_opt_color_radius">Radius used to transfer nearest color from the point cloud to reconstructed mesh.</string>
<string name="pref_title_opt_clean_white">Clean Mesh</string> <string name="pref_title_opt_clean_white">Clean Mesh</string>