Re: vtkm help with using the CleanGrid filter
Allie Vacanti <[email protected]> Fri, 28 Jun 2019 09:41:32 -0400
| Newsgroups | gmane.comp.lib.vtk.user |
|---|---|
| Message-ID | <CA+=e1ovLxdJ35nN+2OCSRXxMaqu--Jr3zY7gWxrveHSHy7iJBQ@mail.gmail.com> |
--===============1120707703== Content-Type: multipart/alternative; boundary="0000000000005bacb4058c627020" --0000000000005bacb4058c627020 Content-Type: text/plain; charset="UTF-8" On Fri, Jun 28, 2019 at 6:21 AM sunayanag <[email protected]> wrote: > 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' > 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. > 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. 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. --0000000000005bacb4058c627020 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr">On Fri, Jun 28, 2019 at 6:21 AM sunayanag= <<a href=3D"mailto:[email protected]">[email protected]</a>> wro= te:<br></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" s= tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad= ding-left:1ex">Thanks for your reply Allie, I looked into the vtkmCleanGrid= .cxx file and<br> tried to reproduce the code=C2=A0 :<br> <br> auto fieldsFlag =3D tovtkm::FieldsFlag::None;<br> vtkm::cont::DataSet in =3D tovtkm::Convert(vtkMesh, fieldsFlag);<br> =C2=A0//apply the filter<br> =C2=A0vtkmInputFilterPolicy policy;<br> =C2=A0vtkm::filter::CleanGrid filter;<br> filter.SetCompactPointFields(false);<br> auto result =3D 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&q= uot; to fix that. You might also need to include "vtkmCellSetSingleTyp= e.h" if you see errors about single type cellsets being undefined.<br>= </div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0p= x 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<b= r> back to vtkPolyData using the vtkDataSetSurfaceFilter.</blockquote><div><br= >If you use the vtkm filter directly, it should work to use the fromvtk::Co= nvert method from Accelerators/Vtkm/vtkmlib/PolyDataConverter.h to skip tha= t extra step.</div></div></div> --0000000000005bacb4058c627020-- --===============1120707703== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1120707703==--