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

Home » Public Forums » archive » Passing an array of color values into polyfill
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Passing an array of color values into polyfill [message #92728] Wed, 17 February 2016 17:13 Go to next message
emgrono is currently offline  emgrono
Messages: 7
Registered: April 2015
Junior Member
Hello! Is it possible to pass an array of color values into polyfill? The documentation on the color keyword says it can accept a vector, but I haven't been able to figure what this vector should look like yet. I'm trying to eliminate a loop where I draw each polygon individually. Polyfill has the ability to draw multiple shapes in one call, but if I can't give each a unique color it isn't terribly useful for me.

Thanks!
Re: Passing an array of color values into polyfill [message #92733 is a reply to message #92728] Thu, 18 February 2016 15:14 Go to previous messageGo to next message
emgrono is currently offline  emgrono
Messages: 7
Registered: April 2015
Junior Member
Yesterday I made some example arrays containing corner locations for two shapes (i.e. x,y with dimension 5,2) and drawing them both in one call worked. However, today I tried to draw more than two shapes at the same time and it drew weird connecting polygons between them. So beyond two shapes it does not seem to be able to draw more than one at a time, which doesn't help me at all.
Re: Passing an array of color values into polyfill [message #92735 is a reply to message #92733] Fri, 19 February 2016 02:37 Go to previous messageGo to next message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
"The POLYFILL procedure fills the interior of a region of the display enclosed by an arbitrary two or three-dimensional polygon."

That means a single polygon for me.

regards,
Lajos



On Friday, February 19, 2016 at 12:14:31 AM UTC+1, emg...@gmail.com wrote:

"> Yesterday I made some example arrays containing corner locations for two shapes (i.e. x,y with dimension 5,2) and drawing them both in one call worked. However, today I tried to draw more than two shapes at the same time and it drew weird connecting polygons between them. So beyond two shapes it does not seem to be able to draw more than one at a time, which doesn't help me at all.
Re: Passing an array of color values into polyfill [message #92736 is a reply to message #92728] Fri, 19 February 2016 05:03 Go to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Doesn't look like polyfill uses an array of COLORs to deal with multiple polygons, but with the multiple corners of the single polygon.

"Gouraud shading of polygons is performed with the Z-buffer graphics output device and POLYFILL procedure when COLOR contains an array of color specifications, one for each vertex."
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL Licence error in Macbook pro Yosemite
Next Topic: Adding or averaging multiple grid arrays returns all NaNs

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

Current Time: Wed Oct 08 09:09:18 PDT 2025

Total time taken to generate the page: 0.00578 seconds