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

Home » Public Forums » archive » Strange behaviour of IDLgrPolygon
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Strange behaviour of IDLgrPolygon [message #92232] Tue, 03 November 2015 13:16 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Hi guys,


Why in the following example the polygon only appears while we are clicking a mouse?

;; ------------------------------------------------------------ ----------
model = obj_new('IDLgrModel')

f = filepath('people.jpg', subdir=['examples', 'data'])
ali = read_image(f)
texture = obj_new('IDLgrImage', ali)

tcoords = [[0.0, 1.0], [0.0, 0.0], [1.0, 0.0], [1.0, 1.0]]
polygon = obj_new('IDLgrPolygon', tcoords, polygons=[4, 0, 1, 2, 3], $
color=[255, 255, 255], $
texture_map=texture, texture_interp=1, $
texture_coord=tcoords)

model->add, polygon

xobjview, model
;; ------------------------------------------------------------ ----------

I don't see the logic...
Thank you in advance for you help,

nata
[Message index]
 
Read Message
Read Message
Previous Topic: not an IDL question.... scrolling in nedit
Next Topic: Re: how to read the block data

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

Current Time: Wed Oct 08 09:20:33 PDT 2025

Total time taken to generate the page: 0.00453 seconds