Commit b3bb1526 authored by Jan Möbius's avatar Jan Möbius

Fixed crash with invalid face handle on reprojection


git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 3d21de19
......@@ -89,6 +89,12 @@ project_to_reference(typename Mesh::VertexHandle _vh) const
typename Mesh::Point p = Base::mesh_.point(_vh);
typename Mesh::FaceHandle fh = Base::bsp_->nearest(p).handle;
if ( ! fh.is_valid() ) {
std::cerr << "AdaptiveRemesherT: Projection, invalid face handle" << std::endl;
typename Mesh::CFVIter fv_it = Base::refmesh_->cfv_iter(fh);
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment