We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 399dc5f commit 72ccc4cCopy full SHA for 72ccc4c
1 file changed
src/mesh/poly2tri_triangulator.C
@@ -292,9 +292,12 @@ void Poly2TriTriangulator::triangulate_current_points()
292
std::vector<p2t::Point> outer_boundary_points;
293
std::vector<std::vector<p2t::Point>> inner_hole_points(n_holes);
294
295
+ dof_id_type nn = _mesh.max_node_id();
296
+ libmesh_error_msg_if
297
+ (!nn, "Poly2TriTriangulator cannot triangulate an empty mesh!");
298
+
299
// Unless we're using an explicit segments list, we assume node ids
300
// are contiguous here.
- dof_id_type nn = _mesh.max_node_id();
301
if (this->segments.empty())
302
libmesh_error_msg_if
303
(_mesh.n_nodes() != nn,
0 commit comments