mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
Fixed #4105
This commit is contained in:
@@ -801,7 +801,7 @@ class AngleDecorator(BaseDecorator):
|
|||||||
angle_rad = acos(cos_a)
|
angle_rad = acos(cos_a)
|
||||||
angle = angle_rad / pi * 180
|
angle = angle_rad / pi * 180
|
||||||
except ZeroDivisionError:
|
except ZeroDivisionError:
|
||||||
angle = 0
|
angle_rad, angle = 0, 0
|
||||||
|
|
||||||
# calculate angle position
|
# calculate angle position
|
||||||
p0, p1, p2 = [location_3d_to_region_2d(region, region3d, p) for p in vertices[i0 : i1 + 2]]
|
p0, p1, p2 = [location_3d_to_region_2d(region, region3d, p) for p in vertices[i0 : i1 + 2]]
|
||||||
|
|||||||
Reference in New Issue
Block a user