This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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($){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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); |