-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate projection from export_svg
#75
Comments
You can assign this to me. |
Making progress. Separated the projection into a |
@jrmobley |
@Paul8043 @gumyr merged in that work, and I think he has done some fiddling with it as well, so I'm not sure about the exact status of the code. In any case, I'm willing to keep working on it to make sure it can do what you need, if it can't already. |
I've only done a little non-functional work on the code to start to get it to pass pylint. It will need unit testing, examples and documentation as well so there is a fair amount still to do. |
I still need a few days to port a cadquery-project to build123d. Coding with build123d makes fun. I like the architecture of build123d, especially the algebra-mode. Great work, thanks for this contribution. Let me know, when the projection-free SVG-exporter will be available. |
Done with commit 76c4f2e |
When exporting to SVG a projection is done of the Shape to create a set of visible and hidden Edges. These generated Edges are written to the SVG file. As such the projection is a general operation not specific to SVG. In addition, separation would potentially allow more control - when color is added to Shape objects (and potentially stroke width & stroke style to Edge/Wires) these attributes could be used directly when writing to SVG (or DXF?).
export_svg
would then expect planar Edges/Wires and be able to translate them to the XY plane for writing.The text was updated successfully, but these errors were encountered: