Category : C Source Code
Archive   : GRAFGEM3.ZIP
Filename : GEOMETRY.H

 
Output of file : GEOMETRY.H contained in archive : GRAFGEM3.ZIP
// ******************************************************************
//
// Physically Correct Direct Lighting For Distribution Ray Tracing
// by Changyaw Wang
//
// geometry_object.h
//
// ******************************************************************

// Abstract class geom_obj may be subclassed to a particular type of
// object such as a sphere, or a triangle.

class point;

class geom_obj {
public:

// Selects a point visible from x given (r1,r2).
// Here, visible means not SELF-shadowed.

virtual void select_visible_point(
const point& x, // viewpoint
const double r1, // random number
const double r2, // random number
point& on_light, // point corresponding to (r1,r2)
double& prob); // probability of selecting on_light
};



  3 Responses to “Category : C Source Code
Archive   : GRAFGEM3.ZIP
Filename : GEOMETRY.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/