<div dir="ltr"><div dir="ltr">On Fri, Jun 28, 2019 at 6:21 AM sunayanag <<a href="mailto:sunayanag@gmail.com">sunayanag@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks for your reply Allie, I looked into the vtkmCleanGrid.cxx file and<br>
tried to reproduce the code  :<br>
<br>
auto fieldsFlag = tovtkm::FieldsFlag::None;<br>
vtkm::cont::DataSet in = tovtkm::Convert(vtkMesh, fieldsFlag);<br>
 //apply the filter<br>
 vtkmInputFilterPolicy policy;<br>
 vtkm::filter::CleanGrid filter;<br>
filter.SetCompactPointFields(false);<br>
auto result = filter.Execute(in, policy);<br>
<br>
and end up getting the following error :<br>
include\vtk-8.2\vtkm/internal/ListTagDetail.h(207): error C2027: use of<br>
undefined type 'vtkm::cont::vtkmCellSetExplicitAOS'<br></blockquote><div><br></div><div>You can include the file "vtkmCellSetExplicit.h" to fix that. You might also need to include "vtkmCellSetSingleType.h" if you see errors about single type cellsets being undefined.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I also tried using the directly the vtkmCleanGrid class, in this case it<br>
worked where the output was of type vtkUnstructuredGrid which I converted<br>
back to vtkPolyData using the vtkDataSetSurfaceFilter.</blockquote><div><br>If you use the vtkm filter directly, it should work to use the fromvtk::Convert method from Accelerators/Vtkm/vtkmlib/PolyDataConverter.h to skip that extra step.</div></div></div>