Skip to content

Commit 555dfd0

Browse files
committed
Error messages for DEGENERATE_*
1 parent 9435cce commit 555dfd0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/mesh/mesh_tet_interface.C

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -629,9 +629,11 @@ void MeshTetInterface::process_hull_integrity_result
629629
err_msg << "A constrained Delaunay tetrahedralization boundary must be an oriented Tri3 mesh." << std::endl;
630630
}
631631
if (result.count(BAD_NEIGHBOR_LINKS))
632-
{
633-
err_msg << "At least one triangle neighbor with inconsistent node and neighbor links was found in the input boundary mesh." << std::endl;
634-
}
632+
err_msg << "At least one triangle neighbor with inconsistent node and neighbor links was found in the input boundary mesh." << std::endl;
633+
if (result.count(DEGENERATE_ELEMENT))
634+
err_msg << "At least one input triangle is degenerate, with near-zero area relative to the manifold." << std::endl;
635+
if (result.count(DEGENERATE_MESH))
636+
err_msg << "The input mesh is degenerate, with zero thickness in at least one direction." << std::endl;
635637

636638
libmesh_error_msg(err_msg.str());
637639
}

0 commit comments

Comments
 (0)