Visualization, Spring'98, Yap

HOMEWORK 3:
AUTOMATIC MODEL GENERATION

STREETS

A city street is conceptually polylines
with the following attributes (or parameters):
  1. name of street
  2. explicit list of intersections with other streets
  3. conventional direction of street (thus allowing us to speak of left or right side of street)
  4. one-way or two way street
  5. default width of street
  6. local variation in street width
  7. street details such as placement of street signs
  8. trees
  9. center partition
  10. fire hydrants
  11. parking meters
  12. width of sidewalk of each side
      BEGIN_STREET_RECORD

                STREET_ID = 1
                STREET_NAME = Broadway
                STREET_WIDTH = 50
                STREET_SIDEWALKWIDTH = 20
                STREET_START = {100.0, 100.0}
                STREET_END = {300.0, 500.0}
                STREET_DIVIDER = CENTER_SOLID
                STREET_NUM_PARKING_METERS = 100

                BEGIN_STREET_SEGMENT_BEGIN
                        SEG_ID = 1
                        SEG_START = {100.0, 100.0}
                        SEG_END = {200.0, 350.0}
                        SEG_SIDEWALK_WIDTH = 20
                        SEG_NUM_PARKING_METERS = 100
                        LEFT_BLOCK = 101
                        RIGHT_BLOCK = 102
                END_STREET_RECORD

                ...

                BEGIN_STREET_INTERSECTION
                        STREET_ID1 = 1
                        STREET_ID2 = 2
                        BEGIN_POLY
                                VERTEX = {100, 100}
                                VERTEX = {100, 105}
                                VERTEX = {105, 105}
                                VERTEX = {105, 100}
                        END_POLY
                END_STREET_INTERSECTION

                ...

        END_STREET_RECORD