From acc75059318d0d03b22a7645d3c6054d88eddd5a Mon Sep 17 00:00:00 2001 From: Alex Nichol Date: Thu, 11 Jul 2024 15:31:31 -0400 Subject: [PATCH] phone_booth: log slot size --- examples/usable/phone_booth/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/usable/phone_booth/main.go b/examples/usable/phone_booth/main.go index 1b58980..38a5290 100644 --- a/examples/usable/phone_booth/main.go +++ b/examples/usable/phone_booth/main.go @@ -154,7 +154,7 @@ func BodySolid(a *Args) (model3d.Solid, float64) { } // Cut out for slot - cuts = append(cuts, model3d.NewRect( + slot := model3d.NewRect( model3d.XYZ( -a.SideLength/2+a.CornerMargin-a.SlotExtraEdge, a.SideLength/2-a.DividerThickness-a.SlotThickness, @@ -165,7 +165,9 @@ func BodySolid(a *Args) (model3d.Solid, float64) { a.SideLength/2-a.DividerThickness, a.Height-headingHeight+a.SlotExtraEdge, ), - )) + ) + cuts = append(cuts, slot) + log.Printf("Slot size: %f x %f", slot.Max().X-slot.Min().X, slot.Max().Z-slot.Min().Z) // Cut out all four sides, with radial symmetry. allCuts := model3d.JoinedSolid{}