[vtkusers] vtkMarchingCubes
Marwan Adada
adada_marwan at hotmail.com
Fri Apr 25 10:53:06 EDT 2003
Hello,
Yes Mathieu you are right I forgot to specify the number of iterations.
It's working very well, the volume is smoothed.
As for ITK, I am not using it. What's special about it, and how can I get
to know more about using it??
Thank you all...
Mathiew thanks for forwarding the previous e-mail
>From: Mathieu Malaterre <Mathieu.Malaterre at creatis.insa-lyon.fr>
>To: Marwan Adada <adada_marwan at hotmail.com>
>CC: vtkusers at public.kitware.com
>Subject: Re: [vtkusers] vtkMarchingCubes
>Date: Thu, 24 Apr 2003 09:38:39 +0200
>
>Marwan
> I don't know what are you looking for. Anyway with vtkWindowSync... you
>forgot to specify the number of iterations.
>Try something like:
>
>vtkWindowedSincPolyDataFilter smooth
> smooth SetInput [mcubes GetOutput]
> smooth SetNumberOfIterations 50
> smooth BoundarySmoothingOn
> smooth SetFeatureAngle 120
> smooth SetEdgeAngle 90
> smooth SetPassBand 0.1
>
>vtkPolyDataNormals normals
> normals SetInput [smooth GetOutput]
>
>vtkStripper stripper
> stripper SetInput [normals GetOutput]
>
>vtkPolyDataMapper cylMapper
> cylMapper SetInput [stripper GetOutput]
>
>
>---
> Also please note that these filters won't modify the number of edges so if
>your mesh is poorly define. Make use of any interpolation filters
>(butterfly etc...)
>
>
>yaHTH
>
>mathieu
>
>Marwan Adada wrote:
>>Hello,
>>I tried using these filters but for some reason I am not getting any
>>change in the output, my code is:
>>
>>vtkSmoothPolyDataFilter *Smooth = vtkSmoothPolyDataFilter::New();
>> Smooth->SetInput(mcubes->GetOutput());
>> Smooth->SetNumberOfIterations(10);
>> Smooth->SetRelaxationFactor(1);
>> Smooth->SetFeatureAngle(0);
>> Smooth->FeatureEdgeSmoothingOn();
>> Smooth->BoundarySmoothingOn();
>> Smooth->SetConvergence(0);
>> Smooth->ReleaseDataFlagOn();
>>
>>Then I tried :
>>vtkWindowedSincPolyDataFilter
>>*Smooth=vtkWindowedSincPolyDataFilter::New();
>> Smooth->SetInput(mcubes->GetOutput());
>> Smooth->GenerateErrorVectorsOn();
>> Smooth->GenerateErrorScalarsOn();
>> Smooth->Update();
>>
>>And still no change, Any Ideas why this is happening??
>>Thanks in Advance...
>>Marc,
>>
>>P.S Thanks Mathieu
>>
>>
>>>From: Mathieu Malaterre <Mathieu.Malaterre at creatis.insa-lyon.fr>
>>>To: Marwan Adada <adada_marwan at hotmail.com>
>>>CC: vtkusers at public.kitware.com
>>>Subject: Re: [vtkusers] vtkMarchingCubes
>>>Date: Wed, 23 Apr 2003 20:08:20 +0200
>>>
>>>http://www.vtk.org/doc/nightly/html/classvtkSmoothPolyDataFilter.html
>>>
>>>and
>>>http://www.vtk.org/doc/nightly/html/classvtkWindowedSincPolyDataFilter.html
>>>
>>>the later is not lagrangian -> no shrinkage !
>>>
>>>HTH
>>>mathieu
>>>
>>>Marwan Adada wrote:
>>>
>>>>Hello,
>>>>Now I converted my 8bit buffer to a 16bit buffer and sliced it, then
>>>>passed it to vtkVolume16Reader and then to marching cubes, and I got the
>>>>volume. But my result is not smooth at all, I set the
>>>>MarchingCube->ComputeNormalsOn(); and still the result is not smooth.
>>>>Is there any filter I can use to smooth the resulting output from
>>>>marching cubes??
>>>>Thanks in advance
>>>>
>>>>Marc
>>>>
>>>>P.S Thanks james;
>>>>
>>>>>From: James Dessart <james at rogue-research.com>
>>>>>To: Marwan Adada <adada_marwan at hotmail.com>
>>>>>CC: vtkusers at public.kitware.com
>>>>>Subject: Re: [vtkusers] vtkMarchingCubes
>>>>>Date: Wed, 23 Apr 2003 13:58:55 -0400 (EDT)
>>>>>
>>>>>
>>>>>
>>>>>On Wed, 23 Apr 2003, Marwan Adada wrote:
>>>>>
>>>>> > I have an 8 bit volume data (205x233x251) that I need to pass to
>>>>> > vtkMarchingCubes. I tried using vtkImageReader but it seems not to
>>>>>work
>>>>> > with vtkMarchingCubes. I tried vtkImageData and still couldn't pass
>>>>>it to
>>>>> > vtkMarchingCubes. I know vtkVolume16Reader works with
>>>>>vtkMarchingCubes, but
>>>>> > my data 8bits not 16bits. I am wondering what vtk 8bit Readers does
>>>>> > vtkMarchingCubes accepts, Any Ideas??
>>>>>
>>>>>What you could try would be to read it in as 16-bit values, and run
>>>>>marching cubes on that. The values would be between 0-255, as 8-bit
>>>>>values generally are, but that shouldn't matter, if you specify your
>>>>>threshold for marching cubes properly.
>>>>>
>>>>>hope that helps,
>>>>>James
>>>>>
>>>>
>>>>
>>>>_________________________________________________________________
>>>>The new MSN 8: smart spam protection and 2 months FREE*
>>>>http://join.msn.com/?page=features/junkmail
>>>>
>>>>_______________________________________________
>>>>This is the private VTK discussion list. Please keep messages on-topic.
>>>>Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>>>>Follow this link to subscribe/unsubscribe:
>>>>http://public.kitware.com/mailman/listinfo/vtkusers
>>>>
>>>
>>>
>>>--
>>>Mathieu Malaterre
>>>CREATIS
>>>28 Avenue du Doyen LEPINE
>>>B.P. Lyon-Montchat
>>>69394 Lyon Cedex 03
>>>http://www.creatis.insa-lyon.fr/~malaterre/
>>>
>>
>>
>>_________________________________________________________________
>>Add photos to your e-mail with MSN 8. Get 2 months FREE*.
>>http://join.msn.com/?page=features/featuredemail
>>
>
>
>--
>Mathieu Malaterre
>CREATIS
>28 Avenue du Doyen LEPINE
>B.P. Lyon-Montchat
>69394 Lyon Cedex 03
>http://www.creatis.insa-lyon.fr/~malaterre/
>
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
More information about the vtkusers
mailing list