Calculates the Z length of the geometry :param geometry: Geometry output calculated by IfcOpenShell :return: The Z dimension
(geometry: W.Triangulation)
| 119 | |
| 120 | |
| 121 | def get_z(geometry: W.Triangulation) -> float: |
| 122 | """Calculates the Z length of the geometry |
| 123 | |
| 124 | :param geometry: Geometry output calculated by IfcOpenShell |
| 125 | :return: The Z dimension |
| 126 | """ |
| 127 | verts_flat = get_vertices(geometry).ravel() |
| 128 | return (np.max(verts_flat[2::3]) - np.min(verts_flat[2::3])).item() |
| 129 | |
| 130 | |
| 131 | def get_max_xy(geometry: W.Triangulation) -> float: |
no test coverage detected