Skip to content
Snippets Groups Projects
Commit a1413fe6 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed bug

parent 6d2f4719
No related branches found
No related tags found
No related merge requests found
......@@ -657,7 +657,6 @@ int InfoMeshObjectPlugin::getClosestEdgeInFace(MeshT* _mesh, int _face_idx, cons
int closest_e_handle = 0;
for (fh_it = _mesh->fh_iter(_mesh->face_handle(_face_idx)); fh_it.is_valid(); ++fh_it){
v1 = _mesh->from_vertex_handle(*fh_it);
v2 = _mesh->to_vertex_handle(*fh_it);
......@@ -674,6 +673,7 @@ int InfoMeshObjectPlugin::getClosestEdgeInFace(MeshT* _mesh, int _face_idx, cons
const double temp_dist = (_hitPoint - (vp1 + x * e)).length();
if (temp_dist < dist) {
closest_e_handle = fh_it->edge().idx();
dist = temp_dist;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment