RiConvexHull

Represents a general convex hull for use by the Rad system for culling objects

[ Rad | Source | Search | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION
IMPLEMENTATION

Class Summary

class RiConvexHull
{
public:
// Constructors and assignment
RiConvexHull();
// Accessors
void AddPoint(const RiVector3 &pnt);
RiVector3 GetPoint(int i) const;
int GetNumPoints() const;
protected:
}; // RiConvexHull


DESCRIPTION

Abstract away the notion of the region of space and RiRadObject occupies. Allows any object to do visibility checks on any other object without knowing what the other object is.


IMPLEMENTATION

Currently this is implement with a maximum number of points of 8. After 8, the hull is represented as a bounding box of the points.


RiConvexHull();

Default Constructor

    RiConvexHull();

void AddPoint(const RiVector3 &pnt);

Add a point to the hull. The resulting hull will contain all previous points, even if they aren't stored explicitly.

    void AddPoint(const  RiVector3 &pnt);

RiVector3 GetPoint(int i) const;

Get a point defining the hull

    RiVector3 		 GetPoint(int i) const;

int GetNumPoints() const;

Get the number of points defining the hull (<= number added)

    int			 GetNumPoints() const;

All Members

public:
// Accessors
void AddPoint(const RiVector3 &pnt);
RiVector3 GetPoint(int i) const;
int GetNumPoints() const;
protected:

Ancestors

Class does not inherit from any other class.


Descendants

Class is not inherited by any others.


Generated from source by the Cocoon utilities on Fri Feb 25 15:15:49 2000 .