mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-14 02:34:12 +02:00
format
This commit is contained in:
@@ -29,8 +29,8 @@ module line3d(p1, p2, thickness, p1Style = "CAP_CIRCLE", p2Style = "CAP_CIRCLE")
|
|||||||
|
|
||||||
module cap_with(p) {
|
module cap_with(p) {
|
||||||
translate(p)
|
translate(p)
|
||||||
rotate(angles)
|
rotate(angles)
|
||||||
children();
|
children();
|
||||||
}
|
}
|
||||||
|
|
||||||
module cap_butt() {
|
module cap_butt() {
|
||||||
@@ -46,8 +46,8 @@ module line3d(p1, p2, thickness, p1Style = "CAP_CIRCLE", p2Style = "CAP_CIRCLE")
|
|||||||
if(style == "CAP_CIRCLE") {
|
if(style == "CAP_CIRCLE") {
|
||||||
cap_leng = r / 1.414;
|
cap_leng = r / 1.414;
|
||||||
cap_with(p)
|
cap_with(p)
|
||||||
linear_extrude(cap_leng * 2, center = true)
|
linear_extrude(cap_leng * 2, center = true)
|
||||||
circle(r, $fn = frags);
|
circle(r, $fn = frags);
|
||||||
|
|
||||||
// hook for testing
|
// hook for testing
|
||||||
test_line3d_cap(p, r, frags, cap_leng, angles);
|
test_line3d_cap(p, r, frags, cap_leng, angles);
|
||||||
|
Reference in New Issue
Block a user