mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-06 23:06:43 +02:00
use sf_cylinder if angle is 360
This commit is contained in:
@@ -9,10 +9,15 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
use <_impl/_sf_square_surfaces.scad>
|
use <_impl/_sf_square_surfaces.scad>
|
||||||
|
use <sf_cylinder.scad>;
|
||||||
use <sf_solidify.scad>
|
use <sf_solidify.scad>
|
||||||
use <../ptf/ptf_bend.scad>
|
use <../ptf/ptf_bend.scad>
|
||||||
|
|
||||||
module sf_bend(levels, radius, thickness, depth, angle = 180, invert = false, convexity = 1) {
|
module sf_bend(levels, radius, thickness, depth, angle = 180, invert = false, convexity = 1) {
|
||||||
|
if(angle == 360) {
|
||||||
|
sf_cylinder(levels, radius, thickness, depth, invert, convexity);
|
||||||
|
}
|
||||||
|
else {
|
||||||
dp = is_undef(depth) ? thickness / 2 : depth;
|
dp = is_undef(depth) ? thickness / 2 : depth;
|
||||||
surface = _sf_square_surfaces(levels, thickness, dp, invert);
|
surface = _sf_square_surfaces(levels, thickness, dp, invert);
|
||||||
rows = len(levels);
|
rows = len(levels);
|
||||||
@@ -36,4 +41,5 @@ module sf_bend(levels, radius, thickness, depth, angle = 180, invert = false, co
|
|||||||
],
|
],
|
||||||
convexity = convexity
|
convexity = convexity
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user