[comp.windows.x] 3-D X Windows

freyer@prlhp1.prl.philips.co.uk (freyer) (02/11/91)

Has anyone written a standard 3-D program using X-Windows to draw
a number of polygons, one on top of the other, so that the ones
at the back are hidden (or partly hidden) by the ones at the front ?
I would appreciate being sent the source code if you have such a
program.
The type of input data I need to plot (for eg.) is :-
	x = 1	y = 12	z = 1
	x = 2	y = 10	z = 1
	x = 3 	y = 9	z = 1
	x = 1	y = 15	z = 2
	x = 2	y = 6 	z = 2
	x = 3	y = 12	z = 2

In this eg. there are just two polygons ( z = 1, z = 2 ).
Note x values range from 1 to 3 in each case while the y values are
varied.  The polygon z = 2 should be plotted in front of the other
polygon.
		John Freyer

-- 

 John Freyer   freyer@prl.philips.co.uk