From 3a9b725c0c2a77e4839c26fd16b83a81e16518f7 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Sun, 5 Feb 2017 18:04:22 -0500 Subject: [PATCH] Tango: doing mesh decimation only when texturing --- app/android/jni/RTABMapApp.cpp | 2 +- app/android/res/values/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/android/jni/RTABMapApp.cpp b/app/android/jni/RTABMapApp.cpp index 2c1118dd..5070c7fd 100644 --- a/app/android/jni/RTABMapApp.cpp +++ b/app/android/jni/RTABMapApp.cpp @@ -1578,7 +1578,7 @@ bool RTABMapApp::exportMesh( if(mesh->polygons.size()) { - if(optimizedDecimationFactor > 0.0f) + if(textureSize > 0 && optimizedDecimationFactor > 0.0f) { #ifndef DISABLE_VTK unsigned int count = mesh->polygons.size(); diff --git a/app/android/res/values/strings.xml b/app/android/res/values/strings.xml index 071620cc..eafae3b1 100644 --- a/app/android/res/values/strings.xml +++ b/app/android/res/values/strings.xml @@ -484,7 +484,7 @@ Reconstruction Depth Lowering this parameter decreases reconstruction time, but geometry precision is lower. Mesh Decimation Factor - Reduce the number of the output polygons on plane areas by this factor. This also reduces texture projection time. + 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. Color Radius Radius used to transfer nearest color from the point cloud to reconstructed mesh. Clean Mesh