mirror of https://github.com/CGAL/cgal
display plugin ball radius slider update
This commit is contained in:
parent
a18b258624
commit
806d1247e6
|
|
@ -90,6 +90,7 @@ private:
|
||||||
double bI = 0.;
|
double bI = 0.;
|
||||||
|
|
||||||
double expand_radius = 0.;
|
double expand_radius = 0.;
|
||||||
|
double expand_radius_updated = false;
|
||||||
double maxEdgeLength = -1.;
|
double maxEdgeLength = -1.;
|
||||||
|
|
||||||
Color_ramp color_ramp;
|
Color_ramp color_ramp;
|
||||||
|
|
@ -912,6 +913,8 @@ private Q_SLOTS:
|
||||||
|
|
||||||
expand_radius = (pow(base, val) - 1) * outMax / (pow(base, sliderMax) - 1);
|
expand_radius = (pow(base, val) - 1) * outMax / (pow(base, sliderMax) - 1);
|
||||||
dock_widget->expandingRadiusLabel->setText(tr("Expanding Radius: %1").arg(expand_radius));
|
dock_widget->expandingRadiusLabel->setText(tr("Expanding Radius: %1").arg(expand_radius));
|
||||||
|
CGAL_assertion(expand_radius >= 0);
|
||||||
|
expand_radius_updated = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
@ -933,7 +936,7 @@ private:
|
||||||
bool non_init;
|
bool non_init;
|
||||||
SMesh::Property_map<vertex_descriptor, double> mu_i_map;
|
SMesh::Property_map<vertex_descriptor, double> mu_i_map;
|
||||||
std::tie(mu_i_map, non_init) = smesh.add_property_map<vertex_descriptor, double>(tied_string, 0);
|
std::tie(mu_i_map, non_init) = smesh.add_property_map<vertex_descriptor, double>(tied_string, 0);
|
||||||
if(non_init)
|
if(non_init || expand_radius_updated)
|
||||||
{
|
{
|
||||||
if(vnm_exists)
|
if(vnm_exists)
|
||||||
{
|
{
|
||||||
|
|
@ -967,6 +970,8 @@ private:
|
||||||
.ball_radius(expand_radius));
|
.ball_radius(expand_radius));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
expand_radius_updated = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
displaySMProperty<vertex_descriptor>(tied_string, smesh);
|
displaySMProperty<vertex_descriptor>(tied_string, smesh);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue