def face_area(occface): """ This function calculates the area of the OCCface. Parameters ---------- occface : OCCface The OCCface to be analysed. Returns ------- face area : float The area of the face. """ surface_area = Common.GpropsFromShape(occface).surface() return surface_area.Mass()
def face_area(occ_face): surface_area = Common.GpropsFromShape(occ_face).surface() return surface_area.Mass()