jupedsim.geometry#

Module Contents#

class Geometry(obj: jupedsim.native.Geometry)[source]#

Geometry object representing the area agents can move on.

Gain access to the simulation’s walkable area by calling:

sim.get_geometry()
Parameters:

obj (jupedsim.native.Geometry) –

boundary() list[tuple[float, float]][source]#

Access the boundary polygon of the walkable area.

Returns:

List of 2d points describing the polygon.

Return type:

list[tuple[float, float]]

holes() list[list[tuple[float, float]]][source]#

Access holes (inner boundaries) of the walkable area.

Returns:

A list of polygons forming holes inside the boundary.

Return type:

list[list[tuple[float, float]]]

as_wkt() str[source]#

_summary_

Returns:

_description_

Return type:

String