Skip to content

Instantly share code, notes, and snippets.

@thehans
thehans / gist:af1dc6bca07fbfddc27ddca99194ce95
Last active August 23, 2022 14:28
Cylinder extrude example for OpenSCAD
$fs = 2;
$fa = 2;
r_cyl = 10;
h_cyl = 100;
// Take a 2d shape and extrude outward (or inward with r_delta < 0)
// from a theoretical cylinder of given radius and height (centered).
// Input geometry should fit within the bounds of [-PI*r_cyl, -h/2] and [PI*r_cyl, h/2]
module cylinder_extrude(r_cyl, r_delta, h, eps=0.01) {
frags = fragments(r_cyl);
/*
* jQuery Double Tap
* Developer: Sergey Margaritov (github.com/attenzione)
* License: MIT
* Date: 22.10.2013
* Based on jquery documentation http://learn.jquery.com/events/event-extensions/
*/
(function($){