Thingiverse
dumbSweep
von tpchuckles
1
Downloads
0
Likes
0
Makes
It seems all the existing sweep([listOfProfiles]) code I could find requires the profiles to all be planar on older versions of openSCAD (polyhedrons requiring planar faces: https://github.com/openscad/openscad/issues/2139). This didn't work for what I was doing (leaves, with a sweep to connect the areas between veins of leaves), so I wrote my own, capping the ends of the sweep with a zig-zag of triangles. If you're getting errors like the following, give this a shot. [ ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: ss_circle.has_on(sp) File: /usr/include/CGAL/Nef_3/polygon_mesh_to_nef_3.h Line: 263 ]
It does make some very strict assumptions on the profiles that are passed however:
profiles must all have the same number of points
the "top" and "bottom" of a profile must also have an equal number of points (this also means it will fail for certain more-complex profiles).
I figured i'd throw it up here in case anyone found it useful.
It does make some very strict assumptions on the profiles that are passed however:
profiles must all have the same number of points
the "top" and "bottom" of a profile must also have an equal number of points (this also means it will fail for certain more-complex profiles).
I figured i'd throw it up here in case anyone found it useful.
Hast du dieses Modell gedruckt? Einloggen und dein Make teilen!
Melde dich an, um einen Kommentar zu hinterlassen
AnmeldenNoch keine Kommentare – sei der Erste!