mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-06 14:56:47 +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 <sf_cylinder.scad>;
|
||||
use <sf_solidify.scad>
|
||||
use <../ptf/ptf_bend.scad>
|
||||
|
||||
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;
|
||||
surface = _sf_square_surfaces(levels, thickness, dp, invert);
|
||||
rows = len(levels);
|
||||
@@ -37,3 +42,4 @@ module sf_bend(levels, radius, thickness, depth, angle = 180, invert = false, co
|
||||
convexity = convexity
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user