offset command to polygon point array possible?

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

offset command to polygon point array possible?

memsfactory
Hi everyone,

First of all, thank you for keeping this forum going. I don't post much but
I read it avidly! :)

I'm trying to do some airfoil work and in my lofting code (borrowed from
others), I need to get back the list of points of the polygon that is
generated from the offset command.  Is there a way to do this?  

This is what I'm trying to do:

1. Take Airfoil1.dat points and create and array of points scaled to the
correct chord.
2. Use offset on the polygon created with Airfoi1 points to create thin
airfoil shell structure.
3. Then skin/loft this structure to another Airfoil2.dat which would be the
wing tip airfoil.

The skin/loft openscad code that I found, uses array of point to perform the
skin/loft function. This code will not take a polygon as its input.  Since
my objective is to use a non-NACA airfoil, I don't think I can use the Naca
sweep code library...by Parkinbot.  Atleast I don't think i can.

Thanks for reading.



--
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: offset command to polygon point array possible?

adrianv
I wrote an offset() function that takes a point list as input and produces
the offset point list as output.  It sounds like this is what you are
looking for. I contributed it to the BOSL2 library:

https://github.com/revarbat/BOSL2/wiki/regions.scad#offset


memsfactory wrote

> Hi everyone,
>
> First of all, thank you for keeping this forum going. I don't post much
> but
> I read it avidly! :)
>
> I'm trying to do some airfoil work and in my lofting code (borrowed from
> others), I need to get back the list of points of the polygon that is
> generated from the offset command.  Is there a way to do this?  
>
> This is what I'm trying to do:
>
> 1. Take Airfoil1.dat points and create and array of points scaled to the
> correct chord.
> 2. Use offset on the polygon created with Airfoi1 points to create thin
> airfoil shell structure.
> 3. Then skin/loft this structure to another Airfoil2.dat which would be
> the
> wing tip airfoil.
>
> The skin/loft openscad code that I found, uses array of point to perform
> the
> skin/loft function. This code will not take a polygon as its input.  Since
> my objective is to use a non-NACA airfoil, I don't think I can use the
> Naca
> sweep code library...by Parkinbot.  Atleast I don't think i can.
>
> Thanks for reading.
>
>
>
> --
> Sent from: http://forum.openscad.org/
>
> _______________________________________________
> OpenSCAD mailing list

> Discuss@.openscad

> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org





--
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: offset command to polygon point array possible?

memsfactory
Thank you! *Adrianv*

That is exactly what I needed.  I even have your BOSL2 library in a folder
called 'useful OpenSCAD libraries.'

 



--
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: offset command to polygon point array possible?

memsfactory
In reply to this post by adrianv
Thank you! *Adrianv*

That is exactly what I needed.  I even have your BOSL2 library in a folder
called 'useful OpenSCAD libraries.' But didn't realize that my solution was
already on my computer.

 



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

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