| Trees | Index | Help |
|
|---|
| Package svs_simulation :: Package terrain :: Module 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 thePolygon 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. |
| Function Summary | |
|---|---|
Factory for constructing floorplane object. | |
Creates inner margin within floorplane. | |
Factory for constructing floorplane object. | |
Structure
|
Converts data in SVG file to Structure object. |
Structure
|
Reads in data file for structure and creates it. |
Factory for constructing wallplane object. | |
Writes structure data to file. | |
_getTestPoint(vert1,
vert2)
| |
_intersectionPoint(line1,
line2)
| |
_linesAreParallel(line1,
line2)
| |
_makeInnerVertices(floorplane,
vert1,
vert2,
margin)
| |
| Function Details |
|---|
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.
|
createStructureFromSVSFile(filename)Reads in data file for structure and creates it.
|
createWallplane(vertices, density=1.0, height=1.0)Factory for constructing wallplane object. |
saveStructureToFile(structure, filename)Writes structure data to file. |
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Oct 20 15:30:28 2005 | http://epydoc.sf.net |