Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!agate!stanford.edu!leland.Stanford.EDU!mmaston From: mmaston@leland.Stanford.EDU (Michael Maston) Newsgroups: comp.sys.amiga.programmer Subject: Re: Clicking on irregular shapes? Message-ID: <1991Mar29.022042.14110@leland.Stanford.EDU> Date: 29 Mar 91 02:20:42 GMT References: <1991Mar27.212214.6204@orfeo.radig.de> <2710@sirius.ucs.adelaide.edu.au> <20181@cbmvax.commodore.com> Organization: AIR, Stanford University Lines: 22 This may be somewhat unrelated to the original intent of the author, but it seems to be along the same basic lines... I am currently developing a MacDraw II lookalike object-oriented drawing package. One of my chief concerns is being able to quickly determine which object on the screen has been chosen by a mouse-click. Now this is pretty straightforward for boxes, lines, circles and even ellipses, but how does one do this with say an object drawn with a freehand tool? I have experimented a lot with MacDraw and its algorithms are pretty good, even when objects are stacked on top of each other. Anyway, are there good references on this type of algorithm that the great gurus of the net can refer me to? By the way, all development is currently taking place on a pretty much stock 2000 with Lattice 5.1... Thanks!!! Michael Maston GTE Government Systems Mt. View, CA 94039