pyorc.CrossSection.get_bbox#
- CrossSection.get_bbox(h: float, length: float = 2.0, offset: float = 0.0) Polygon[source]#
Create a closed single bounding box for the cross section for use in the CameraConfig.
- Parameters:
h (float) – water level [m]
length (float, optional) – length of the cross-section lateral expansion (from up to downstream) [m], by default 2.0.
offset (float, optional) – perpendicular offset of the expanded cross section from the original cross section coordinates [m], by default 0.0.
- Returns:
polygon representing the bounding box of the camera config.
- Return type:
shapely.geometry.Polygon
See also
CrossSection.get_planar_surfacethis function retrieves separate polygons if the water crosses land multiple times