'UGrid' object has no attribute 'compute_normals' #725
-
Hello, I am trying to intersect a mesh loaded from a vtk (a 3D irregular rectilinear grid from a finite difference model, 'mf_grid' variable below) with a wedge mesh loaded from some other commercial software (EVS, variable 'ugrid' below). I got both loaded in and they display correctly. However, when I run:
I get the error:
Can I convert my meshes to structured using vedo or is there some way I can get around this? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Sorry for the late reply, I'm afraid vedo does not support data structures like rectilinear grids (maybe in the future...) I suggest to explore a similar library which is also based on vtk and it is largely compatible with vedo. import vedo
rgrid = vedo.io.loadRectilinearGrid("file.vtk")
msh1 = vedo.geometry(rgrid)
msh1.print()
msh1.cut_with_mesh(msh2)
vedo.show(msh1, msh2, axes=1) |
Beta Was this translation helpful? Give feedback.
Sorry for the late reply, I'm afraid vedo does not support data structures like rectilinear grids (maybe in the future...) I suggest to explore a similar library which is also based on vtk and it is largely compatible with vedo.
If you just need to do visualization you can still make a mesh from the vtk (as you've done already) and then intersect those meshes: