Fix division by zero in subdivision_masks_3.h

This commit is contained in:
Giles Bathgate 2020-12-13 19:46:01 +00:00
parent e7b91b92b8
commit 939305d659
1 changed files with 1 additions and 0 deletions

View File

@ -331,6 +331,7 @@ public:
void vertex_node(vertex_descriptor vertex, Point& pt) {
Halfedge_around_vertex_circulator vcir(vertex, *(this->pmesh));
size_t n = circulator_size(vcir);
CGAL_assertion(n > 0);
FT R[] = {0.0, 0.0, 0.0};
Point_ref S = get(this->vpmap,vertex);