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

Home » Public Forums » archive » Bug in mapped polygon objects?
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: Bug in mapped polygon objects? [message #91939 is a reply to message #91930] Mon, 21 September 2015 14:37 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
Thanks, Chris! That fix does look better than what I wrote. When the next IDl release is out with that fix, I will add a test in my code, so that my fix only gets compiled if the IDL version is 8.5 or lower.


On Wednesday, September 16, 2015 at 9:15:09 AM UTC-7, Chris Torrence wrote:
> Thanks Paulo,
> I just incorporated a slightly-different version of your fix into the IDL code.
> Cheers,
> Chris
> p.s. here's my code block:
>
> if (nsubvert lt nsubcolor) then begin
> ; If we have fewer vertices, just keep the first nsubvert colors.
> color1 = color1[*,0:nsubvert-1]
> endif else if (nsubvert gt nsubcolor) then begin
> ; If we have more vertices, just repeat the colors.
> index = LINDGEN(nsubvert) mod nsubcolor
> color1 = color1[*,index]
> endif
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: READ IMAGE
Next Topic: To reduce an n^2 problem

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

Current Time: Wed Oct 08 19:05:19 PDT 2025

Total time taken to generate the page: 0.00432 seconds