discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Please explain error I made on torus

JT
John Tucker
Sun, Jun 12, 2016 3:12 AM

Took a break to do something "arty" rather then my usual mechanical stuff. At
the core was a torus that I defined as:

rotate_extrude(convexity = 10, $fn = 64)
translate([5, 0, 0])
circle(r = 1, $fn = 64);

Never checked the dimensions in blender and rest was visually scaled about the
torus. Got the print back today and torus is exactly 2X too big.  I checked:
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/2D_Primitives
and see:
"d  : circle diameter (only available in versions later than 2014.03. Debian
is currently know to be behind"
Behind? I'm running Debian and so using OpenSCAD 2012.05.26 (maybe some decade
they'll update).
The cross section diameter on the print is 4mm Dia., the OD of the ring =28mm
and the ID=20mm and that makes no sense to me.
TIA for explanation.

Took a break to do something "arty" rather then my usual mechanical stuff. At the core was a torus that I defined as: rotate_extrude(convexity = 10, $fn = 64) translate([5, 0, 0]) circle(r = 1, $fn = 64); Never checked the dimensions in blender and rest was visually scaled about the torus. Got the print back today and torus is exactly 2X too big. I checked: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/2D_Primitives and see: "d : circle diameter (only available in versions later than 2014.03. Debian is currently know to be behind" Behind? I'm running Debian and so using OpenSCAD 2012.05.26 (maybe some decade they'll update). The cross section diameter on the print is 4mm Dia., the OD of the ring =28mm and the ID=20mm and that makes no sense to me. TIA for explanation.
M
MichaelAtOz
Sun, Jun 12, 2016 5:18 AM

John Tucker wrote

Got the print back today and torus is exactly 2X too big.
The cross section diameter on the print is 4mm Dia., the OD of the ring
=28mm
and the ID=20mm and that makes no sense to me.
TIA for explanation.

My best guess is inches v's mm and a badly calibrated printer(?)

ID from OpenSCAD 8mm x 2.54 (inch) = 20.32
OD  "          "        12mm  "                = 30.48 (~28mm?)
Cross section d "    2mm  "                = 5.08 (~4mm?)


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/Please-explain-error-I-made-on-torus-tp17651p17652.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

John Tucker wrote > Got the print back today and torus is exactly 2X too big. > The cross section diameter on the print is 4mm Dia., the OD of the ring > =28mm > and the ID=20mm and that makes no sense to me. > TIA for explanation. My best guess is inches v's mm and a badly calibrated printer(?) ID from OpenSCAD 8mm x 2.54 (inch) = 20.32 OD " " 12mm " = 30.48 (~28mm?) Cross section d " 2mm " = 5.08 (~4mm?) ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/Please-explain-error-I-made-on-torus-tp17651p17652.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Sun, Jun 12, 2016 5:19 AM

forgot this
http://forum.openscad.org/file/n17653/td17651.jpg


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/Please-explain-error-I-made-on-torus-tp17651p17653.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

forgot this <http://forum.openscad.org/file/n17653/td17651.jpg> ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/Please-explain-error-I-made-on-torus-tp17651p17653.html Sent from the OpenSCAD mailing list archive at Nabble.com.
MK
Marius Kintel
Sun, Jun 12, 2016 12:07 PM

I agree with Michael,

Either, the code you posted isn’t accurate, or someone messed up the printing configuration pretty badly.
Since you’re using “r=“ for the circle, the “d=“ doesn’t apply. Even if it did, it wouldn’t magically turn it into a radius.

-Marius

I agree with Michael, Either, the code you posted isn’t accurate, or someone messed up the printing configuration pretty badly. Since you’re using “r=“ for the circle, the “d=“ doesn’t apply. Even if it did, it wouldn’t magically turn it into a radius. -Marius