From d9312ae7a8ab2b2df75c82eb08ba7ac0a6c288de Mon Sep 17 00:00:00 2001 From: Joel Ebel Date: Wed, 16 May 2018 00:27:45 -0400 Subject: [PATCH] Improve subtraction on interior rails There was some artifacting and errors resulting from the inner rails not producing a valid 2-manifold object. Make the rails larger so they interect the box, and make the subtraction the full height and width of the box so the boundary isn't indeterminate. --- files/U_Box_V104_Test_Cleaned.scad | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/files/U_Box_V104_Test_Cleaned.scad b/files/U_Box_V104_Test_Cleaned.scad index bfddc37..40673b9 100644 --- a/files/U_Box_V104_Test_Cleaned.scad +++ b/files/U_Box_V104_Test_Cleaned.scad @@ -195,15 +195,13 @@ module Coque() { //Coque - Shell } } //Fin diff Coque difference() { //largeur Rails - translate([Thick + PanelThick + m, Thick, Thick]) { // Rails + translate([Thick + PanelThick + m, Thick/2, Thick/2]) { // Rails RoundBox($a=(Length - ((Thick + PanelThick + m)*2)), - $b=(Width - Thick*2), - $c=(Height - Thick*2)); + $b=(Width - Thick), + $c=(Height - Thick)); } //fin Rails - translate([Thick*2 + PanelThick + m, Thick, Thick]) { - RoundBox($a=(Length - ((Thick*2 + PanelThick + m) * 2)), - $b=(Width - Thick*2), - $c=(Height - Thick*2)); + translate([Thick*2 + PanelThick + m, 0, 0]) { + RoundBox($a=(Length - ((Thick*2 + PanelThick + m) * 2))); } } //Fin largeur Rails } //Fin union