Hi I am using ActiViz.Net 64 v5.8.0
I am having an issue with vtkPolyDataToImageStencil where the output seems to have either extra lines or holes. I have attempted to combine vtkPolyDataToImageStencil with vtkImageStencilToImage as well as vtkImageStencil the resulting imageData is the same
I have tried to change the vtkPolyDataToImageStencil .SetTolerance parameter but that makes it even worse not matter the value .
I have tried running my vtkPolyData ( points and lines) through vtkCleanPolyData that had no effect i could tell .
I am convinced that my my contour (vtkPolyData) is correct since it displays fine as a contour overlay.
Any suggestions or help would be greatly appreciated
t5_dataToStencil = new vtkPolyDataToImageStencil(); t5_dataToStencil.SetInput(t5_PolyDataContours); t5_dataToStencil.SetOutputSpacing(1.1785, 1.1785, 1); t5_dataToStencil.SetOutputOrigin(-300, -184,-647.5); t5_dataToStencil.SetOutputWholeExtent(0,511,0,511,0,281); t5_dataToStencil.UpdateWholeExtent(); t5_dataToStencil.Update(); vtkImageStencilToImage stencilToImage = new vtkImageStencilToImage(); stencilToImage.SetInput(t5_dataToStencil.GetOutput()); stencilToImage.SetOutsideValue(0); stencilToImage.SetInsideValue(1); stencilToImage.UpdateWholeExtent(); t5_imDataForImStencil = new vtkImageData(); t5_imDataForImStencil = stencilToImage.GetOutput();