Align objects to ovoidal surface

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

Align objects to ovoidal surface

lynspyre
Hi,

I'm trying to make a parametric grenade housing, i've already done
everything except for the "texture" grenades have, that boxie shape that pop
off the surface.

Is there any way that I can align boxes to the surface of the object so I
can control size, alignment and other parameters?.

Thanks in advance.



--
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: Align objects to ovoidal surface

Troberg
There is no built-in functions for it, but with som math, it's doable.

There are several ways to go.

I think the easiest is to simply start with a sphere, make some rings and
use them to cut grooves using difference(). A little bit of math is needed
to get the diameter of the horizontal groves right, but not much, just basic
trig.

Then, use scale to turn it all into an ovoid. Be aware that this will
slightly affect the depth of the grooves as well, but, I assume you aren't
making a real grenade, just a prop, so "squint scale" is probably close
enough.

Just don't blow anyone up!



--
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: Align objects to ovoidal surface

cbernhardt
In reply to this post by lynspyre
I know that this is not exactly what you were looking for in that it is
definitely not "parametric".
I cheated and drew the pineapple grenade body and the "cutout" portion in
CAD and then "differenced" them in OpenSCAD.
I can send you the STL file or the DXF files if that would help.
Charles
<http://forum.openscad.org/file/t1309/grenade2.jpg>




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

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