[vtkusers] vtkm help with using the CleanGrid filter

sunayanag sunayanag at gmail.com
Thu Jun 27 11:06:43 EDT 2019


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


More information about the vtkusers mailing list