diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_window_representation.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_window_representation.py index 36848e7883..7ca50c2348 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_window_representation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_window_representation.py @@ -27,6 +27,7 @@ import numpy as np import ifcopenshell.api.geometry import ifcopenshell.util.unit from ifcopenshell.util.shape_builder import ShapeBuilder, V +from ifcopenshell.util.unit import mm_to_m as mm # SCHEMAS describe panels setup # where: @@ -59,11 +60,6 @@ DEFAULT_PANEL_SCHEMAS = { } -def mm(x: float) -> float: - """mm to meters shortcut for readability""" - return x / 1000 - - def create_ifc_window_frame_simple( builder: ShapeBuilder, size: np.ndarray, thickness: Union[list[float], float], position: Optional[np.ndarray] = None ) -> list[ifcopenshell.entity_instance]: