1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00

deleted unnecessary code

This commit is contained in:
Justin Lin 2017-05-14 11:18:38 +08:00
parent f8e9cea5ad
commit b2dc8393b7

View File

@ -21,9 +21,6 @@ module rounded_cylinder(radius, h, round_r, convexity = 2, center = false) {
function round_frags(sector_angle) = __frags(round_r) * sector_angle / 360; function round_frags(sector_angle) = __frags(round_r) * sector_angle / 360;
function step_a(sector_angle, round_frags) =
sector_angle / round_frags;
b_ang = atan2(h, r1 - r2); b_ang = atan2(h, r1 - r2);
b_sector_angle = 180 - b_ang; b_sector_angle = 180 - b_ang;
b_leng = r1 - round_r / tan(b_ang / 2); b_leng = r1 - round_r / tan(b_ang / 2);