honeybee_ph_utils.polygon2d_tools module

Tools for working with Ladybug.geometry2d.Polygon2D objects.

honeybee_ph_utils.polygon2d_tools.counterclockwise_angle_between_2_Planes(_plane1: Plane, _plane2: Plane, _tolerance: float) float[source]

Return the counterclockwise angle (in radians) between two Plane’s X-Axes.

honeybee_ph_utils.polygon2d_tools.get_lbt_Face3D_planes(_lbt_face3Ds: List[Face3D]) List[Plane][source]

Return the LBT-Face3D Planes.

honeybee_ph_utils.polygon2d_tools.get_lbt_Face3D_polygon2Ds(_lbt_face3Ds: List[Face3D]) List[Polygon2D][source]

Return the LBT-Face3D Polygon2Ds.

honeybee_ph_utils.polygon2d_tools.merge_lbt_face_polygons(_lbt_face3Ds: List[Face3D], _tolerance: float) List[Polygon2D][source]

Merge together the Polygon2Ds of a list of LBT-Face3Ds.

honeybee_ph_utils.polygon2d_tools.merge_polygon_2ds(_lbt_polygon_2ds: List[Polygon2D], _tolerance: float) List[Polygon2D][source]

Merge together a list of Polygon2Ds.

honeybee_ph_utils.polygon2d_tools.move_vector_between_two_points(_point1: Point2D, _point2: Point2D) Vector2D[source]

Return a Vector2D from _point1 to _point2.

honeybee_ph_utils.polygon2d_tools.translate_polygon2D(_polygon2D: Polygon2D, _starting_plane: Plane, _target_plane: Plane, _tolerance: float) Polygon2D[source]

Translate (move, rotate) one Polygon2D from its own Plane into another.