From 73db4e01907eed2d55736a65b0f46303872f8e57 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Sun, 12 Apr 2015 06:14:08 +0000 Subject: [PATCH] added the possibility of selective rounding of certain vertex --- wrap/igl/miq_parametrization.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/wrap/igl/miq_parametrization.h b/wrap/igl/miq_parametrization.h index bd07d357..9ee0b9e8 100644 --- a/wrap/igl/miq_parametrization.h +++ b/wrap/igl/miq_parametrization.h @@ -72,6 +72,8 @@ public: bool round_singularities; //use the crease edges as feature or not bool crease_as_feature; + //true if roound selected vert + bool round_selected; MIQParameters() { @@ -80,6 +82,7 @@ public: directRound=true; round_singularities=true; crease_as_feature=false; + round_selected=true; stiffness=5; stiffness_iter=10; local_iter=5; @@ -151,6 +154,15 @@ private: std::vector extra_round; + if (MiqP.round_selected) + { + for (int i=0;i extra_round; - + //collect extra vertex selected that need to be rounded + if (MiqP.round_selected) + { + for (int i=0;i