Package svs_simulation :: Package terrain :: Module structures
[show private | hide private]
[frames | no frames]

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.

Function Summary
  createFloorplane(vertices, movementcost)
Factory for constructing floorplane object.
  createInnerMargin(floorplane, margin)
Creates inner margin within floorplane.
  createOutlineplane(vertices)
Factory for constructing floorplane object.
Structure createStructureFromSVGFile(filename)
Converts data in SVG file to Structure object.
Structure createStructureFromSVSFile(filename)
Reads in data file for structure and creates it.
  createWallplane(vertices, density, height)
Factory for constructing wallplane object.
  saveStructureToFile(structure, filename)
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.
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.

Generated by Epydoc 2.1 on Thu Oct 20 15:30:28 2005 http://epydoc.sf.net