[vtk-developers] vtkSurfaceReconstructionFilter

Ken Martin ken.martin at kitware.com
Wed Jun 19 14:49:52 EDT 2002


Hey Folk,

Does anyone have an opinion on the API to
vtkSurfaceReconstructionFilter? Specifically this filter uses a
SetSampleSpacing to determine how many samples to take and what their
spacing should be. It defaults to -1 to indicate that it should be
automatically computed. I'd like to change this to match some of the
other filters in VTK. Other volumetric sources us SetSampleDimensions
to specify how many samples to take and then they compute what the
spacing should be. This is the opposite of vtkSurfaceReconstruction
filter. The advantage of setting the SampleDimensions is that the size
of the output volume and its memory footprint can be computed in
ExecuteInformation from the SampleDimensions but not from the
SampleSpacing (because it doesn't know the bounds of the input in
ExecuteInformation). So...  I'd like to add SetSampleDimensions which
would default to some reasonable size.  I can leave in
SetSampleSpacing which if set would override the SampleDimensions. The
only change in behavior would be if you were using
vtkSurfaceReconstrucitonFilter and were not setting the SampleSpacing
the dimensions of the output volume might change from what you are
currently getting.

Comments?

Thanks
Ken

--------------------------
Ken Martin, PhD
Kitware Inc.
518 371-3971 x101
469 Clifton Corporate Pkwy.
Clifton Park, NY 12065




More information about the vtk-developers mailing list