Jeroen March 14, 1999, 02:41 PM 

ROME wrote: >>Hi, I am researching the hierarchy of my upcoming 3D engine and so want to get the >>inhieritance correct etc. Here is my question: Concerning the following classes: Polygon3D >>and Plane. Should I have my Polygon3D inherit the properties of the Plane class (as it is >>a type of plane ) or should I include the Plane Class inside Polygon3D's member data?? (ie. >>use it as an object instead). ?? Thanks..
Well, a plane goes on into infinity and a polygon doesn't. Therefore, a polygon (a finite set of points in space) is a subset of the plane (an infinite number of points) in which it lies. But in practice, a plane is only used for certain operations on a polygon. Personally, I would define a completely different class for both, and let the polygon have a member of class Plane.
Jeroen
