mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-18 12:31:17 +02:00
don't have to worry about fn <= 4
This commit is contained in:
@@ -39,7 +39,7 @@ module line3d(p1, p2, thickness, p1Style = "CAP_CIRCLE", p2Style = "CAP_CIRCLE")
|
|||||||
circle(r, $fn = frags_of_4);
|
circle(r, $fn = frags_of_4);
|
||||||
}
|
}
|
||||||
|
|
||||||
module capCube(p) {
|
module capCircle(p) {
|
||||||
w = r / 1.414;
|
w = r / 1.414;
|
||||||
translate(p)
|
translate(p)
|
||||||
rotate([0, ay, az])
|
rotate([0, ay, az])
|
||||||
@@ -56,13 +56,9 @@ module line3d(p1, p2, thickness, p1Style = "CAP_CIRCLE", p2Style = "CAP_CIRCLE")
|
|||||||
|
|
||||||
module cap(p, style) {
|
module cap(p, style) {
|
||||||
if(style == "CAP_CIRCLE") {
|
if(style == "CAP_CIRCLE") {
|
||||||
capCube(p);
|
capCircle(p);
|
||||||
} else if(style == "CAP_SPHERE") {
|
} else if(style == "CAP_SPHERE") {
|
||||||
if(frags > 4) {
|
capSphere(p);
|
||||||
capSphere(p);
|
|
||||||
} else {
|
|
||||||
capCube(p);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user