Skip to content

Commit

Permalink
add engines_available
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Oct 31, 2024
1 parent 9f41e2c commit ea74529
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_boolean.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np

# test only available engines by default
engines = g.trimesh.boolean._engines.keys()
engines = g.trimesh.boolean.engines_available
# test all engines if all_dep is set
if g.all_dependencies:
engines = g.trimesh.boolean._engines.keys()
Expand Down
4 changes: 4 additions & 0 deletions trimesh/boolean.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,7 @@ def boolean_manifold(
ImportError("No boolean backend: `pip install manifold3d` or install `blender`")
),
)

engines_available = {
k for k, v in _engines.items() if not isinstance(v, ExceptionWrapper)
}

0 comments on commit ea74529

Please sign in to comment.