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

Home » Public Forums » archive » Re: IDLgrPolygon unexpected result
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDLgrPolygon unexpected result [message #83381 is a reply to message #83380] Wed, 27 February 2013 12:23 Go to previous messageGo to previous message
DavidF[1] is currently offline  DavidF[1]
Messages: 94
Registered: April 2012
Member
On Wednesday, February 27, 2013 12:48:55 PM UTC-7, Coyote wrote:
> On Wednesday, February 27, 2013 12:43:00 PM UTC-7, nata wrote:
>
>> So, any ideas David ?
>
>>
>
>>
>
>>
>
>> I am not sure to understand what are you saying... right hand - left hand rules.. if you see the values of the X vertices, they are increasing, from 0 to 1.
>
>>
>
>> That should be ok from my point of view. I tried to use a smaller set of vertices and it works. I am missing something here...
>
>
>
> Well, I tried this:
>
>
>
> x=[0,1.0,reverse(x)]
>
> y=[0,0.0,reverse(y)]
>
> cgPLOT, x, y, /XS, /YS, color='red'
>
> cgcolorfill, color='blue', x, y
>
> poly=OBJ_NEW('IDLgrPolygon',x,y)
>
> XOBJVIEW, poly
>
>
>
> And this doesn't work either. :-)


This works, so the data must be going into the Polygon object correctly.

a=[0,1.0,reverse(x)]
b=[0,0.0,reverse(y)]
cgPLOT, a, b, /XS, /YS, color='red'
cgcolorfill, color='blue', a, b
poly=OBJ_NEW('IDLgrPolygon',a,b)
XOBJVIEW, poly
poly ->GetProperty, data=d
p = idlgrplot(d[0,*], d[1,*])
xobjview, p

David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: ps to jpeg conversion
Next Topic: Re: 3D array imaging with different colors

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

Current Time: Fri Oct 10 18:27:24 PDT 2025

Total time taken to generate the page: 0.48022 seconds