Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Circle Line Intersection weirdness?

$
0
0

Hi,

What’s the logic behind letting lines intersect what seems like each and every circle in a scene?

For instance, the line in green intersects both circles 0 and 1, although it should only intersect circle 0 when interpreted as an infinite line.

Screenshot 2022-07-27 at 11.52.59

However, it finds an intersection with circle 1 as well (cf. GH panel)?

The same goes for “physical” line circle intersections?

Screenshot 2022-07-27 at 11.58.36

Here’s my script:

import Rhino.Geometry as rg

for i in range(len(C)):
    rc, t1, _, t2, _ = rg.Intersect.Intersection.LineCircle(L, C[i])
    print "Circle", i, ":", t1, t2, rc

Is this a bug?

line-circle-intersection-ghpyhton.gh (6.8 KB)

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles