comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » New Coyote Graphics Program: cgPolygon
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
New Coyote Graphics Program: cgPolygon [message #79744] Mon, 26 March 2012 09:28
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

Wayne Landsman had a bit of example code on here yesterday
that didn't work as advertised because the FILL keyword
had not been defined for TVEllipse. He has corrected
that this morning in the latest version of TVEllipse,
but it got me thinking about polygons.

Normally, if you just want to draw a polygon, you use
PlotS. If you want to draw a filled polygon, you use
PolyFill. This can make for some overly-complicated
code.

So, I decided this morning to write a very short
program, named cgPolygon, that can be used to
draw either a filled or unfilled polygon, depending
upon whether the FILL keyword is set. This should
make it much easier to work with polygons in the
future. You can find the new program here:

http://www.idlcoyote.com/programs/cgpolygon.pro

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Previous Topic: Re: IDLanROI->computeMask and "new" MASK_RULE for center points
Next Topic: Re: Regrid / Interpolation Question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:44:38 PDT 2025

Total time taken to generate the page: 0.00386 seconds