Commit 413411f6 authored by Jan Möbius's avatar Jan Möbius

Added missing scripting slot to get the last curvature value

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13592 383ad7c9-94d9-4d36-a494-682f7c89f535
parent aec1166b
......@@ -82,14 +82,21 @@ void MeshComparePlugin::initializePlugin()
void MeshComparePlugin::pluginsInitialized() {
//===========================================================
// Describe scrpting slots
//===========================================================
emit setSlotDescription(tr("compare(int,int)"), tr("Compare two meshes. Use lastMaximalDistance() and lastMaximalNormalDeviation() to get the results."),
QStringList(tr("ObjectId,ObjectId")), QStringList(tr("Id of the reference mesh, Id of the comparison mesh")));
emit setSlotDescription(tr("lastMaximalDistance()"), tr("Get the maximal distance between the meshes of the last comparison."),
QStringList(tr("")), QStringList(tr("")));
emit setSlotDescription(tr("lastMaximalNormalDeviation()"), tr("Get the maximal normal deviation in degree between the meshes of the last comparison."),
QStringList(tr("")), QStringList(tr("")));
emit setSlotDescription(tr("lastMaximalMeanCurvatureDeviation()"), tr("Get the maximal mean curvature deviation between the meshes of the last comparison."),
QStringList(tr("")), QStringList(tr("")));
//===========================================================
// Check mean curvature plugin and disable the box in gui mode
//===========================================================
bool meanCurvature = false;
emit pluginExists( "meancurvature" , meanCurvature );
......
......@@ -118,6 +118,9 @@ class MeshComparePlugin : public QObject, BaseInterface, ToolboxInterface, Loggi
/// Get the maximal normal deviation of the last comparison in degree (-1, if no comparison performed so far)
double lastMaximalNormalDeviation() { return maxNormalDeviation_; };
/// Get the maximal mean curvature deviation of the last comparison (-1, if no comparison performed so far)
double lastMaximalMeanCurvatureDeviation() { return maxMeanCurvatureDev_; };
private:
/// The toolbar widget of this plugin
......
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