From 7a7c12b38ff2571dc6529f3b960b25232117f07f Mon Sep 17 00:00:00 2001
From: Sebastiaan de Schaetzen <sebastiaan.de.schaetzen@gmail.com>
Date: Fri, 17 Feb 2023 19:58:21 +0100
Subject: [PATCH] Add Plate_16x16 and reduce roundedness

---
 Lego.json | 5 +++++
 Lego.scad | 3 ++-
 Makefile  | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/Lego.json b/Lego.json
index 392c8e3..e75b83d 100644
--- a/Lego.json
+++ b/Lego.json
@@ -15,6 +15,11 @@
             "studs_x": "2",
             "studs_y": "1"
         },
+        "Plate_16x16": {
+            "type": "plate",
+            "studs_x": "16",
+            "studs_y": "16"
+        },
         "Plate_4x2": {
             "type": "plate",
             "studs_x": "4",
diff --git a/Lego.scad b/Lego.scad
index 8a6d972..28816ed 100644
--- a/Lego.scad
+++ b/Lego.scad
@@ -10,7 +10,7 @@ block_height =
 	type == "plate" ? 3.2 :
 	0;
 length_per_stud = 31.8 / 4;
-stud_details = 4 * ($preview ? 5 : 10);
+stud_details = 4 * ($preview ? 5 : 5);
 wall_width = 1.6;
 ceiling_width = 1;
 
@@ -93,6 +93,7 @@ module block() {
 }
 
 difference() {
+	color([0.9, 0.8, 0])
 	block();
 	if (slice_x) {
 		translate([10, -10, -10])
diff --git a/Makefile b/Makefile
index e5ef710..9384085 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ webpage: thumbnails $(INDEX)
 
 $(STL) $(PNG): $(SCAD) $(CONFIG) Makefile
 	mkdir -p $(@D)
-	openscad -o $@ -p $(CONFIG) -P $(basename $(@F)) $(SCAD)
+	openscad -o $@ -p $(CONFIG) -P $(basename $(@F)) --camera=0,0,0,60,0,135,0 --autocenter --viewall $(SCAD)
 
 $(INDEX): header.html entry.html footer.html Makefile
 	cat header.html | sed "s/%date/`date '+%Y-%m-%d at %T'`/g" | sed "s/%version/`git describe --always --dirty`/g" > $@