Commit cc0216b7 authored by David Bommes's avatar David Bommes
Browse files

fixed bug caused by isolated vertices of valence 0

parent 2323b9b3
......@@ -3202,6 +3202,7 @@ Parameter HexExtractor::getHexVertexParameter(VertexHandle hexVh, CellHandle ch)
param = tranFun.transform_point(param);
}
else if (type == FHVertex)
else if (type == FHVertex)
{
auto tranFun = identity;
if (incidentCell != ch)
......@@ -3347,7 +3348,13 @@ void HexExtractor::truncatePrecision(bool extremeTruncation)
ch = *inputMesh.vc_iter(*v_it);
}
}
assert(ch.is_valid());
if(!ch.is_valid()) // tolerate isolated vertices but output warning in debug mode
{
HEXEX_DEBUG_ONLY( std::cerr << "Warning: vertex skipped during sanitization since invalid cell handle found for vertex with valence " << inputMesh.valence(*v_it) << std::endl;)
continue;
}
// assert(ch.is_valid());
// precision truncation
......
Supports Markdown
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