Skip to content

Commit

Permalink
Apply current smooth surface and smooth normal settings to newly crea…
Browse files Browse the repository at this point in the history
…ted regions
  • Loading branch information
davidborland committed Dec 11, 2019
1 parent c851fcd commit 46bcd28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions VolumeView.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 46bcd28

Please sign in to comment.