Skip to content

Commit

Permalink
[Amibe] VertexInsertion do not swap in corner cases
Browse files Browse the repository at this point in the history
i.e. when the curvature of the object is high compared to mesh size.
  • Loading branch information
jeromerobert committed Aug 26, 2019
1 parent 24fe7a4 commit 2f39a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amibe/src/org/jcae/mesh/amibe/algos3d/VertexInsertion.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public void insertNodes(List<Vertex> vertices, int group)
Vertex v = vertices.get(randomIterator.get(i));
double localMetric = metric.getTargetSize(
v.getX(), v.getY(), v.getZ(), group);
double localMetric2 = localMetric * localMetric;
double localMetric2 = localMetric * localMetric / 2;
double tol2 = localMetric2 / (40 * 40);
TriangleHE t = (TriangleHE) kdTree.getClosestTriangle(
v, projection, group);
Expand Down

0 comments on commit 2f39a13

Please sign in to comment.