[OpenSCAD] Generate a solid cad model from available math functions

Ronaldo Persiano rcmpersiano at gmail.com
Wed Jan 10 10:45:30 EST 2018


You need to define a polygon
<https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#polygon>
by its vertices. Something like:

verts = [for(i=[0:nverts-1]) [ i/verts, f(i/nverts) ] ];
polygon(verts);


This would be the upper part.

2018-01-10 13:32 GMT-02:00 Katt <saideep.pavuluri at pet.hw.ac.uk>:

> Hi all;
>
> I have two math functions from which I am interested to generate a CAD
> model.
>
> Attached is a picture for what I am looking for but not sure how to do it.
> <http://forum.openscad.org/file/t2047/cad_model.png>
>
> The border line equations are given and the shaded black region is the one
> i
> want to generate. Also note that the third dimension does not matter for me
> as I am looking at a 2D case. It can be any flexible value.
>
> Thanks!!
>
>
>
>
>
> --
> Sent from: http://forum.openscad.org/
>
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20180110/308e3227/attachment-0002.html>


More information about the Discuss mailing list