vtkm help with using the CleanGrid filter
sunayanag <[email protected]> Thu, 27 Jun 2019 08:06:43 -0700 (MST)
| Newsgroups | gmane.comp.lib.vtk.user |
|---|---|
| Message-ID | <[email protected]> |
Hi All,
Just started using vtk-m and having some issues with the CleanGrid filter.
Assuming that vtkMesh is an object of type vtkSmartPointer<vtkPolyData>,
here is the piece of code
vtkm::cont::DataSet mMesh = tovtkm::Convert(vtkMesh,
tovtkm::FieldsFlag::PointsAndCells);
vtkm::filter::CleanGrid cleanGrid;
try
{
vtkm::cont::DataSet outMesh = cleanGrid.Execute(mMesh);
}
catch(std::exception& e)
{
std::cerr << e.what();
}
where the exception thrown is: /Could not find appropriate cast for cell
set./
could anyone help with what I am getting wrong.
Thanks
Sunayana
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
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
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers