Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #1977
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.panservice.it!feed.xsnews.nl!border01.ams.xsnews.nl!feeder01.ams.xsnews.nl!frontend-F09-05.ams.news.kpn.nl |
|---|---|
| From | Cecil Westerhof <Cecil@decebal.nl> |
| Newsgroups | comp.lang.postscript |
| Subject | General function for regular convex polygons with arcs |
| Organization | Decebal Computing |
| X-Face | "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR<J%a^F2lh4[N~Yz4 nSp#c+aQo1b5=?HcNEkQ7QzF<])O3X4MDL/AYjys&*mt>,v+Pti8=Vi/Z"g^?b"E |
| X-Homepage | http://www.decebal.nl/ |
| Date | Sun, 17 Aug 2014 16:17:49 +0200 |
| Message-ID | <87ha1b6vzm.fsf@Equus.decebal.nl> (permalink) |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
| Cancel-Lock | sha1:Pj7jdH1Fy9LMqej5w4F24DBELw8= |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Lines | 16 |
| NNTP-Posting-Host | 77.171.42.144 |
| X-Trace | 1408285875 news.kpn.nl 756 77.171.42.144@kpn/77.171.42.144:46372 |
| Xref | csiph.com comp.lang.postscript:1977 |
Show key headers only | 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
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