[vtkusers] how to render vtkMultiBlockDataSet?

David Doria daviddoria at gmail.com
Wed Jan 5 09:08:29 EST 2011


On Wed, Jan 5, 2011 at 9:01 AM, Nelson <gnjoseph at gmail.com> wrote:
>
> Hi David,
>
> This is how i am getting textual information
>
> reader->SetDatabaseDirectory( "C:/Users/Nelson Joseph/Documents/My
> Subjects/LSTC" );
> reader->UpdateInformation();
> lsdReader->Print( file );
>
> Please help me to render the model
>
> Thanks in advance.
> Nelson

There may be something wrong with the file. Opening it in ParaView
crashes ParaView.

Both of these casts end up NULL:

  vtkSmartPointer<vtkLSDynaReader> reader =
    vtkSmartPointer<vtkLSDynaReader>::New();
  reader->SetDatabaseDirectory("/home/doriad/Downloads" );
  reader->UpdateInformation();

  vtkUnstructuredGrid *ug =
vtkUnstructuredGrid::SafeDownCast(reader->GetOutput()->GetBlock(0));
  std::cout << ug << std::endl;

  vtkPolyData* pd = vtkPolyData::SafeDownCast(reader->GetOutput()->GetBlock(0));
  std::cout << pd << std::endl;

Do you know what type the data is supposed to be?

David



More information about the vtkusers mailing list