Skip to content
Snippets Groups Projects
Commit a418e284 authored by Daniel Schramm's avatar Daniel Schramm
Browse files

Error fixed

parent ec0abc64
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ import cz.fidentis.analyst.mesh.core.MeshModel;
import cz.fidentis.analyst.visitors.mesh.HausdorffDistance;
import cz.fidentis.analyst.visitors.mesh.HausdorffDistance.Strategy;
import cz.fidentis.analyst.visitors.mesh.PrioritySphere;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
......@@ -248,7 +249,7 @@ public class HausdorffDistancePrioritized extends HumanFaceVisitor {
.computeIfAbsent(fpType, featurePointType -> new HashMap<>())
.putAll(priorityVisitor.getWeightedDistances());
}
for (final Map.Entry<MeshFacet, List<Double>> entry: priorityVisitor.getPriorities().entrySet()) {
final MeshFacet facet = entry.getKey();
final List<Double> facetPriorities = entry.getValue();
......@@ -258,7 +259,7 @@ public class HausdorffDistancePrioritized extends HumanFaceVisitor {
.computeIfAbsent(humanFace, face -> new HashMap<>())
.get(facet);
if (storedFacetPriorities == null) {
mergedPriorities.get(humanFace).put(facet, facetPriorities);
mergedPriorities.get(humanFace).put(facet, new ArrayList<>(facetPriorities));
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment