<div>Are there any examples showing how to populate a vtkPolyData with verts/triangles from numpy arrays? </div><div><br></div><div>I have a solution right now where I loop through by hand adding points and triangles, but it is slow.</div>
<div><br></div><div>I see there is a numpy_to_vtk utility function, but I'm not clear how to setup my numpy arrays and what vtkPolyData functions I need to call. I'm imagining I want one Nx3 array with a vert per row (X Y Z). And a second Nx3 array of vert indexes with one triangle per row (v1 v2 v3)? But I can create whatever numpy arrays are needed, I just need help slurping them into a vtkPolyData.<br>
<br></div><div>Thanks!</div><div><br></div><div>-Philip</div><br>