Question: b ) Hidden Surface Elimination concept: Complete Problem 6 . 9 ( page 2 2 3 ) of the textbook. Write a java program to

b) Hidden Surface Elimination concept: Complete Problem 6.9(page 223) of the
textbook. Write a java program to generate the 3D data file for the steps shown
in Fig. 6.21. The program should take in command-line arguments for the
number of steps ' n ' and step dimensions (length of each step ' a ', angle between
two successive steps in degrees 'alpha').
In other words, after compiling your program, you may run it by typing the
following as an example:
java Beams 420 steps.dat
where n=4,a=2, alpha =0, and steps. dat is the generated output data file.
The generated output data file can be viewed by running Painter.java or
ZBuf.java in Chapter 6 and then loading the data file. A sample data file
"steps.dat" may be downloaded from eLearning for you to view it in action. The
work will be evaluated on the following test cases
n=4,a=2, alpha =0
n=10,a=4, alpha =18
n=30,a=2,alpha=12
Fig. 6.21 Steps
6.9. Write a 3D data file (using a text editor) for the steps shown in Fig. 6.21. Apply
the programs Painter.java and ZBuf.java to it. Can you write a program to
generate such data files? In such a program, the number of steps and the
dimensions should preferably be variable.
Can you help me please
b ) Hidden Surface Elimination concept: Complete

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!