There's a glitch with my dimensions...

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

There's a glitch with my dimensions...

gounthar
Hi there,

I'm a total beginner with OpenSCAD, and a novice regarding CAD.
I used to work with a pencil and a piece of paper, and it was during the
last century...
Anyway, I spent some time with onShape and produced  this
<https://github.com/gounthar/MerryKombo/blob/CAD/Box%20Base%20With%20Raspi%20Before%20Router%20Addition%20Drawing%201.pdf>
.
I'd like to do the same kind of thing with OpenSCAD, so I started with a
small part of this design, the lens support.
Here is my source file:
https://github.com/gounthar/MerryKombo/blob/CAD/camera-support.scad
<https://github.com/gounthar/MerryKombo/blob/CAD/camera-support.scad>  .
I should maybe have started with the center and used mirror(), but anyway,
it is what it is.

The problem I have is that I was expecting the pillars to be 3.6mm high, but
they're not, something around 2mm high (see  there
<https://github.com/gounthar/MerryKombo/blob/CAD/camera-support.png>  ).

I must have missed something essential with OpenSCAD, because it can't be a
bug, it has to be a huge misunderstanding on my side.

So... what did I do wrong?

Thanks in advance,

Bruno



--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: There's a glitch with my dimensions...

nophead
I think it is because you have centered the cylinder, so only half is below the origin and the other half embedded in the block.

On Wed, 24 Jul 2019 at 13:21, gounthar <[hidden email]> wrote:
Hi there,

I'm a total beginner with OpenSCAD, and a novice regarding CAD.
I used to work with a pencil and a piece of paper, and it was during the
last century...
Anyway, I spent some time with onShape and produced  this
<https://github.com/gounthar/MerryKombo/blob/CAD/Box%20Base%20With%20Raspi%20Before%20Router%20Addition%20Drawing%201.pdf>
.
I'd like to do the same kind of thing with OpenSCAD, so I started with a
small part of this design, the lens support.
Here is my source file:
https://github.com/gounthar/MerryKombo/blob/CAD/camera-support.scad
<https://github.com/gounthar/MerryKombo/blob/CAD/camera-support.scad>  .
I should maybe have started with the center and used mirror(), but anyway,
it is what it is.

The problem I have is that I was expecting the pillars to be 3.6mm high, but
they're not, something around 2mm high (see  there
<https://github.com/gounthar/MerryKombo/blob/CAD/camera-support.png>  ).

I must have missed something essential with OpenSCAD, because it can't be a
bug, it has to be a huge misunderstanding on my side.

So... what did I do wrong?

Thanks in advance,

Bruno



--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: There's a glitch with my dimensions...

gounthar
Thanks for the tip, I will change it and see what happens.

On Wed, Jul 24, 2019 at 2:41 PM nop head <[hidden email]> wrote:
I think it is because you have centered the cylinder, so only half is below the origin and the other half embedded in the block.

On Wed, 24 Jul 2019 at 13:21, gounthar <[hidden email]> wrote:
Hi there,

I'm a total beginner with OpenSCAD, and a novice regarding CAD.
I used to work with a pencil and a piece of paper, and it was during the
last century...
Anyway, I spent some time with onShape and produced  this
<https://github.com/gounthar/MerryKombo/blob/CAD/Box%20Base%20With%20Raspi%20Before%20Router%20Addition%20Drawing%201.pdf>
.
I'd like to do the same kind of thing with OpenSCAD, so I started with a
small part of this design, the lens support.
Here is my source file:
https://github.com/gounthar/MerryKombo/blob/CAD/camera-support.scad
<https://github.com/gounthar/MerryKombo/blob/CAD/camera-support.scad>  .
I should maybe have started with the center and used mirror(), but anyway,
it is what it is.

The problem I have is that I was expecting the pillars to be 3.6mm high, but
they're not, something around 2mm high (see  there
<https://github.com/gounthar/MerryKombo/blob/CAD/camera-support.png>  ).

I must have missed something essential with OpenSCAD, because it can't be a
bug, it has to be a huge misunderstanding on my side.

So... what did I do wrong?

Thanks in advance,

Bruno



--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


--
Bruno Verachten

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: There's a glitch with my dimensions...

gounthar
I changed the pillar module, and it now works: module pillar() { difference() { translate([PANEL_THICKNESS,HOLE_CENTER_TO_SIDE,HOLE_CENTER_TO_SIDE]) rotate(a=90, v=[0,1,0]) cylinder(h=PILLAR_HEIGHT,r=PILLAR_RADIUS, center=false, $fn=200); translate([PANEL_THICKNESS,HOLE_CENTER_TO_SIDE,HOLE_CENTER_TO_SIDE]) rotate(a=90, v=[0,1,0]) cylinder(h=PILLAR_HEIGHT + 0.1,r=HOLE_RADIUS, center=false, $fn=200); } } The corrected pillars.

Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org