Module svs_simulation.terrain.structures
Classes for terrain structures.
A structure can be a building, path, river, etc. Any entity within the
terrain which can potentially be entered by an agent.
Support for polygonal forms in a structure are provided by the
Polygon library: http://www.dezentral.de/soft/Polygon/
Author: Simon Yuill
Contact: simon@lipparosa.org
Copyright: 2005 Simon Yuill
License: GNU GPL version 2 or any later version
| Classes |
FloorPlane |
Horizontal structural component that agents may move over. |
OutlinePlane |
Outerboundary of structure. |
Plane |
Generic component part of a structure. |
Structure |
Self contained spatial structure within a terrain, such as a building,
etc. |
WallPlane |
Vertical structural component that defines edge. |
createFloorplane(vertices,
movementcost=0.0)
Factory for constructing floorplane object.
-
|
createInnerMargin(floorplane,
margin)
Creates inner margin within floorplane.
This is used for simplifying collision by agents.
-
|
createOutlineplane(vertices)
Factory for constructing floorplane object.
-
|
createStructureFromSVGFile(filename)
Converts data in SVG file to Structure object.
-
- Returns:
-
Structure
|
createStructureFromSVSFile(filename)
Reads in data file for structure and creates it.
-
- Returns:
-
Structure
|
createWallplane(vertices,
density=1.0,
height=1.0)
Factory for constructing wallplane object.
-
|
saveStructureToFile(structure,
filename)
Writes structure data to file.
-
|