Commit db6c9fb
committed
Fallback boolean operations to PyVista when trimesh has no backend
Extend the boolean helper to first attempt trimesh-based union/intersection/difference (with engine and then default engine), and on any failure (e.g., no backends available) fall back to PyVista's VTK-backed boolean_* methods on the original PolyData meshes.
This resolves ValueError('No backends available for boolean operations!') on environments such as macOS 3.9 where trimesh boolean backends are not installed, while still preferring trimesh when available.1 parent 7583877 commit db6c9fb
1 file changed
+24
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
62 | 80 | | |
63 | | - | |
64 | 81 | | |
65 | 82 | | |
66 | 83 | | |
| |||
0 commit comments