22 Mar
2003
22 Mar
'03
9:32 p.m.
Saturday, March 22, 2003 Hans Hagen wrote:
I would like to know if it is possible in MetaPost (in particular MetaFun) to get all the possible intersection points of the paths,
[snip]
Anything like this?
HH> not that i know, but assuming that those path have some distance, i can HH> imagine dividing a path in parts and determining the intersectionpoints iof HH> the pieces; HH> delta := .25 ; HH> for i=0 step delta upto length(p)-delta : HH> if intersection_found(1,subpath(i,i+.1) of p) : HH> store point HH> fi ; HH> endfor ; I'll see if I can make something of this ... (wow, looks like I'm gonna need to learn MetaPost too ...) -- Giuseppe "Oblomov" Bilotta