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 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,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> 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 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