Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #1982
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.panservice.it!feed.xsnews.nl!border02.ams.xsnews.nl!feeder01.ams.xsnews.nl!frontend-F10-14.ams.news.kpn.nl |
|---|---|
| From | Cecil Westerhof <Cecil@decebal.nl> |
| Newsgroups | comp.lang.postscript |
| Subject | Re: General function for regular convex polygons with arcs |
| Organization | Decebal Computing |
| References | <87ha1b6vzm.fsf@Equus.decebal.nl> <66e35f14-34ca-4bd6-88a4-dd572b1f9ccb@googlegroups.com> |
| 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 | Mon, 18 Aug 2014 10:52:36 +0200 |
| Message-ID | <878umm6uy3.fsf@Equus.decebal.nl> (permalink) |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
| Cancel-Lock | sha1:m3obnvl3LUJjOfZEBqis27O6qpM= |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| Lines | 27 |
| NNTP-Posting-Host | 77.171.42.144 |
| X-Trace | 1408352474 news.kpn.nl 20705 77.171.42.144@kpn/77.171.42.144:40078 |
| Xref | csiph.com comp.lang.postscript:1982 |
Show key headers only | View raw
Op Sunday 17 Aug 2014 21:56 CEST schreef jdaw1: > Well, it depends on what you want to do. If you describe the > underlying motivation, that might help force the choice of > algorithm. Well I would like to have a function (arcedConvexPolygon) that takes (at least) number of sides and sideLength. It draws the figure in such a way that it fits in a rectangle with sides sideLength. With sides 3 it draws a triangle with inside arcs instead of straight lines. With sides 4 it draws a square with inside arcs instead of straight lines. (A better variant of my example.) Etcetera. Two interesting extensions could be: the centre point of the figure and the rotation. Default the first line is drawn at the base, but with rotation this could be changed. I do not ask for a complete function: I like to write it myself. (Is a good learning experience. In writing postscript and in writing graphical routines.) I need just some pointers to get me on my way. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof
Back to comp.lang.postscript | Previous | Next — Previous in thread | 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