edyvedy13
edyvedy13

Reputation: 2296

Importing svg/Dxf files to trimesh

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?

Upvotes: 2

Views: 770

Answers (1)

Mike DH
Mike DH

Reputation: 31

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.

Upvotes: 1

Related Questions