precision problem -need help

Hi,
I made two little scripts to find the intersection of two vectors, one by picking 4 vertices, one by selecting 2 edges of same polyobject.
Problem is that if sometimes it look ok, sometimes it seems to lack of precision.
Is somebody can help.
thanks

AttachmentSize
yoko-intersect_edge.mcr1.01 KB
yoko-intersect.mcr1.01 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
TsveTan's picture

.

I think you can make such thing only 2D.
You can find intersection point of two lines (edges) using the equation of a line through 2 points. I have the solution if u need it (2D).

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.