From 476eb42ec7bafe565c263129c98cbe6b2d524270 Mon Sep 17 00:00:00 2001 From: Richard Milewski Date: Sat, 3 Feb 2024 00:36:12 -0800 Subject: [PATCH] Update Rounding the Cube.md --- tutorials/Rounding the Cube.md | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/tutorials/Rounding the Cube.md b/tutorials/Rounding the Cube.md index 53052e1..503f682 100644 --- a/tutorials/Rounding the Cube.md +++ b/tutorials/Rounding the Cube.md @@ -98,21 +98,13 @@ cuboid([100,80,60], rounding=20, except = [[1,0,1,0],[0,1,0,1],[1,0,0,1]]); ###Negative Rounding -You can fillet top or bottom edges by using negative rounding values. Note that you cannot use negative rounding values on Z-aligned (side) edges. +You can fillet top or bottom edges by using negative rounding values. Note that you cannot use negative rounding values on Z-aligned (side) edges. If you need to add a fillet on a Z-aligned edge, use [fillet()](https://github.com/BelfrySCAD/BOSL2/wiki/shapes3d.scad#module-fillet): ```openscad-3D include cuboid([100,80,60], rounding=-20, edges = BOTTOM); ``` -If you need to add a fillet on a Z-aligned edge, use [fillet()](https://github.com/BelfrySCAD/BOSL2/wiki/shapes3d.scad#module-fillet): - -```openscad-3D -include -cuboid([100,80,60], rounding = -10, edges = BOT+FRONT) - position(FRONT+RIGHT) - fillet(l=60, r=10, spin=180); -``` ###Chamfering @@ -315,6 +307,27 @@ right(30){ } ``` +Alternatively, we can keep k constant at k=0.5 and vary the joint length: + +```openscad-3D;ImgOnly NoScales Med VPD=170 VPR=[75,0,25] +include +include + left(30) { + rounded_prism(rect(20), height=20, joint_top=1, joint_bot=1, joint_sides=1, k = 0.5); + move([0,-13,-13]) xrot(90) color("black") text3d("joint=1", size=3, h = 0.01, anchor= CENTER); +} + +right(0){ + rounded_prism(rect(20), height=20, joint_top=5, joint_bot=5, joint_sides=5, k = 0.5); + move([0,-13,-13]) xrot(90) color("black") text3d("joint=5", size=3, h = 0.01, anchor= CENTER); +} + +right(30){ + rounded_prism(rect(20), height=20, joint_top=9, joint_bot=9, joint_sides=9, k = 0.5); + move([0,-13,-13]) xrot(90) color("black") text3d("joint=9", size=3, h = 0.01, anchor= CENTER); +} +``` + You can match the cicrular roundover of cuboid() by setting the joint values to the rounding used in cuboid() and setting the k value to 0.93: ```openscad-3D: Med