Make update do something

This commit is contained in:
Andreas Fabri 2018-06-11 15:09:50 +01:00
parent 6a88803510
commit 52c26c4382
2 changed files with 7 additions and 3 deletions

View File

@ -371,7 +371,13 @@ namespace Heat_method_3 {
void update() void update()
{} {
double d=0;
BOOST_FOREACH(vertex_descriptor vd, vertices(tm)){
put(vdm,vd,d);
d += 0.2;
}
}
private: private:

View File

@ -466,7 +466,6 @@ private Q_SLOTS:
return; return;
} }
// AF: So far we only deal with adding sources // AF: So far we only deal with adding sources
BOOST_FOREACH(vertex_descriptor vd, vertices(mesh)){ BOOST_FOREACH(vertex_descriptor vd, vertices(mesh)){
if(is_source[vd]){ if(is_source[vd]){
@ -486,7 +485,6 @@ private Q_SLOTS:
if(hi > max) if(hi > max)
max = hi; max = hi;
} }
color_ramp = Color_ramp(rm, rM, gm, gM, bm, bM); color_ramp = Color_ramp(rm, rM, gm, gM, bm, bM);
dock_widget->minBox->setValue(min); dock_widget->minBox->setValue(min);
dock_widget->maxBox->setValue(max); dock_widget->maxBox->setValue(max);