discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

offset command to polygon point array possible?

M
memsfactory
Thu, Jan 30, 2020 6:08 PM

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/

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/
A
adrianv
Thu, Jan 30, 2020 9:51 PM

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

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/
M
memsfactory
Fri, Jan 31, 2020 1:48 AM

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/

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/
M
memsfactory
Fri, Jan 31, 2020 1:49 AM

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/

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/