Skip to content

'UGrid' object has no attribute 'compute_normals' #725

Answered by marcomusy
RyanConway91 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

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)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@RyanConway91
Comment options

@marcomusy
Comment options

@banesullivan
Comment options

Answer selected by marcomusy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants