mirror of https://github.com/CGAL/cgal
use color picker to choose surface color after "reset surface patches"
This commit is contained in:
parent
d034ff373c
commit
712ce7e6f5
|
|
@ -355,6 +355,7 @@ void Scene_c3t3_item::reset_surface_patches()
|
||||||
f.first->set_surface_patch_index(f.second, first_index);
|
f.first->set_surface_patch_index(f.second, first_index);
|
||||||
mf.first->set_surface_patch_index(mf.second, first_index);
|
mf.first->set_surface_patch_index(mf.second, first_index);
|
||||||
}
|
}
|
||||||
|
triangulation_changed();
|
||||||
this->invalidateOpenGLBuffers();
|
this->invalidateOpenGLBuffers();
|
||||||
Q_EMIT itemChanged();
|
Q_EMIT itemChanged();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -727,9 +727,11 @@ Scene_triangulation_3_item::triangulation_changed()
|
||||||
for (Tr::Finite_facets_iterator fit = triangulation().finite_facets_begin(),
|
for (Tr::Finite_facets_iterator fit = triangulation().finite_facets_begin(),
|
||||||
end = triangulation().finite_facets_end(); fit != end; ++fit)
|
end = triangulation().finite_facets_end(); fit != end; ++fit)
|
||||||
{
|
{
|
||||||
max = (std::max)(max, fit->first->surface_patch_index(fit->second));
|
const int index = fit->first->surface_patch_index(fit->second);
|
||||||
int index = fit->first->surface_patch_index(fit->second);
|
max = (std::max)(max, index);
|
||||||
d->surface_patch_indices_.insert(index);
|
if(index != 0)
|
||||||
|
d->surface_patch_indices_.insert(index);
|
||||||
|
|
||||||
int dom0 = fit->first->subdomain_index();
|
int dom0 = fit->first->subdomain_index();
|
||||||
int dom1 = fit->first->neighbor(fit->second)->subdomain_index();
|
int dom1 = fit->first->neighbor(fit->second)->subdomain_index();
|
||||||
if (dom0 == 0) // if cell is not in complex
|
if (dom0 == 0) // if cell is not in complex
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue