APPENDIX B MAP MAKER SOURCE CODE This appendix contains the code that was used to generate most of the maps used in this research. /* Written by: Erica Zawodny Date: Oct. 14, 2002 Title: maps Description: This program will produce a map using the file containing the map data. (mapdata.txt) Files Read: mapdata.txt N //# of obstacles radius xcenterl ycenterl //for obstacle 1 radius2 xcenter2 ycenter2 //for obstacle 2 radiusN xcenterN ycenterN Files Written: map.txt Contains the (x,y) points that make up each obstacle segments.txt xl yl x2 y2 segment 1 x2 y2 x3 y3 segment 2 xN yN xl yl Final segment NOTE: The final segment closes the polygon; The method used here is specific to square-shaped obstacles. */ #include "stdafx.h" #include #include #include #include