1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 10:14:41 +02:00
This commit is contained in:
Justin Lin
2019-09-26 08:17:30 +08:00
parent 0fc52bd023
commit 78f7b0b4aa

View File

@@ -29,8 +29,8 @@ module line3d(p1, p2, thickness, p1Style = "CAP_CIRCLE", p2Style = "CAP_CIRCLE")
module cap_with(p) {
translate(p)
rotate(angles)
children();
rotate(angles)
children();
}
module cap_butt() {
@@ -46,8 +46,8 @@ module line3d(p1, p2, thickness, p1Style = "CAP_CIRCLE", p2Style = "CAP_CIRCLE")
if(style == "CAP_CIRCLE") {
cap_leng = r / 1.414;
cap_with(p)
linear_extrude(cap_leng * 2, center = true)
circle(r, $fn = frags);
linear_extrude(cap_leng * 2, center = true)
circle(r, $fn = frags);
// hook for testing
test_line3d_cap(p, r, frags, cap_leng, angles);