[vtkusers] Create Structured Point Set?

Bryn Lloyd blloyd at vision.ee.ethz.ch
Wed Mar 4 10:00:01 EST 2009


Is your data a surface? Is there data associated with the polydata?

What do you expect marching cubes to give you? (lines?)


You could use vtkContourFilter, it works on any kind of vtkDataSet, i.e. 
polydata...

http://www.vtk.org/doc/nightly/html/classvtkContourFilter.html

--Bryn




David Doria wrote:
> I am reading in a vtp file and then trying to run the vtkMarchingCubes 
> filter. It says the input is of type vtkPolyData, but a vtkImageData is 
> required.
> 
> I tried to use vtkMarchingContourFilter and it says no data to contour.
> 
> It makes sense that the points should be on a structured grid, but how 
> do I create one?
> 
> Thanks,
> 
> David
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers


-- 
-------------------------------------------------
Bryn Lloyd
Computer Vision Laboratory
ETH Zürich, Sternwartstrasse 7
CH - 8092 Zürich, Switzerland
Tel: +41 44 63 26668
Fax: +41 44 63 21199
-------------------------------------------------



More information about the vtkusers mailing list