Export volumes to STEP files#1589
Export volumes to STEP files#1589ilguido wants to merge 4 commits intosolvespace:masterfrom ilguido:master
Conversation
|
I don't know the first thing about STEP files, so I have no comments about the logic, but please don't use Also, while SolveSpace is single threaded in that code path, please make the lists and the functions that operate on them members of |
There was a problem hiding this comment.
I'm starting to think that this approach (discovering matching/duplicate points/lines/curves numerically at this level instead of trying to deduce it from the structure) may not be so bad... I need to try the other way ("logically") myself to see how hard it would be.
|
For cross reference: The "correct" STEP export is neither this nor #1580 but some "nonlinear combination" of both may be :-) |
|
@ilguido would you mind sharing the file that you're using so I can use it as a reference? |
@ruevs I'm also in favor of doing it "the right way", but this would be the 3rd attempt by non-core developers to resolve the issue (of step file quality). When there is that much interest I think it's time to do something, and if you or I don't have the time to work through a "more correct" solution I think it's time to accept one or more of these others. It may be worth pointing out that these "fixes" to the existing exporter do not impact the rest of the application - they are limited to the step file exporter. Based on the image at the top of this PR it looks like this one handles the PWL curves as well, and to me that's important. I kind of like the snapping of #1580 but that's secondary and I'm not sure if that one handles PWL curves yet. @ilguido I agree with @iscgar comments (above) on this PR and using standard data structures instead of the solvespace Lists where possible and not introducing globals. |
|
You solution does "the right thing" when exporting the two samples I tried: unlike #1580 |
|
Exported STEPS files: |
|
The refactored code should be OK now. I further tested it, but I invite you to do your checks anyway. |
|
I've merged the other version of this PR. |

A simple workaround to export valid volumes in STEP format. Quick description:
I tested this with a good number of drawings already and it works.