MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_min_xyz

Function get_min_xyz

src/ifcopenshell-python/ifcopenshell/util/shape.py:149–155  ·  view source on GitHub ↗

Gets the minimum X, Y, or Z length of the geometry :param geometry: Geometry output calculated by IfcOpenShell :return: The minimum possible value out of the X, Y, and Z dimension

(geometry: W.Triangulation)

Source from the content-addressed store, hash-verified

147
148
149def get_min_xyz(geometry: W.Triangulation) -> float:
150 """Gets the minimum X, Y, or Z length of the geometry
151
152 :param geometry: Geometry output calculated by IfcOpenShell
153 :return: The minimum possible value out of the X, Y, and Z dimension
154 """
155 return min(get_x(geometry), get_y(geometry), get_z(geometry))
156
157
158def get_shape_matrix(shape: ShapeElementType) -> MatrixType:

Callers

nothing calls this directly

Calls 3

get_xFunction · 0.70
get_yFunction · 0.70
get_zFunction · 0.70

Tested by

no test coverage detected