Calculates the Y length of the geometry :param geometry: Geometry output calculated by IfcOpenShell :return: The Y dimension
(geometry: W.Triangulation)
| 109 | |
| 110 | |
| 111 | def get_y(geometry: W.Triangulation) -> float: |
| 112 | """Calculates the Y length of the geometry |
| 113 | |
| 114 | :param geometry: Geometry output calculated by IfcOpenShell |
| 115 | :return: The Y dimension |
| 116 | """ |
| 117 | verts_flat = get_vertices(geometry).ravel() |
| 118 | return (np.max(verts_flat[1::3]) - np.min(verts_flat[1::3])).item() |
| 119 | |
| 120 | |
| 121 | def get_z(geometry: W.Triangulation) -> float: |
no test coverage detected