Closed lzhshou closed 2 years ago
Hi,
thanks for providing data example for this issue! There is something strange in the triangle strip VTK data which causes troubles. I'll check it, but meanwhile you can add vtkTriangleFilter
after reader as a workaround, if surface data is enough for you.
Hi Keskitalo,
Thanks for the quick reply. I have tried vtkTriangleFilter
, but the issue is still there.
FYI, here is the snippet code to create the triangle strips. Please let me know if there is anything else I can help with this issue.
VecXT
Again, thanks for your help.
Sorry my mistake. I just committed a "hot fix", with that it should not crash any more, although you still need vtkTriangleFilter.
I checked out the new commit and it works. Thanks.
FYI Your triangle strip data seems not to be aligned with formulation of VTK triangle strips, since not all sets of three points define a triangle. But it seems that by using vtkTriangleFilter
the end product contains all the faces you need. I've slightly modified the hot fix from yesterday, should not affect the end result.
You are right that I did not implement an exact triangle strip algorithm, and just used that workaround in my code. Thanks for the follow-up.
Hi Keskitalo,
Thank you for the efforts in maintaining this great and useful tool.
I encountered the error of sequence incorrect size prompted by the facets.new() function, when trying to import vtk data to blender mesh using the VTK to blender mesh node (the bottom figure). The file is prepared in polydata format with triangle strips, and it works well in paraview (the top figure).
Would you please help take a look at this issue? (The vtk file is attached as particle_000_000000000040000.zip)
Many thanks,
Zhengshou
particle_000_000000000040000.zip