mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Fix variable name in code example
This commit is contained in:
@@ -335,8 +335,8 @@ multiple times.
|
|||||||
results = tree.select_ray(origin, direction, length=5.)
|
results = tree.select_ray(origin, direction, length=5.)
|
||||||
|
|
||||||
for result in results:
|
for result in results:
|
||||||
print(ifc_file.by_id(r.instance.id())) # The element the ray intersects with
|
print(ifc_file.by_id(result.instance.id())) # The element the ray intersects with
|
||||||
print(list(r.position)) # The XYZ intersection point
|
print(list(result.position)) # The XYZ intersection point
|
||||||
print(r.distance) # The distance between the ray origin and the intersection
|
print(result.distance) # The distance between the ray origin and the intersection
|
||||||
print(list(r.normal)) # The normal of the face being intersected
|
print(list(result.normal)) # The normal of the face being intersected
|
||||||
print(r.dot_product) # The dot product of the face being intersected with the ray
|
print(result.dot_product) # The dot product of the face being intersected with the ray
|
||||||
|
|||||||
Reference in New Issue
Block a user