OpenSCAD: International Ruler of Mystery

Thanks! I tried to clean it up before posting it… lol

But looking at your attached SVG, I think you might have made a mistake editing it somewhere along the way. Not sure why the centimeter rule is longer than the inches, since the original code I wrote was only designed to do as many centimeters in length as you define in inches (if that makes sense).

Edit: Ah, I think I know what you did. Don’t change the “RulerWidth” or “RulerHeight” variables directly… change the W/H variables. I should have moved those two out of that top block, into the actual code rather than leaving them in a place someone might edit.

These are the only changes I think you need to make:

// RULER DIMENSIONS TO CREATE
//    I recommend NO LESS than 3/4-inch high for 6-inch wide rulers
//    and NO MORE than 1+1/4-inch high for 12-inch and longer rulers.
W=17; H=1+1/4;
 
// ENGRAVE CODE (don't render with CUT code)
//    Set all objects as NO LINE, SOLID FILL in Inkscape
addInchMarks();
addMilliMarks();
// Commented out to ignore the logo and bling
// addLogo();
// addBling();

Yielding the following:

:link: Download link

9 Likes

In process…

Back to you in 20 minutes.

6 Likes

Ha! I probably shouldn’t mention that I’m tweaking a version of my code even further to add 1/32th inch ticks along the 0-1 inch range, for extra accuracy where probably no one needs it… :smiley:

6 Likes

Finished

Non-PG Baltic Birch.

A quick buff with the sander and cross check against a metal ruler.

And the other measurement system.

17 Likes

I have to say, the fact that it’s a millimeter out of alignment after 4.5 inches isn’t thrilling me.

Also fun fact: My ruler design is based on the Westcott® rulers. I have about 4 of them. I love 'em.

5 Likes

Should be a right click on the image og the image of the ruler and save as. It’s an SVG.

I put 17+1/4 as the ruler length because I wanted to use the full extent of the available workspace and test it out. Would that be the correct way to enter that measuremement.

@jamesdhatch can verify this, but from the picture of the ruler along side the metal ruler, you can judge if it is correct or not. I kept saying that paralax enters into the photo because the metal ruler is lower than the wood. If the photo is taken overhead centered on the meter, the last ticks will be off because of paralax. People laughed at me and said the Glowforge was off. The ruler I printed is pretty accurate.

1 Like

Ah! Gotcha. That explains the underhang. The script only works with whole-number inch lengths for inches. Might have to add that as a future feature.

1 Like

I edited the post too and added something on paralax in reference to the inch ticks… And that’s ok, because we get more centimeters!

Well these are the two portions of the same image that I based my statement on:



So the metal ruler might be slightly bent and curving upwards (the shadow looks slightly wider around 8.5" than it does at 4") but I’d expect that to make the metal’s 8.5" to be less than the wood’s 8.5"… it’s clearly after it.

I have a hard time seeing how parallax can be used to account for such a closely placed scale, myself. But to be totally fair to the argument, that metal ruler should be pressed firmly flat to eliminate convex curving.

5 Likes

Yeah… No kidding. I’m sure this is one of those “This is a just pre-release. We’re working very hard to improve the accuracy of your Glowforge.”

Let’s face it, an inaccurate ruler isn’t a ruler at all. :wink:

7 Likes

I don’t know about @jamesdhatch’s ruler, AND I don’t have a Westcott metal ruler for comparison, but the tale of the tape for the run of the mill carpenter’s measuring tape over 17" is spot on visually.

4 Likes

I think that’s because of the kerf cut on the end (0). If I line up the 1" tick on both rulers the wooden one’s end is to the right of the 0 tick on the metal one - right next to it not covering it. If I line up the edge of the wooden one to the 0 tick then the 8 1/2 tick is to the left a bit vs the one on the metal ruler.

3 Likes

Hmmm… if you used the 17" ruler I attached, then the kerf I had set for it was 0.15mm left of the wood ruler’s 0 tick. So if it’s shorter than the metal’s edge – and one of the reasons I love the Westcott rulers is that they file them right down to 0 themselves – then that’s probably right.

Each of the marks are 0.25mm wide, and I used a kerf spacing of 0.15mm… so if the wood ruler edge is coming up on the right side of the metal’s 0-mark, then I can probably increase the kerf to about 0.30mm.

That’s good to know! Thanks!

2 Likes

Yay, Centimetres!

2 Likes

Very nice! (Out of likes!)

1 Like

When you use the ruler on its bottom edge, it becomes a rulre. :stuck_out_tongue_winking_eye:

10 Likes

It always was. Just some uninitiated countries have been spelling wrong the whole time.

1 Like

Glowforge has positioning precision to 0.001” (0.025mm) don’t you know, so the metal ruler must be off :astonished:

3 Likes

Ahem: A centimetre (international spelling as used by the International Bureau of Weights and Measures; symbol cm) or centimeter (American spelling) is a unit of length in the metric system, equal to one hundredth of a metre, centi being the SI prefix for a factor of 1⁄100.

:stuck_out_tongue:

5 Likes

Ouch!:blush:

That is what I will name my centimetre rulres from now on!

5 Likes