mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Bug fixes for measure tool in area type with imperial units.
This commit is contained in:
@@ -746,7 +746,7 @@ class PolylineDecorator:
|
||||
self.draw_batch("LINES", [*z_axis], decorator_color_z_axis, [(0, 1)])
|
||||
|
||||
# Area highlight
|
||||
area = polyline_data.area
|
||||
_, area = tool.Polyline.validate_input(polyline_data.area, "AREA")
|
||||
if area:
|
||||
if float(area) > 0:
|
||||
tris = self.calculate_polygon(polyline_verts)
|
||||
|
||||
@@ -437,7 +437,7 @@ class MeasureDecorator:
|
||||
self.draw_batch("LINES", [*z_axis], decorator_color_z_axis, [(0, 1)])
|
||||
|
||||
# Area highlight
|
||||
area = polyline_data.area
|
||||
_, area = tool.Polyline.validate_input(polyline_data.area, "AREA")
|
||||
if area:
|
||||
if float(area) > 0:
|
||||
tris, _ = self.calculate_polygon(polyline_verts)
|
||||
|
||||
Reference in New Issue
Block a user