Why is this two line disjoint

Why is this two line disjoint

KM_Yotsuha
Advocate Advocate
258 Views
1 Reply
Message 1 of 2

Why is this two line disjoint

KM_Yotsuha
Advocate
Advocate

those two line's intersectresult is disjointed,why is that?

KM_Yotsuha_0-1661933712344.png

debug result:

KM_Yotsuha_1-1661933743141.png

 

the dwg file is in attachment

0 Likes
Accepted solutions (1)
259 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni
Accepted solution

Maybe they only just touch, and floating point inaccuracies cause the algorithm to report disjunct. Maybe you will get a result that better matches your specific requirements by determining the distance from the vertical line's endpoints to the horizontal line. Maybe the distance of the bottom one is very small, but non-zero. Maybe it will help for you to check out the recent repetition of the need for fuzz:

  

https://thebuildingcoder.typepad.com/blog/2022/08/instances-in-room-and-need-for-fuzz.html#3

   

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open