Tube (well) + dash-vtk + pyvista

Is there a minimal example to render a tube with dash-vtk, from a pyvista (polyline or multiblock) dataset. basically, I would achieve to plot a borehole under a terrain mesh. I tried the same code from the terrain mesh example but vtk_to_numpy(borehole.GetPolys().GetData()) return an empty array

In general if you have vtk data you should use the util class to just send the mesh with all the type of cells rather than just the polygons.

If your mesh is just lines, then you should be able to use the Algorithm with vtkTubeFilter.

<View>
  <GeometryRepresentation>
     <Algorithm vtkClass="vtkTubeFilter" state={ ... }>
         <Mesh state={mesh_state} />
     </Algorithm>
  </GeometryRepresentation>
</View>