honeybee_plus.geometryoperation module

Collection of methods for geometrical operations.

honeybee_plus.geometryoperation.center_point_from_points(pts)[source]

Calculate center point.

This method finds the center point by averging x, y and z values.

honeybee_plus.geometryoperation.normal_from_points(pts)[source]

Calculate normal vector for a list of points.

This method uses the pts[-1], pts[0] and pts[1] to calculate the normal assuming the points are representing a planar surface

honeybee_plus.geometryoperation.strip_point_list(pts)[source]

Flatten a list of list of points.

honeybee_plus.geometryoperation.up_vector_from_points(pts)[source]

Calculate up vector for a surface from points.

honeybee_plus.geometryoperation.vector_angle(vector1, vector2)[source]

Calculate vector angle between two vectors.

honeybee_plus.geometryoperation.vector_angle_to_z_axis(vector)[source]

Calculate angle between vectoe and (0, 0, 1) in degrees.