diff --git a/src/meshlab/mainwindow.h b/src/meshlab/mainwindow.h index 03cd2953d..9988ca7cc 100644 --- a/src/meshlab/mainwindow.h +++ b/src/meshlab/mainwindow.h @@ -82,7 +82,7 @@ public: inline static QString perBatchPrimitives() {return "MeshLab::System::perBatchPrimitives";} size_t minpolygonpersmoothrendering; - inline static QString minPolygonNumberPerSmoothRendering() { return "MeshLab::System::minPolygonNumberPerSmoothRendering"; } + inline static QString minFaceNumberPerSmoothRendering() { return "MeshLab::System::minFaceNumberPerSmoothRendering"; } std::ptrdiff_t maxTextureMemory; inline static QString maxTextureMemoryParam() {return "MeshLab::System::maxTextureMemory";} diff --git a/src/meshlab/mainwindow_Init.cpp b/src/meshlab/mainwindow_Init.cpp index 22266dd3f..ac1db6f1c 100644 --- a/src/meshlab/mainwindow_Init.cpp +++ b/src/meshlab/mainwindow_Init.cpp @@ -1329,7 +1329,7 @@ void MainWindowSetting::initGlobalParameterList(RichParameterList& gbllist) { gbllist.addParam(RichInt(maximumDedicatedGPUMem(), 350, "Maximum GPU Memory Dedicated to MeshLab (Mb)", "Maximum GPU Memory Dedicated to MeshLab (megabyte) for the storing of the geometry attributes. The dedicated memory must NOT be all the GPU memory presents on the videocard.")); gbllist.addParam(RichInt(perBatchPrimitives(), 100000, "Per batch primitives loaded in GPU", "Per batch primitives (vertices and faces) loaded in the GPU memory. It's used in order to do not overwhelm the system memory with an entire temporary copy of a mesh.")); - gbllist.addParam(RichInt(minPolygonNumberPerSmoothRendering(), 50000, "Default Face number per smooth rendering", "Minimum number of faces in order to automatically render a newly created mesh layer with the per vertex normal attribute activated.")); + gbllist.addParam(RichInt(minFaceNumberPerSmoothRendering(), 5000000, "Default Face number per smooth rendering", "Minimum number of faces in order to automatically render a newly created mesh layer with the per vertex normal attribute activated.")); // glbset->addParam(RichBool(perMeshRenderingToolBar(), true, "Show Per-Mesh Rendering Side ToolBar", "If true the per-mesh rendering side toolbar will be redendered inside the layerdialog.")); @@ -1343,7 +1343,7 @@ void MainWindowSetting::updateGlobalParameterList(const RichParameterList& rpl) { maxgpumem = (std::ptrdiff_t)rpl.getInt(maximumDedicatedGPUMem()) * (float)(1024 * 1024); perbatchprimitives = (size_t)rpl.getInt(perBatchPrimitives()); - minpolygonpersmoothrendering = (size_t)rpl.getInt(minPolygonNumberPerSmoothRendering()); + minpolygonpersmoothrendering = (size_t)rpl.getInt(minFaceNumberPerSmoothRendering()); highprecision = false; if (MeshLabScalarTest::doublePrecision()) highprecision = rpl.getBool(highPrecisionRendering());