Graphics Programs Reference
In-Depth Information
40
35
30
25
20
15
10
5
10
20
30
40
50
60
70
80
90
100
This is an improvement. The corners are still the darkest spots of the
room, though the light intensity along the walls toward the middle of the
room (near x = 5) is diminishing as we move the bulbs further apart. To
better illuminate the darkest spots we should keep moving the bulbs apart.
Let's try lights at d = 1 and d = 9.
contourf(light2(X, Y, 1) + light2(X, Y, 9), 20);
axis equal tight
40
35
30
25
20
15
10
5
10
20
30
40
50
60
70
80
90
100
Looking along the long walls, the room is now darker toward the middle than
at the corners. This indicates that we have spread the lights too far apart.
We could proceed withfurther contour plots, but instead let's be
systematic about finding the best position for the lights. In general, we can
put one light at x = d and the other symmetrically at x = 10 d for d
between 0 and 5. Judging from the examples above, the darkest spots will be
Search WWH ::




Custom Search