Author Topic: DistanceAtPoint for lwpoly  (Read 1906 times)

0 Members and 1 Guest are viewing this topic.

Bryco

  • Water Moccasin
  • Posts: 1883
DistanceAtPoint for lwpoly
« on: March 07, 2007, 12:35:21 AM »
I use Frank Oquendo's curve class for some math and since net, lisp  and c can access the math class I guess noone has messed with the subject. Well I thought I'ld would mess with it a bit for plines even if splines are way beyond me.  I found PtAtDistance to be fairly easy to achieve without having to find the center of the curves, hopefully involving less math.
But DistanceAtPoint has got me stonkered, to find where the point is on the pline I can't imagine how to not use the center. Eg. if bulge<>0 then if length (centerpt,Point)<>radius then goto nextsegment. I would rather use the info supplied by the bulge and the coordinates directly rather than find the center, etc.
Any ideas??

Bryco

  • Water Moccasin
  • Posts: 1883
Re: DistanceAtPoint for lwpoly
« Reply #1 on: March 08, 2007, 11:08:06 PM »
Hehe Definately a boring question, some people ask tha darndest!

robplatt

  • Guest
Re: DistanceAtPoint for lwpoly
« Reply #2 on: March 18, 2007, 01:07:33 AM »
Hi,
This is an amazing coincidence!
Should have read your message before asking my question (see Polylines and Mathematics).
If you've got further than me I'd like to hear about it.
Also can you enlighten me regarding: "Frank Oquendo's curve class"?
Thanks.