Commit 5e22b71f authored by Jan Möbius's avatar Jan Möbius
Browse files

Moved to new infomeshobject

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11951 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b1f37771
...@@ -134,7 +134,7 @@ void IsotropicRemesherPlugin::slotSetMinLength() ...@@ -134,7 +134,7 @@ void IsotropicRemesherPlugin::slotSetMinLength()
bool first = true; bool first = true;
bool ok; bool ok;
emit functionExists( "info" , "minEdgeLength(int)", ok ) ; emit functionExists( "infomeshobject" , "minEdgeLength(int)", ok ) ;
if (!ok) if (!ok)
return; return;
...@@ -143,11 +143,11 @@ void IsotropicRemesherPlugin::slotSetMinLength() ...@@ -143,11 +143,11 @@ void IsotropicRemesherPlugin::slotSetMinLength()
if (first) if (first)
{ {
current = RPC::callFunctionValue<double>("info" , "minEdgeLength",o_it->id() ); current = RPC::callFunctionValue<double>("infomeshobject" , "minEdgeLength",o_it->id() );
first = false; first = false;
} }
else else
current = qMin (current, RPC::callFunctionValue<double>("info" , "minEdgeLength",o_it->id() )); current = qMin (current, RPC::callFunctionValue<double>("infomeshobject" , "minEdgeLength",o_it->id() ));
} }
...@@ -161,7 +161,7 @@ void IsotropicRemesherPlugin::slotSetMaxLength() ...@@ -161,7 +161,7 @@ void IsotropicRemesherPlugin::slotSetMaxLength()
bool first = true; bool first = true;
bool ok; bool ok;
emit functionExists( "info" , "maxEdgeLength(int)", ok ) ; emit functionExists( "infomeshobject" , "maxEdgeLength(int)", ok ) ;
if (!ok) if (!ok)
return; return;
...@@ -170,11 +170,11 @@ void IsotropicRemesherPlugin::slotSetMaxLength() ...@@ -170,11 +170,11 @@ void IsotropicRemesherPlugin::slotSetMaxLength()
if (first) if (first)
{ {
current = RPC::callFunctionValue<double>("info" , "maxEdgeLength",o_it->id() ); current = RPC::callFunctionValue<double>("infomeshobject" , "maxEdgeLength",o_it->id() );
first = false; first = false;
} }
else else
current = qMax (current, RPC::callFunctionValue<double>("info" , "maxEdgeLength",o_it->id() )); current = qMax (current, RPC::callFunctionValue<double>("infomeshobject" , "maxEdgeLength",o_it->id() ));
} }
...@@ -188,7 +188,7 @@ void IsotropicRemesherPlugin::slotSetMeanLength() ...@@ -188,7 +188,7 @@ void IsotropicRemesherPlugin::slotSetMeanLength()
int div = 0; int div = 0;
bool ok; bool ok;
emit functionExists( "info" , "edgeCount(int)", ok ) ; emit functionExists( "infomeshobject" , "edgeCount(int)", ok ) ;
if (!ok) if (!ok)
return; return;
...@@ -196,9 +196,9 @@ void IsotropicRemesherPlugin::slotSetMeanLength() ...@@ -196,9 +196,9 @@ void IsotropicRemesherPlugin::slotSetMeanLength()
o_it != PluginFunctions::objectsEnd(); ++o_it) { o_it != PluginFunctions::objectsEnd(); ++o_it) {
current += RPC::callFunctionValue<int> ("info" , "edgeCount",o_it->id()) * current += RPC::callFunctionValue<int> ("infomeshobject" , "edgeCount",o_it->id()) *
RPC::callFunctionValue<double>("info" , "meanEdgeLength",o_it->id() ); RPC::callFunctionValue<double>("infomeshobject" , "meanEdgeLength",o_it->id() );
div += RPC::callFunctionValue<int> ("info" , "edgeCount",o_it->id() ); div += RPC::callFunctionValue<int> ("infomeshobject" , "edgeCount",o_it->id() );
} }
if (div > 0) if (div > 0)
......
Supports Markdown
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