Importing svg/Dxf files to trimesh

666 views Asked by At

I want to convert dxf/svg files to stl using trimesh. I installed cyassimp as indicated on Github page, however I stil lget the following error:

 File "C:\Users\X\AppData\Local\Programs\Python\Python35\lib\site-packages\trimesh\io\load.py", line 119, in load_mesh
    kwargs.update(mesh_loaders[file_type](file_obj,
KeyError: 'svg'

Is there an alternative library for file conversation from dxf/svg to STL or to PLY?

1

There are 1 answers

0
Mike DH On

trimesh actually has native loaders (doesn't rely on cyassimp) for DXF/SVG. It is probably not available because you don't have shapely or rtree installed. Try calling trimesh.load_path() which should print a traceback saying why path functionality isn't available.