Commit 2fc1edbb authored by Jan Möbius's avatar Jan Möbius

Smoother extension for respecting features

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5349 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2631ef22
...@@ -40,6 +40,7 @@ class SmootherObject : public PerObjectData ...@@ -40,6 +40,7 @@ class SmootherObject : public PerObjectData
public: public:
SmootherObject(TriMesh* _mesh); SmootherObject(TriMesh* _mesh);
~SmootherObject(); ~SmootherObject();
OpenMesh::Smoother::JacobiLaplaceSmootherT< TriMesh >* smoother; OpenMesh::Smoother::JacobiLaplaceSmootherT< TriMesh >* smoother;
}; };
...@@ -153,7 +153,8 @@ slot_smooth() ...@@ -153,7 +153,8 @@ slot_smooth()
emit log(LOGWARN , "Unable to read distance error from LineEdit"); emit log(LOGWARN , "Unable to read distance error from LineEdit");
} }
data->smoother->initialize(component,continuity); data->smoother->initialize(component,continuity );
data->smoother->skip_features(tool_->respectFeatures->isChecked());
data->smoother->smooth( tool_->sB_iter->value() ); data->smoother->smooth( tool_->sB_iter->value() );
......
...@@ -164,6 +164,13 @@ ...@@ -164,6 +164,13 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="QCheckBox" name="respectFeatures" >
<property name="text" >
<string>Respect Features</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment