I have a PolyData mesh, and I am trying to color some cells that contain given vertices. However, I need an efficient way to to this. For instance, this works, but it is way too slow for a large mesh: This is what I get, which is fine…I just need to do it much faster! Answer If you have the
Tag: pyvista
PyVista mesh triangulation – vertex indices
I have a triangulated mesh that I generated with the Delaunay 3D function in PyVista. I would like to calculate the surface area of the mesh adding up the areas of all the triangles. Is there a way to obtain the indices of the simplices triangles from the delaunay result? I know I can do it with Scipy but for
Save screen capture in pyvista including interaction / rotation
I’m looking for a way to effectively capture the frame buffer during interaction in pyvista so that I can produce a video afterwards of the model moving around on the screen. The problem I’ve encountered is that when I click the screen to interact with the viewer/plotter, no frames are written while the mouse button is pressed and the model