Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #1977

General function for regular convex polygons with arcs

From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.postscript
Subject General function for regular convex polygons with arcs
Organization Decebal Computing
Date 2014-08-17 16:17 +0200
Message-ID <87ha1b6vzm.fsf@Equus.decebal.nl> (permalink)

Show all headers | View raw


I want to write a function to draw regular convex polygons with arcs
instead of straight lines. I made an approximation for a square with:
     20    -34.5  40   60  120  arc
    -34.5   20    40  330   30  arc
     20     74.5  40  240  300  arc
     74.5   20    40  150  210  arc
    stroke

How would I make a function that would do this for convex polygons
with sides from 3 to 12 in a correct way? (If you do a ‘4  dup  scale’
on my example you see it is not more as an approximation.)

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Back to comp.lang.postscript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

General function for regular convex polygons with arcs Cecil Westerhof <Cecil@decebal.nl> - 2014-08-17 16:17 +0200
  Re: General function for regular convex polygons with arcs jdaw1 <jdawiseman@gmail.com> - 2014-08-17 12:56 -0700
    Re: General function for regular convex polygons with arcs Cecil Westerhof <Cecil@decebal.nl> - 2014-08-18 10:52 +0200
      Re: General function for regular convex polygons with arcs jdaw1 <jdawiseman@gmail.com> - 2014-08-18 10:49 -0700
      Re: General function for regular convex polygons with arcs luser- -droog <mijoryx@yahoo.com> - 2014-08-18 22:52 -0700
  Re: General function for regular convex polygons with arcs luser- -droog <mijoryx@yahoo.com> - 2014-08-18 23:05 -0700

csiph-web