Skip to content

Commit

Permalink
Fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurand2000 committed Oct 20, 2024
1 parent 76ada37 commit db66769
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,11 @@ std::map<std::string, QVariant> BranchMeasureFilter::applyFilter(
//Log Lenght from Border
if (longest_border_lenght > 0) {
plugin.log( QString("%2 - Border Lenght: %1").arg(longest_border_lenght, 0, 'f', 3).arg(mesh_label).toStdString() );
mesh_results.insert(QString("border_length"), QJsonValue(longest_border_lenght));
}
else {
longest_border_lenght = NAN;
mesh_results.insert(QString("border_length"), QJsonValue(NAN));
}
mesh_results.insert(QString("border_length"), QJsonValue(longest_border_lenght));

//Log Surface Area
auto mesh_area = computeMeshArea(mesh);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ std::map<std::string, QVariant> SkeletonizeFilter::applyFilter(

plugin.log( QString("%2 - Number of branches: %1").arg(num_branches).arg(mesh_name).toStdString() );

return {
{"num_branches", QVariant(num_branches)}
};
std::map<std::string, QVariant> results;
results.insert({ "num_branches", QVariant(qulonglong(num_branches)) });

return results;
}
catch (MLException e) {
throw e;
Expand Down

0 comments on commit db66769

Please sign in to comment.