Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Meshlib v3.0.1.205 issues #3735

Open
emil-peters opened this issue Nov 22, 2024 · 1 comment
Open

Python Meshlib v3.0.1.205 issues #3735

emil-peters opened this issue Nov 22, 2024 · 1 comment

Comments

@emil-peters
Copy link
Contributor

Hi all,

I've been looking at using the new meshlib python build, but due to the automatic conversion, there are a lot of typing issues we're now having with types previously defined.

mr.vectorEdgePath = mr.std_vector_std_vector_Id_EdgeTag

And some issues with functions no longer existing 🤔

Can't execute: 
`mr.getLargestComponentVerts`

I'll experiment some more next week to see if I can find any other inconsistencies

@emil-peters emil-peters changed the title Meshlib v3.0.1.205 Typing issues Meshlib v3.0.1.205 issues Nov 22, 2024
@Grantim
Copy link
Contributor

Grantim commented Nov 22, 2024

Hello!

We have added some aliases for complex types

>>> from meshlib import mrmeshpy as mm
>>> help(mm.std_vector_std_vector_Id_EdgeTag)
Help on class std_vector_std_vector_Id_EdgeTag in module meshlib.mrmeshpy:

class std_vector_std_vector_Id_EdgeTag(pybind11_builtins.pybind11_object)
 |  Aliases:  std_vector_EdgeLoop, EdgeLoops, std_vector_EdgeLoop, std_vector_EdgePath, std_vector_EdgePath, std_vector_EdgePath, std_vector_EdgeLoop

Also c++ namespaces are now respected in python bindings

from meshlib import mrmeshpy as mr
mr.getLargestComponentVerts = mr.MeshComponents.getLargestComponentVerts

If you know c++ analogue for missing function you can find it with same name in python (if not please let us know)

@Grantim Grantim changed the title Meshlib v3.0.1.205 issues Python Meshlib v3.0.1.205 issues Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants