From 2f39a1350ff5abbe15aca5228363d1e8017dc765 Mon Sep 17 00:00:00 2001 From: Jerome Robert Date: Mon, 26 Aug 2019 15:54:34 +0200 Subject: [PATCH] [Amibe] VertexInsertion do not swap in corner cases i.e. when the curvature of the object is high compared to mesh size. --- amibe/src/org/jcae/mesh/amibe/algos3d/VertexInsertion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amibe/src/org/jcae/mesh/amibe/algos3d/VertexInsertion.java b/amibe/src/org/jcae/mesh/amibe/algos3d/VertexInsertion.java index 8106816f9..63948a02a 100644 --- a/amibe/src/org/jcae/mesh/amibe/algos3d/VertexInsertion.java +++ b/amibe/src/org/jcae/mesh/amibe/algos3d/VertexInsertion.java @@ -186,7 +186,7 @@ public void insertNodes(List 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);