[vtkusers] Smoothing VTK mesh

Jothy jothybasu at gmail.com
Tue Mar 15 08:51:55 EDT 2011


Simple - Mapper->SetScalarVisibilityOff();

Jothy

On Tue, Mar 15, 2011 at 12:42 PM, Jothy <jothybasu at gmail.com> wrote:
> Thanks!
>
> I am already using vtkWindowSyncPolyDataFilter, now the mesh appears
> much smoother. Do you think still the decimatePro will imporve the
> results?
>
> Another problem is, I am not able to color the meshes it set some
> default color (may be coloring according to scalars).
>
> How do I turn it off and set my own color by
> actor->GetProperty()->SetColor(R,G,B)
>
> Thanks
>
> Jothy
>
> On Tue, Mar 15, 2011 at 12:30 PM, Alexandre GOUAILLARD
> <agouaillard at gmail.com> wrote:
>> hi jothy,
>>
>> you want to decimate first then smooth.
>> for decimation I think the quadratic one is better.
>> for the smoothing, you should use windowsyncpolydata filter (from the
>> top of my hand). it is faster and it does not have the strong
>> shrinking effect lapacian smoothing has.
>>
>> alex.
>>
>>
>> On Tue, Mar 15, 2011 at 6:57 PM, Jothy <jothybasu at gmail.com> wrote:
>>> Hi all,
>>>
>>> I have generated a mesh from DICOM RT Structure set, but the mesh
>>> looks too dense and the mesh has a step-like variation in the
>>> cranio-caudal direction (because of the finite slice thickness in the
>>> CT images used). I am using the pipeline as shown below
>>>
>>>
>>> vtkPolyData--->vtkPolyDataToImageStencil--->vtkImageStencil--->vtkMarchingCubes
>>> (I am using vtkLinearExtrusionFilter to extrude as well)
>>>
>>> Now, I looked into the src code of ITK snap which uses
>>> vtkImageSmoothgaussian, vtkDecimatePro and vtkSmoothPolyDataFilter ,
>>> but I am bit confused in using the right filter at the tight stage in
>>> the process.
>>>
>>> Any directions?
>>>
>>> Thank you
>>>
>>> Jothy
>>> _______________________________________________
>>> 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
>>>
>>
>



More information about the vtkusers mailing list