Discussion:
[OpenSCAD] Align objects to ovoidal surface
lynspyre
2018-10-09 02:50:15 UTC
Permalink
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/
Troberg
2018-10-09 06:51:31 UTC
Permalink
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/
cbernhardt
2018-10-15 16:25:38 UTC
Permalink
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
<Loading Image...>




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

Loading...