[vtkusers] 3D Rendering of an sliced object

Sylvain Jaume sylvain.jaume at kitware.com
Tue Nov 8 11:41:14 EST 2005


Hi OnezerO,

Could you try the code I sent you in my previous email (see below)?

Cheers,
Sylvain

OnezerO wrote:

>Dont work
>
>I did that:
>ConnectPipelines(m_itkExporter , m_vtkImporter );
>m_vtkImporter->Update();     
>
>vtkImageConstantPad  *m_vtkConstant = vtkImageConstantPad::New();
>m_vtkConstant->SetInput( m_vtkImporter->GetOutput() );
>
>vtkContourFilter *m_vtkContour = vtkContourFilter::New();
>m_vtkContour->SetInput( m_vtkConstant->GetOutput() ); 
>
>The 3d image obtained its equals to the previous one
>
>
>You say i should try this extent thing ?
>-----Mensaje original-----
>De: Sylvain Jaume [mailto:sylvain.jaume at kitware.com] 
>Enviado el: Martes, 08 de Noviembre de 2005 13:06
>Para: OnezerO
>CC: vtkusers at vtk.org
>Asunto: Re: [vtkusers] 3D Rendering of an sliced object
>
>Hi OnezerO,
>
>The filter vtkImageConstantPad is in the Imaging directory:
>http://www.vtk.org/doc/nightly/html/classvtkImageConstantPad.html
>
>int extent[6];
>image->GetWholeExtent( extent )
>
>extent[0]--;
>extent[1]++;
>extent[2]--;
>extent[3]++;
>extent[4]--;
>extent[5]++;
>
>vtkImageConstantPad *constantPad = vtkImageConstantPad::New();
>constantPad->SetInput(image);
>constantPad->SetOutputWholeExtent(extent);
>
>vtkContourFilter *contourFilter = vtkContourFilter::New();
>contourFilter->SetInput(constantPad->GetOutput());
>
>Cheers,
>Sylvain
>
>OnezerO wrote:
>
>  
>
>>i didnt find this filter :(
>>
>>-----Mensaje original-----
>>De: Sylvain Jaume [mailto:sylvain.jaume at kitware.com]
>>Enviado el: Martes, 08 de Noviembre de 2005 12:15
>>Para: OnezerO
>>CC: vtkusers at vtk.org
>>Asunto: Re: [vtkusers] 3D Rendering of an sliced object
>>
>>Hi OnezerO,
>>
>>Did you use vtkConstantPadFilter before applying vtkContourFilter as it 
>>was answered previously?
>>
>>Cheers,
>>Sylvain
>>
>>OnezerO wrote:
>>
>> 
>>
>>    
>>
>>>Hello, i'm send this post again because i think that i dont explain my 
>>>problem very well... I have a series of images that represents a 3d 
>>>figure, this images was preprocesing with itk i'm receiving it with a 
>>>Importer from vtk, i pass the data throught a Contourfilter and then 
>>>by a SmoothFilter, the resulting 3d images has openings upside and 
>>>downside, i wanna close this holes... how i do it???
>>>
>>>Regards
>>>
>>>
>>>----------------------------------------------------------------------
>>>-
>>>-
>>>
>>>_______________________________________________
>>>This is the private VTK discussion list. 
>>>Please keep messages on-topic. Check the 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