feature request: conical extrude (#273): limiting scale to small number

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

feature request: conical extrude (#273): limiting scale to small number

Peter Falke

With a conical extrude there will be a problem if the scale goes to zero. The object would be non-manifold if the extruded shape contained any holes or was made from disjointed polygons.

To avoid this effect, I tried the option of limiting the scale to a small number and that worked great:

// scale
function s0(t)=1-t/(tmax-tmin);
function s(t)=(abs(s0(t))<=s_min)?s_min:s0(t);

Most people will not even notice.
One could use a global variable for the minimum scale: $s_min

Sample code attached.

Inline images 1

And a blow-up of the tip:

Inline images 2



[hidden email]

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.


OpenSCAD mailing list
[hidden email]
http://openscad.org - https://flattr.com/thing/121566

extrudepathhullv0_1_scale zero.scad (4K) Download Attachment