DRAW SURFACES Z=F(X,Y) IN VISUAL C++


Load the project (*.ZIP) by clicking the appropriate button.

SURFACES.ZIP
Project Description

DRAW SURFACES Z=F(X,Y) REMOVING HIDDEN SECTIONS


To eliminate hidden lines in drawing a surface of equation Z=F(X,Y), we use here the "floating horizons" technique. The main idea consists in converting the difficult 3D problem into a simpler 2D one by cutting the surface by a series of planes, parallel to one of the projection planes. Here we chose cutting planes parallel to the XZ plane, i.e. Y variable will have an increasing series of values defining each one a cutting plane. The surface equation is then reduced to a 2D curve Z=F(X) in each parallel plane where Y is a constant.


RETURN


© J-P Moreau Last modified 09/18/2006 - E-mail: jpmoreau@orange.fr