0

I'm trying to use interface_scad() to run some scripts by openSCAD,but meeting CalledProcessError.

import numpy as np
import trimesh
p1=trimesh.creation.box(extents=[5,6,2])
p2=trimesh.creation.uv_sphere(10)
meshes=[p1,p2]
pm=trimesh.interfaces.scad.interface_scad(meshes,script="hull(){$MESH_0; $MESH_1;}")
pm.show()

The information of the error: Exception has occurred: CalledProcessError Command '['D:\Program', 'Files\OpenSCAD\openscad.COM', 'C:\Users\\AppData\Local\Temp\tmphs_rtrnj', '-o', 'C:\Users\\AppData\Local\Temp\tmp0m9akbag.off']' returned non-zero exit status 1. File "D:\Users**\Program\trimesh_0114.py", line 6, in pm=trimesh.interfaces.scad.interface_scad(meshes,script="hull(){$MESH_0; $MESH_1;}") subprocess.CalledProcessError: Command '['D:\Program', 'Files\OpenSCAD\openscad.COM', 'C:\Users\\AppData\Local\Temp\tmphs_rtrnj', '-o', 'C:\Users\\AppData\Local\Temp\tmp0m9akbag.off']' returned non-zero exit status 1.

I have tried to change spelling, like "MESH_0" to "mesh_0", but it didn't work.

0 Answers0