[vtkusers] How to use the vtkLSDynaReader class to handle FEM data in LSDYNA database
Viet H.Q.H
viet at bakuhatsu.jp
Tue Feb 23 08:24:12 EST 2010
Dear David,
Thank you for your information. I have removed the
vtkStructuredGridOutlineFilter and referred to
"VTK/Graphics/Testing/Cxx/TestMultiBlock.cxx" to rewrite the code:
string dir="/home/viet/vtk_test/taylor/";
plLD->SetDatabaseDirectory(dir.c_str());
plLD->Update();
vtkMultiBlockDataSet* mbds = plLD->GetOutput();
vtkCompositeDataGeometryFilter* geom =
vtkCompositeDataGeometryFilter::New();
geom->SetInputConnection(0, mbds->GetOutputPort(0));
vtkShrinkPolyData* shrink = vtkShrinkPolyData::New();
shrink->SetShrinkFactor(1.0);
shrink->SetInputConnection(0, geom->GetOutputPort(0));
vtkPolyDataMapper* shMapper = vtkPolyDataMapper::New();
shMapper->SetInputConnection(0, shrink->GetOutputPort(0));
vtkActor* shActor = vtkActor::New();
Since the class "vtkMultiBlockDataSet" has no member named "GetOutputPort",
I get a error message for
geom->SetInputConnection(0, mbds->GetOutputPort(0));
Should I find a way to convert a vtkMultiBlockDataSet object to an
vtkXMLMultiGroupDataReader object in order to use
vtkCompositeDataGeometryFilter?
Thank you in advance for your help.
Best,
Viet.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100223/7fb3b270/attachment.htm>
More information about the vtkusers
mailing list