Skip to content

Commit

Permalink
fix max value for constraints length
Browse files Browse the repository at this point in the history
  • Loading branch information
janetournois committed Apr 12, 2021
1 parent 124fe09 commit 9bce3d2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public Q_SLOTS:
selection_item->constrained_edges_pmap(),
get(CGAL::vertex_point, *selection_item->polyhedron()),
CGAL::Constant_property_map<face_descriptor, std::size_t>(1),
CGAL::Uniform_sizing_field<FaceGraph>(target_length, pmesh)))
CGAL::Polygon_mesh_processing::Uniform_sizing_field<FaceGraph>( 4. / 3. * target_length, pmesh)))
{
QApplication::restoreOverrideCursor();
//If facets are selected, splitting edges will add facets that won't be selected, and it will mess up the rest.
Expand Down Expand Up @@ -607,7 +607,7 @@ public Q_SLOTS:
ecm,
get(CGAL::vertex_point, pmesh),
CGAL::Constant_property_map<face_descriptor, std::size_t>(1),
CGAL::Uniform_sizing_field<FaceGraph>(target_length, pmesh)))
CGAL::Polygon_mesh_processing::Uniform_sizing_field<FaceGraph>(4. / 3. * target_length, pmesh)))
{
QApplication::restoreOverrideCursor();
QMessageBox::warning(mw, tr("Error"),
Expand Down

0 comments on commit 9bce3d2

Please sign in to comment.