From 9202a01802d746a02ac693217ea2816aba6a45c5 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 28 Mar 2019 18:15:35 +0000 Subject: [PATCH] new proportions --- .gitignore | 1 + namensschild.html | 4 ++-- namensschild.scad | 6 +++--- print.js | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 916f908..8cf0c1c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ __pycache__ node_modules static +namensschild.stl diff --git a/namensschild.html b/namensschild.html index c5166c0..dd39b05 100644 --- a/namensschild.html +++ b/namensschild.html @@ -30,8 +30,8 @@ height: el.offsetHeight } browserSize = { - width: 192, - height: 72 + width: 180, + height: 60 } factor = Math.min(browserSize.height / elSize.height, browserSize.width / elSize.width) el.style.transform = `scale(${factor})` diff --git a/namensschild.scad b/namensschild.scad index b44a879..3638359 100644 --- a/namensschild.scad +++ b/namensschild.scad @@ -1,9 +1,9 @@ $fn=64; //$fn=32; -length = 20; +length = 16.67; width = 50; -name_length = 15; +name_length = 13.33; name_width = 40; height = 2; height_plate = 1; @@ -36,5 +36,5 @@ difference() { } } - translate([width-2.5, length-2.5, 0]) linear_extrude(height_plate) circle(r=1.75); + translate([width-2.5, length-2.5, 0]) linear_extrude(height_plate) circle(r=1.9); } diff --git a/print.js b/print.js index 835bc01..d9ca678 100644 --- a/print.js +++ b/print.js @@ -16,8 +16,8 @@ const name = process.argv[2]; await page.$eval('#name', (el, name) => { el.innerText = name; setSize() }, name) await page.pdf({ path: `static/namensschild.pdf`, - width: '192px', - height: '72px' + width: '180px', + height: '60px' }) await browser.close()