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

Function get_area

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

Calculates the surface area of the geometry :param geometry: Geometry output calculated by IfcOpenShell :return: The surface area.

(geometry: W.Triangulation)

Source from the content-addressed store, hash-verified

459
460
461def get_area(geometry: W.Triangulation) -> float:
462 """Calculates the surface area of the geometry
463
464 :param geometry: Geometry output calculated by IfcOpenShell
465 :return: The surface area.
466 """
467 vertices = get_vertices(geometry)
468 faces = get_faces(geometry)
469 return get_area_vf(vertices, faces)
470
471
472def get_side_area(

Callers

nothing calls this directly

Calls 3

get_verticesFunction · 0.85
get_facesFunction · 0.85
get_area_vfFunction · 0.85

Tested by

no test coverage detected