Skip to content

Commit

Permalink
phone_booth: log slot size
Browse files Browse the repository at this point in the history
  • Loading branch information
unixpickle committed Jul 11, 2024
1 parent 050aa0c commit acc7505
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/usable/phone_booth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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{}
Expand Down

0 comments on commit acc7505

Please sign in to comment.