discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

vertices and paths of a polygon created via offset()

T
ticonzero2010
Tue, Nov 24, 2015 12:47 PM

Hi all!

I would like to draw a bunch of thin walled tubes with polygonal cross
section, I know I can do this by offsetting the inner polygon and I can
obtain the walls by difference and extrusion.

But then I need to replicate the difference shape which results in huge
memory and CPU cost. I can do the same thing by drawing the cross section as
a polygon with a hole but I need the vertices and the sides of the outer
polygon generated by offset().

does anyone know if it is possible to get the vertices and the paths
genrated by the offset() function ?

thanks!
Andrea

--
View this message in context: http://forum.openscad.org/vertices-and-paths-of-a-polygon-created-via-offset-tp14741.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi all! I would like to draw a bunch of thin walled tubes with polygonal cross section, I know I can do this by offsetting the inner polygon and I can obtain the walls by difference and extrusion. But then I need to replicate the difference shape which results in huge memory and CPU cost. I can do the same thing by drawing the cross section as a polygon with a hole but I need the vertices and the sides of the outer polygon generated by offset(). does anyone know if it is possible to get the vertices and the paths genrated by the offset() function ? thanks! Andrea -- View this message in context: http://forum.openscad.org/vertices-and-paths-of-a-polygon-created-via-offset-tp14741.html Sent from the OpenSCAD mailing list archive at Nabble.com.
N
Neon22
Thu, Nov 26, 2015 9:26 PM

alas its not currently possible to get the vertices from any operation.

  • Try to do your difference inside a loop might make it faster.
  • preparing the outlines in a program like Inkscape (in mm) and then
    exporting using a script like:

--
View this message in context: http://forum.openscad.org/vertices-and-paths-of-a-polygon-created-via-offset-tp14741p14773.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

alas its not currently possible to get the vertices from any operation. - Try to do your difference inside a loop might make it faster. - preparing the outlines in a program like Inkscape (in mm) and then exporting using a script like: - http://www.thingiverse.com/thing:1065500 might get you a simpler series of steps. -- View this message in context: http://forum.openscad.org/vertices-and-paths-of-a-polygon-created-via-offset-tp14741p14773.html Sent from the OpenSCAD mailing list archive at Nabble.com.
T
ticonzero2010
Fri, Nov 27, 2015 1:07 PM

many thanks for you message!

I ended up writing a matlab script to generate all the nodes then used
polygon to get the plate with the holes correctly.

--
View this message in context: http://forum.openscad.org/vertices-and-paths-of-a-polygon-created-via-offset-tp14741p14791.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

many thanks for you message! I ended up writing a matlab script to generate all the nodes then used polygon to get the plate with the holes correctly. -- View this message in context: http://forum.openscad.org/vertices-and-paths-of-a-polygon-created-via-offset-tp14741p14791.html Sent from the OpenSCAD mailing list archive at Nabble.com.