-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
I am trying to use pymeshlab to slice a mesh with generate_polyline_from_planar_section and exporting the resultant edges in the dxf format.
Sample code using the famous Stanford Bunny as an input model:
ms = pymeshlab.MeshSet()
ms.load_new_mesh('bunny_flat_100mm.ply')
ms.generate_polyline_from_planar_section(planeaxis='Z Axis', planeoffset=30, relativeto='Origin', createsectionsurface=False)
ms.save_current_mesh('slice_030.dxf')
Generates the following exception:
pymeshlab.pmeshlab.PyMeshLabException: Error encountered while exportering file K:/path/to/file/slice_030.dxf:
Can't open file
However, the dxf file is successfully created, so this seems like more of a nuisance than anything. The error also occurs when performing the same steps MeshLab; an error dialog pops up with the same "Can't open file" message, but the file is successfully exported.
Please note that there is also a typo in the error message ("exportering" s/b "exporting").
Thanks for all the great work!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels