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: vtk
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
Is it possible to create a thick Mesh?
I’m totally new to this field, I’m using python and Trimesh to create a 3D model of a bone and I need to figure out how can I create or represent the thickness of the bone I only have surface of the bone which is ok, but I need also to represent how the bone looks inside this surface, Anyone
VTK with multiple combined STL files
I’m working on a project with python and VTK. I successfully managed to combine three STL files, with a python STL libraray. After that, I visualize this combined.stl file in VTK like this: So far so good. But now I want to colorize/highlight one of those STL-objects. (All STLs together form a bigger object, so the positioning is important and
VTK rendering 2D mesh in python
so i’m trying to render a 2D mesh using vtk (in python). I have a list of tuples containing all the points and also a list of tuples containing the points of each cell. Just to experiment, I tried to create a polydata object of a square with 4 elements and render it, but i ended up with this: I