Polyhedron contouring with triangles=off results in out-of-memory crash
Please find attached a cell isolated from one of our datasets. When you load this into ParaView, and contour the AirVolumeFraction
with a value of 0.5 and set Generate Triangles off, the contouring will crash ParaView. While contouring, the memory footprint is increasing until all memory is consumed and the crash occurs. Of course, just loading the unstructured grid and using a vtkContourFilter
in code gives the same problem.
When contouring with Generate Triangles on, the memory problem does not appear. The out-of-memory process is therefore most likely located in vtkPolygonBuilder
which gathers triangles and attempts to merge them into polygons. Looking at the triangles result, there are 7 triangles resulting from the polyhedron contouring, where only 4 would reasonably be expected. Among these 7, a duplicate triangle is found. In other words, the input to the vtkPolygonBuilder
is difficult to start with.
I will attempt further to isolate the problem and fix this, but the vtkPolyhedron::Contour
code is quite difficult to grasp thb.