This is not really an issue, but I don't know of a better place to ask.
Over the last year I have been designing model planes in OpenVSP and building them from slices of insulation foam, using the planar slice feature to generate the contour for each slice. Thanks to being simulated in VSPAERO they have all flown pretty well, and I love the blended wing feature too. https://youtu.be/6xAY89Yqg-c?t=298
The workflow so far has been to use planar slice to generate slice geometry, export as STL to Blender where I separate the slices as individual objects, then run a Blender script to export these to a 2D CAD file (.dxf) and lay them out side by side.
In the early days I found the intermediate Blender stage handy to visualize where components (spar, battery etc) would fit, but recently I have been making these objects in OpenVSP so the Blender step is not really necessary for that now. Having an intermediate step also slows things down a lot when you need to do many many repeated exports while working on the design.
What I would like to do is write a script to convert the STL to .dxf directly and cut the turnaround time down to almost nothing. I have experience working with 3d meshes in general so I could find the outer contour of each slice from the unordered triangles, but the problem is that the STL also contains the original mesh that the slices were generated from, and some of those vertices are coincident with the slice vertices. If not for that, I could find which island is the original geometry (eg. by bounding box size) and ignore it.
So the question is, where in the OpenVSP code would I modify to not have the original mesh included in the geometry generated by planar slice? I had a look around myself and I get the impression it shouldn't be too hard to do this, but couldn't figure it out.
This is not really an issue, but I don't know of a better place to ask.
Over the last year I have been designing model planes in OpenVSP and building them from slices of insulation foam, using the planar slice feature to generate the contour for each slice. Thanks to being simulated in VSPAERO they have all flown pretty well, and I love the blended wing feature too. https://youtu.be/6xAY89Yqg-c?t=298
The workflow so far has been to use planar slice to generate slice geometry, export as STL to Blender where I separate the slices as individual objects, then run a Blender script to export these to a 2D CAD file (.dxf) and lay them out side by side.
In the early days I found the intermediate Blender stage handy to visualize where components (spar, battery etc) would fit, but recently I have been making these objects in OpenVSP so the Blender step is not really necessary for that now. Having an intermediate step also slows things down a lot when you need to do many many repeated exports while working on the design.
What I would like to do is write a script to convert the STL to .dxf directly and cut the turnaround time down to almost nothing. I have experience working with 3d meshes in general so I could find the outer contour of each slice from the unordered triangles, but the problem is that the STL also contains the original mesh that the slices were generated from, and some of those vertices are coincident with the slice vertices. If not for that, I could find which island is the original geometry (eg. by bounding box size) and ignore it.
So the question is, where in the OpenVSP code would I modify to not have the original mesh included in the geometry generated by planar slice? I had a look around myself and I get the impression it shouldn't be too hard to do this, but couldn't figure it out.