File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
TriangleMeshDistance/include/tmd Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -376,9 +376,9 @@ inline void tmd::TriangleMeshDistance::_construct()
376
376
this ->pseudonormals_triangles [i] = triangle_normal;
377
377
378
378
// Vertex
379
- const double alpha_0 = std::acos (std::abs (( b - a).normalized ().dot ((c - a).normalized () )));
380
- const double alpha_1 = std::acos (std::abs (( a - b).normalized ().dot ((c - b).normalized () )));
381
- const double alpha_2 = std::acos (std::abs (( b - c).normalized ().dot ((a - c).normalized () )));
379
+ const double alpha_0 = std::acos (( b - a).normalized ().dot ((c - a).normalized ()));
380
+ const double alpha_1 = std::acos (( a - b).normalized ().dot ((c - b).normalized ()));
381
+ const double alpha_2 = std::acos (( b - c).normalized ().dot ((a - c).normalized ()));
382
382
this ->pseudonormals_vertices [triangle[0 ]] += alpha_0 * triangle_normal;
383
383
this ->pseudonormals_vertices [triangle[1 ]] += alpha_1 * triangle_normal;
384
384
this ->pseudonormals_vertices [triangle[2 ]] += alpha_2 * triangle_normal;
You can’t perform that action at this time.
0 commit comments