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

trimesh.boolean breaks after upgrading to manifold3d==2.3.1 #2112

Closed
tpank opened this issue Jan 8, 2024 · 0 comments · Fixed by #2113
Closed

trimesh.boolean breaks after upgrading to manifold3d==2.3.1 #2112

tpank opened this issue Jan 8, 2024 · 0 comments · Fixed by #2113

Comments

@tpank
Copy link
Contributor

tpank commented Jan 8, 2024

I am a big fan of the new manifold booleans, they seem to work much faster than the Blender version we previously used!

When using the latest versions of trimesh (4.0.8) and manifold3d (2.3.1) I get the following order:

redacted.py:100: in intersection
    intersection = mesh1.intersection(mesh2)
../../miniconda3/envs/py310/lib/python3.10/site-packages/trimesh/base.py:2954: in intersection
    result = boolean.intersection(
../../miniconda3/envs/py310/lib/python3.10/site-packages/trimesh/boolean.py:76: in intersection
    result = _engines[engine](meshes, operation="intersection", **kwargs)
../../miniconda3/envs/py310/lib/python3.10/site-packages/trimesh/boolean.py:85: in boolean_manifold
    manifolds = [
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

.0 = <iterator object at 0x7fa60d373ac0>

    manifolds = [
>       Manifold.from_mesh(
            Mesh(
                vert_properties=np.asarray(mesh.vertices, dtype="float32"),
                tri_verts=np.asarray(mesh.faces, dtype="int32"),
            )
        )
        for mesh in meshes
    ]
E   AttributeError: type object 'Manifold' has no attribute 'from_mesh'. Did you mean: 'to_mesh'?

This can be avoided my manually downgrading to manifold3d==2.2.2

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

Successfully merging a pull request may close this issue.

1 participant