mikedh / trimesh

Python library for loading and using triangular meshes.
https://trimesh.org
MIT License
2.96k stars 576 forks source link

Remove embreex dependency for mac M1 #2058

Open nepfaff opened 11 months ago

nepfaff commented 11 months ago

The embreex dependency seems to prevent trimesh working on mac with arm chips. This has been discussed here to some extent.

As embree seems to mainly be an intel raytracer, would it be possible to not require this dependency for mac with M1/ arm architecture and disable the features that depend on it on these systems?

nepfaff commented 11 months ago

I just realized that it is not part of the core requirements but of the recommended extras. Sorry for that!

In this case, would it be possible to have an additional group "easy_arm" or similar which includes all recommended dependencies that also work on arm chips? People developing on Mac M1 is becoming more and more common.

BuildBackBuehler commented 5 months ago

+1 for this. Just spent 30 mins installing embree (no X) as a result of the failed install. Hopefully I can incorporate/integrate its library in a way that Trimesh can take advantage of it lol

Or I saw a mention of a Rust alternative, I'd love that, presuming its platform agnostic

coderforlife commented 4 months ago

Also prevents trimesh[easy] install on Linux with arm (e.g. Raspberry Pi). The comment thread linked mentions Apple M1 support is available in embree. So it seems that there are a few options: