Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!stjhmc!p88.f15.n300.z1.fidonet.org!Lawson.English From: Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) Newsgroups: comp.sys.mac.programmer Subject: Re: Selecting lines Message-ID: <4747.27DDB39C@stjhmc.fidonet.org> Date: 11 Mar 91 18:21:58 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:300/15.88 - Tucson Apple Core, Tucson AZ Lines: 28 In article <> ba0k+@andrew.cmu.edu (Brian Patrick Arnold) writes: > I need a little help on finding a good algorithm for selecting lines >as objects, er, the detection of a mouse click "close enough" to a line. Jon W{tte writes in a message to All JW> The last time around, the consensus was to use QuickDraw: JW> Create an offscreen port with portBits just one/two/(your-marginal) JW> pixels wide & tall. Draw your stuff, from front to back, in this JW> port, and see when the portBits change. QuickDraw clipping makes JW> this quite fast. >- Brian I don't mean to be dense, but I couldn't quite get that... Could you expand on it a little? Thanks. Lawson -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English Internet: Lawson.English@p88.f15.n300.z1.fidonet.org