bounding_cuboid

menpo.shape.bounding_cuboid(near_closest_to_origin, far_opposite_corner)[source]

Return a bounding cuboid from the near closest and far opposite corners as a directed graph.

Parameters
  • near_closest_to_origin ((float, float, float)) – Three floats representing the coordinates of the near corner closest to the origin.

  • far_opposite_corner ((float, float, float)) – Three floats representing the coordinates of the far opposite corner compared to near_closest_to_origin.

Returns

bounding_box (PointDirectedGraph) – The axis aligned bounding cuboid from the two given corners.