Loading openscad/libs/utilities.scad +12 −2 Original line number Diff line number Diff line Loading @@ -1280,7 +1280,17 @@ The cylinder lies in the y-direction, centred on the origin. This version has the rising chamfer in the positive x-direction, see tangent_to_cylinder_minus() for a rising chamfer in the negative x-direction. ### Example ### Example 1: The basic cube, tangent to a cylinder ```example $vpr = [90, 0, 0]; h = 40; rotate_x(90){ cylinder(r=3,h=h, center=true, $fn=32); } #tangent_to_cylinder_plus(r=3, h=h, angle=30, box=10); ``` ### Example 2: Used to create a cut-out with rounded corners, but a printable overhang angle ```example difference(){ translate_x(-20){ Loading @@ -1294,7 +1304,7 @@ difference(){ } h = 99; translate_y(h/2-1){ #tangent_to_cylinder_plus(r=3, angle=30, box=10); #tangent_to_cylinder_plus(r=3, h=h, angle=30, box=10); } } translate_z(5){ Loading Loading
openscad/libs/utilities.scad +12 −2 Original line number Diff line number Diff line Loading @@ -1280,7 +1280,17 @@ The cylinder lies in the y-direction, centred on the origin. This version has the rising chamfer in the positive x-direction, see tangent_to_cylinder_minus() for a rising chamfer in the negative x-direction. ### Example ### Example 1: The basic cube, tangent to a cylinder ```example $vpr = [90, 0, 0]; h = 40; rotate_x(90){ cylinder(r=3,h=h, center=true, $fn=32); } #tangent_to_cylinder_plus(r=3, h=h, angle=30, box=10); ``` ### Example 2: Used to create a cut-out with rounded corners, but a printable overhang angle ```example difference(){ translate_x(-20){ Loading @@ -1294,7 +1304,7 @@ difference(){ } h = 99; translate_y(h/2-1){ #tangent_to_cylinder_plus(r=3, angle=30, box=10); #tangent_to_cylinder_plus(r=3, h=h, angle=30, box=10); } } translate_z(5){ Loading