Main Page   File List   File Members  

cuttingPlane.cpp File Reference

Create and draws an arbitrary cutting plane. More...

#include "stdheader.h"
#include <GL/glut.h>
#include <math.h>
#include <stdio.h>

Functions

float planeEq (int q1, int q2, int q3, float n1, float n2, float n3)
 Calculates if point Q lies on plane with normal N.

void calculateCuttingPlane ()
 Calculates cutting plane.


Detailed Description

Create and draws an arbitrary cutting plane.

Author:
Melvin Quintos
Date:
October 2002
We use a partial implementation of the "Marching Cubes" algorithm to draw an arbitrary cutting plane with normal N.


Function Documentation

float planeEq int    q1,
int    q2,
int    q3,
float    n1,
float    n2,
float    n3
[inline]
 

Calculates if point Q lies on plane with normal N.

See also:
calculateCuttingPlane()
Parameters:
q1  q2 q3 Coordinates of point Q, Q=<q1,q2,q3>
n1  n2 n3 Components of normal vector, N=<n1,n2,n3>
This function calculates if point Q lies on plane N and returns 0 if it is on the plane, <0 if it is less than, >0 if greater than.


Generated on Tue Nov 5 09:15:48 2002 for Project 1 by doxygen1.2.18