crash using engine='scad' with boolean operations
See original GitHub issueI’ve installed OpenSCAD, yet I get the following crash when i switch to engine='scad'
:
Traceback (most recent call last):
File "src/app/find_border.py", line 97, in <module>
diff = new_mesh.difference(inner, engine='scad')
File "/opt/miniconda3/envs/hfh/lib/python3.7/site-packages/trimesh/base.py", line 2616, in difference
engine=engine, **kwargs)
File "/opt/miniconda3/envs/hfh/lib/python3.7/site-packages/trimesh/boolean.py", line 25, in difference
result = _engines[engine](meshes, operation='difference', **kwargs)
File "/opt/miniconda3/envs/hfh/lib/python3.7/site-packages/trimesh/interfaces/scad.py", line 65, in boolean
return interface_scad(meshes, script, debug=debug, **kwargs)
File "/opt/miniconda3/envs/hfh/lib/python3.7/site-packages/trimesh/interfaces/scad.py", line 53, in interface_scad
result = scad.run(_scad_executable + ' $SCRIPT -o $MESH_POST')
File "/opt/miniconda3/envs/hfh/lib/python3.7/site-packages/trimesh/interfaces/generic.py", line 90, in run
startupinfo=startupinfo)
File "/opt/miniconda3/envs/hfh/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Applications/OpenSCAD.app/Contents/MacOS/openscad', '/var/folders/k3/hfd_v6x52mqcvp2cxpllyh0c0000gn/T/tmpkpnv5evr', '-o', '/var/folders/k3/hfd_v6x52mqcvp2cxpllyh0c0000gn/T/tmpb87_spjh.off']' returned non-zero exit status 1.
BTW, the same code works fine when using engine='blender'
.
Any ideas?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
crash using engine='scad' with boolean operations
I've installed OpenSCAD, yet I get the following crash when i switch to engine='scad' : Traceback (most recent call last): File ...
Read more >If Conditions, Boolean Operators and Logical Expressions
Python Crash Course - In this video we understand boolean ... learn about logical operators and, or and not and how we can...
Read more >Max Crashing during Boolean Operations - Autodesk Forums
OK, after some assistance yesterday, I've been able to create my terrain and an extruded object to use as ProBoolean primitives.
Read more >Crash shortly after using boolean path effect (Composite filter ...
Open Path Effects window; Click "+" (add path effect); Select "Boolean Operation"; Click "Link to item". If haven't crashed by this moment, Zoom ......
Read more >CGAL polygon mesh processing boolean operations crash
I am using cgal 5.0 as a header only library, with boost 1.71.0 v14.1, Eigen 3.3.7, and msvc 2017. I tried running the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Aniwax I saw same performance issues in my co2tools library. But I found out if I use multithreading to join the items together and then do difference on just 2 objects it is much faster than sending a list of meshes to cut out.
you can have a look at a sample loop code here: https://github.com/Mambix/co2tools/blob/master/co2tools/stl/builder.py#L145 and this is where the union is called in a thread: https://github.com/Mambix/co2tools/blob/master/co2tools/stl/builder.py#L157
FYI: I also get a crash using scad engine on Ubuntu 18.04LTS