From 46bcd28ed93ea6464b39a612ec81d6c143d86095 Mon Sep 17 00:00:00 2001 From: David Borland Date: Wed, 11 Dec 2019 11:10:52 -0500 Subject: [PATCH] Apply current smooth surface and smooth normal settings to newly created regions --- VolumeView.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/VolumeView.cxx b/VolumeView.cxx index 704435a..b14e4be 100644 --- a/VolumeView.cxx +++ b/VolumeView.cxx @@ -124,6 +124,9 @@ void VolumeView::SetRegions(vtkImageData* data, RegionCollection* newRegions) { } void VolumeView::AddRegion(Region* region) { + region->GetSurface()->SetSmoothSurface(smoothSurfaces); + region->GetSurface()->SetSmoothShading(smoothShading); + renderer->AddActor(region->GetSurface()->GetActor()); }