
I used the code from klein blue along with the following code snippet:
getGuy[x_, h_] := {Append[graphs[[x]][[2]][[1]], 0],
Append[graphs[[x]][[2]][[2]], h]};
hh = {graphs[[#]][[1]], Cuboid[getGuy[#, Round[8*Random[] + 1]]]} & /@
Range[Length[graphs]]; Manipulate[
Graphics3D[{hh[[1 ;; q]]}, Boxed -> False], {q, 1, Length[graphs],
1}]
It seems like the possibilities are endless.
1 comments:
what we should do here is have the probability of building height some function of position: as the buildings get closer to the "middle" they get taller just like real cities.
Post a Comment