From 2a47647ad18b8a7c12445f045afd5bfe75eb7e4a Mon Sep 17 00:00:00 2001 From: Luigi Malomo malomo Date: Sun, 8 Nov 2009 01:55:47 +0000 Subject: [PATCH] Added log info to Basic Parametrization filter (triangles catheti px size) --- src/meshlabplugins/filter_texture/filter_texture.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/meshlabplugins/filter_texture/filter_texture.cpp b/src/meshlabplugins/filter_texture/filter_texture.cpp index b0de24b01..ff71a586c 100644 --- a/src/meshlabplugins/filter_texture/filter_texture.cpp +++ b/src/meshlabplugins/filter_texture/filter_texture.cpp @@ -406,6 +406,8 @@ bool FilterTexturePlugin::applyFilter(QAction *filter, MeshModel &m, RichParamet } } assert(idx == faceNo); + Log(GLLogStream::FILTER, "Biggest triangle's catheti are %.2f px long", (cache[0].P(0)-cache[0].P(2)).Norm() * textDim); + Log(GLLogStream::FILTER, "Smallest triangle's catheti are %.2f px long", (cache[cache.size()-1].P(0)-cache[cache.size()-1].P(2)).Norm() * textDim); } else @@ -473,6 +475,7 @@ bool FilterTexturePlugin::applyFilter(QAction *filter, MeshModel &m, RichParamet } } } + Log(GLLogStream::FILTER, "Triangles catheti are %.2f px long", (1.0/sideDim-border-bordersq2)*textDim); } } break;