[vtkusers] VTK Wiki, VTK/Examples/ContoursToSurface fixed

David Doria daviddoria+vtk at gmail.com
Tue Jan 5 14:13:23 EST 2010


On Tue, Jan 5, 2010 at 11:32 AM, Dean Inglis <dean.inglis at camris.ca> wrote:
> I spent some time revising VTK/Examples/ContoursToSurface.cxx
> in the broken examples section of the wiki.  The example primarily
> illustrates use of vtkVoxelContoursToSurfaceFilter.  The two major
> revisions to getting it to work were to:
> 1) not use lines as contours, but as closed polygons instead:
>  vtkCutter was being used to cut a vtkSphereSource with an implicit
>  vtkPlane which led to a series of disconnected (unclosed) straight line
> segments,
>  each segment being comprised of just two points.  I changed this to
> explicitly
>  generate a series of discs from x-y planes slicing a unit sphere
> 2) the coordinates of the points have to be converted into integer (ijk)
>   representation, and so, one has to figure out a "nice" sampling rate and
> scale
>  accordingly
>
> Im not sure where the wiki page for this should go, so would someone take
> a look and redirect accordingly?
>
> Dean


Dean,

I really appreciate your efforts in fixing these! I moved this to
"Working with 3D Data (vtkPolyData)".

Bill - did you have any luck devising a better organization scheme
with the spreadsheet I sent?

Thanks,

David



More information about the vtkusers mailing list