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

Function get_max_xyz

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

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

(geometry: W.Triangulation)

Source from the content-addressed store, hash-verified

138
139
140def get_max_xyz(geometry: W.Triangulation) -> float:
141 """Gets the maximum X, Y, or Z length of the geometry
142
143 :param geometry: Geometry output calculated by IfcOpenShell
144 :return: The maximum possible value out of the X, Y, and Z dimension
145 """
146 return max(get_x(geometry), get_y(geometry), get_z(geometry))
147
148
149def get_min_xyz(geometry: W.Triangulation) -> float:

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