Re: CURSOR skips a few beats :-( [message #69620 is a reply to message #69619] |
Fri, 29 January 2010 10:08   |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Jan 29, 3:04 pm, Gianguido Cianci <gianguido.cia...@gmail.com>
wrote:
> pp - I would not want to get the bounding polygon, but rather the path
> that joins the points. reading the docs right now. Thanks for pointing
> me in that direction :-)
I guess I was thinking of closed paths, with no crossovers, in which
case the bounding polygon is the same as the path. To get paths the
way you seem to want, use
oroi=obj_new('idlanroi',x,y,type=1)
instead. By default, an ROI is type 2 (closed polygon), but type 1
makes it a path.
Also, note that though IDLanROI is an object, it has nothing to do
with object graphics. It exists without having anything to do with any
graphics (object or direct), it is just defined from coordinates (as
in the artificial coordinates I made up). There is an object graphics
representation for ROIs (IDLgrROI), though that is a different object.
|
|
|