Hi ..These 3 examples ( StartRules Street1, Street2, Street3 ) should show what the ideas are behind the splitting strategies.Run the code and check what the code produces. See the image attached.[ATTACH=CONFIG]21828[/ATTACH]
attr width_1 = 5
Street1 -->
split(v,unitSpace,0){width_1 : Red | ~1 : Green}
attr myLaneWidth = 3
Street2 -->
split(v,unitSpace,0){width_1 : Red | ~1 : RestShape}
RestShape -->
split(v,unitSpace,0){~myLaneWidth : Green }*
attr medianWidth = 1
Street3 -->
split(v,unitSpace,0){~1 : MultiLane | medianWidth : Green | ~1 : MultiLane}
MultiLane -->
split(v,unitSpace,0){~myLaneWidth : Red }*
Red -->
color(1,0,0)
Green -->
color(0,1,