Polygon simplification option upon 2D file import #1748
pruj-speed
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks,
I have been using cadquery to convert 2d polygons into 3D. It has been working great so far. I notice that the gds and dxf representation of curved geometries is a bunch of line segments. When I extrude them to 3D I end up with a bunch of surfaces that take up a lot of memory. On my most recent 2d to 3D conversion I ended up with a step file of ~ 1GB. I manually recreated a similar geometry where I defined the curved surfaces as a 3D primitive and see a 10X drop in file size. This is due to far fewer surfaces.
I did a google search and looks like this is an option in several commerical packages
I think this will be a great feature for folks who work with 2D layouts and convert it to 3D. Of course not sure how challenging it would be to implement this pipeline.
Sharing an example polygon that I was extruding for illustration
When I export to STEP the raw polyline based solid is ~240KB, the one with the spline results in ~38KB.
Beta Was this translation helpful? Give feedback.
All reactions