Re: vtkm help with using the CleanGrid filter

sunayanag <[email protected]> Fri, 28 Jun 2019 03:21:27 -0700 (MST)
Newsgroups gmane.comp.lib.vtk.user
Message-ID <[email protected]>
Thanks for your reply Allie, I looked into the vtkmCleanGrid.cxx file and
tried to reproduce the code  :

auto fieldsFlag = tovtkm::FieldsFlag::None;
vtkm::cont::DataSet in = tovtkm::Convert(vtkMesh, fieldsFlag);
 //apply the filter
 vtkmInputFilterPolicy policy;
 vtkm::filter::CleanGrid filter;
filter.SetCompactPointFields(false);
auto result = filter.Execute(in, policy);

and end up getting the following error :
include\vtk-8.2\vtkm/internal/ListTagDetail.h(207): error C2027: use of
undefined type 'vtkm::cont::vtkmCellSetExplicitAOS'

I also tried using the directly the vtkmCleanGrid class, in this case it
worked where the output was of type vtkUnstructuredGrid which I converted
back to vtkPolyData using the vtkDataSetSurfaceFilter.

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