[docs]classGeometry:"""Geometry object representing the area agents can move on. Gain access to the simulation's walkable area by calling: .. code :: python sim.get_geometry() """def__init__(self,obj:py_jps.Geometry):self._obj=obj
[docs]defboundary(self)->list[tuple[float,float]]:"""Access the boundary polygon of the walkable area. Returns: List of 2d points describing the polygon. """returnself._obj.boundary()
[docs]defholes(self)->list[list[tuple[float,float]]]:"""Access holes (inner boundaries) of the walkable area. Returns: A list of polygons forming holes inside the boundary. """returnself._obj.holes()