From 5c9ef60e04de105e5c5a12050a0e6d760ba281bc Mon Sep 17 00:00:00 2001 From: Timothy Schmidt Date: Fri, 21 Jan 2011 03:45:59 -0500 Subject: [PATCH] Some more potential mistakes and an OpenSCAD syntax error --- bitmap/alphabet_block.scad | 4 ++-- bitmap/bitmap.scad | 2 +- bitmap/height_map.scad | 2 +- bitmap/letter_necklace.scad | 4 ++-- bitmap/name_tag.scad | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bitmap/alphabet_block.scad b/bitmap/alphabet_block.scad index 85d8084..ff82cba 100644 --- a/bitmap/alphabet_block.scad +++ b/bitmap/alphabet_block.scad @@ -5,7 +5,7 @@ http://tonybuser.com http://creativecommons.org/licenses/by/3.0/ */ - +use // change to any letter letter = "A"; @@ -21,4 +21,4 @@ union() { translate(v = [10, 10, 15]) { 8bit_char(letter, 2, 5); } -} \ No newline at end of file +} diff --git a/bitmap/bitmap.scad b/bitmap/bitmap.scad index 6bb057a..3ae5db8 100644 --- a/bitmap/bitmap.scad +++ b/bitmap/bitmap.scad @@ -973,7 +973,7 @@ module 8bit_char(char, block_size, height, include_base) { 0,1,0,0,0,0,0,0, 0,0,0,0,0,0,0,0 ], block_size, height, 8); - } else if (char == "\") { + } else if (char == "\\") { bitmap([ 0,0,0,0,0,0,0,0, 0,1,1,0,0,0,0,0, diff --git a/bitmap/height_map.scad b/bitmap/height_map.scad index 6a5e4fa..0b75f56 100644 --- a/bitmap/height_map.scad +++ b/bitmap/height_map.scad @@ -9,7 +9,7 @@ Can also dynamically run this by passing an array on the command line: /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD -m make -D bitmap=[2,2,2,0,1,3,2,2,2] -D row_size=3 -s height_map.stl height_map.scad */ - +use block_size = 5; height = 5; diff --git a/bitmap/letter_necklace.scad b/bitmap/letter_necklace.scad index b19a3ab..8d35781 100644 --- a/bitmap/letter_necklace.scad +++ b/bitmap/letter_necklace.scad @@ -4,7 +4,7 @@ Elmo Mäntynen LGPL 2.1 */ -include +use // change chars array and char_count // OpenSCAD has no string or length methods :( @@ -46,7 +46,7 @@ module letter(char, block_size, height, hole_diameter) { } } -matrix = [["O", "L", "E", "N", "S",], +matrix = [["O", "L", "E", "N", "S"], [ "Y", "OE", "N", "Y", "T"]]; union() { diff --git a/bitmap/name_tag.scad b/bitmap/name_tag.scad index 78c7b7c..7687c54 100644 --- a/bitmap/name_tag.scad +++ b/bitmap/name_tag.scad @@ -5,7 +5,7 @@ http://tonybuser.com http://creativecommons.org/licenses/by/3.0/ */ - +use // change chars array and char_count // OpenSCAD has no string or length methods :(