[vtkusers] Marching cubes

prabhat246 prabhat246 at yahoo.com
Sun May 18 13:34:44 EDT 2008


Hello everyone,

I got the answer for my question from ITK forum.
in the example 
Well, I've changed the code 

     vtkContourFilter * contour = vtkContourFilter::New(); 
     contour->SetInput( vtkImporter2->GetOutput() ); 
     contour->SetValue(0, 128); 


to 

     vtkMarchingCubes * contour = vtkMarchingCubes::New(); 
     contour->SetInput(vtkImporter1->GetOutput()); 
     contour->SetValue(0, 128); 

It ensures me that now I get output only from Marching cubes algo. 
I am new to learn this algorithm. 


1. Can you please explain what are these parameters of SetValue function ?? 
2. How can I change the cube size to be bigger ?? and
3. Which file (and which function)has the actual code for the Marching cubes
algorithm???

Hoping for a helpful quick response
(I didn't get answer of my prev. question even after 15 days from VTK forum)

Thanks a lot

Prabhat





prabhat246 wrote:
> 
> I wanted to run marching cubes on my Dicom image set.
> I was told to refer example
> 
> InsightApplications-3.4.0\Auxiliary\vtk\ itkReadITKImage3DSegmentShowVTK
> 
> I can successfully run this example. 
> but I could not find where the actual Marching cube algorithm is being
> called?
> also How can I change the parameters of Marching cube algorithm?
> (If I want output mesh to be coarse or dense)
> 
> Thanks a lot.
> Prabhat
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Marching-cubes-tp16834785p17305560.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list