[vtkusers] vtkRectilinearGridToTetrahedra how to get 3D picture?

Artem Babayan artem.paraview at googlemail.com
Mon May 10 17:11:41 EDT 2010


Hi, Eric

Thanks a lot. Worked like a charm :)

Best wishes
Artem

On 10 May 2010 12:37, Eric E. Monson <emonson at cs.duke.edu> wrote:
> Hey Artem,
>
> I don't know the answer to your question, but just so you know: the Tetrahedralize filter in ParaView is the vtkDataSetTriangleFilter from VTK.
>
> -Eric
>
> ------------------------------------------------------
> Eric E Monson
> Duke Visualization Technology Group
>
>
> On May 9, 2010, at 5:21 PM, Artem Babayan wrote:
>
>> Hello.
>>
>> I am trying to visualize 3D scalar data defined on rectilinear grid.
>> Apparently, vtkFixedPointVolumeRayCastMapper cannot render the data
>> from Rectilinear Grid directly. Paraview uses filter 'Tetrahedralize'
>> which is not present in VTK. I have tried to use
>> vtkRectilinearGridToTetrahedra as following:
>>
>>      vtkSmartPointer<vtkFixedPointVolum> RayCastMapper> mapper_conc =
>>                   vtkSmartPointer<vtkFixedPointVolumeRayCastMapper>::New();
>>
>>      vtkRectilinearGridToTetrahedra *rg2t =
>> vtkRectilinearGridToTetrahedra::New();
>>      rg2t->SetInputConnection(reader_grid->GetOutput()->GetProducerPort());
>>      mapper_conc->SetInput(rg2t->GetOutput());
>>
>> but got the following runtime error:
>>
>> "Input port 0 of algorithm
>> vtkFixedPointVolumeRayCastMapper(0x2c90020) has 0 connections but is
>> not optional."
>>
>> What am I doing wrong?
>>
>> Best wishes
>> Artem
>> _______________________________________________
>> 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