get_cshape_bbox

nrv.utils.geom.get_cshape_bbox(shape: CShape, looped_end: bool = False)[source]

Return the corners of the bounding box of a closed shape.

Parameters:
  • shape (CShape) – Shape whose bounding box is requested.

  • looped_end (bool, optional) – If True, repeat the first point at the end of the returned array.

Returns:

Bounding-box corner coordinates.

Return type:

np.ndarray