Skip to content
Discussion options

You must be logged in to vote

Hello @vargonis!

It turned out that pyvista does not create consistent faces' indices order by default, and really mesh looks like this:

(you can see that faces at top are inverted (actually, they are OK but all others are inverted according to ply files that you've provided))

To find it out I saved the mesh in MehsLib internal format like this;

mm.saveMesh(pyvista_to_meshlib(x),"a.mrmesh")

I tried to have a look at normals with pyvista (with plot_normals) and it seemed OK, but actually it was not, pyvista fixes normals automatically for visualization

(all normals are looking inward on the image)

So, in this case you need to fix faces orientation before converting to meshlib like this:

x 

Replies: 2 comments 4 replies

Comment options

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

@Fedr
Comment options

Fedr Feb 17, 2025
Maintainer

@vargonis
Comment options

Comment options

You must be logged in to vote
1 reply
@vargonis
Comment options

Answer selected by vargonis
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