mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 12:22:37 +00:00
Small fix in Raycast function ray_cast_by_proximity.
This commit is contained in:
@@ -176,7 +176,7 @@ class Raycast(bonsai.core.tool.Raycast):
|
|||||||
points.append([distance, (division_point, "Edge Center")])
|
points.append([distance, (division_point, "Edge Center")])
|
||||||
|
|
||||||
intersection = tool.Cad.intersect_edges_v2((ray_target, loc), (world_v1, world_v2))
|
intersection = tool.Cad.intersect_edges_v2((ray_target, loc), (world_v1, world_v2))
|
||||||
if intersection:
|
if intersection[0]:
|
||||||
if tool.Cad.is_point_on_edge(intersection[1], (world_v1, world_v2)):
|
if tool.Cad.is_point_on_edge(intersection[1], (world_v1, world_v2)):
|
||||||
distance = (intersection[1] - intersection[0]).length
|
distance = (intersection[1] - intersection[0]).length
|
||||||
if distance < 0.8:
|
if distance < 0.8:
|
||||||
|
|||||||
Reference in New Issue
Block a user