GRE::CLIPPING3D Class Reference

CLIPPING3D class. More...

#include <gre/3dclip.h>

List of all members.

Public Types

enum  PLANE {
  PLANE_X_P_W = 0, PLANE_X_M_W = 1, PLANE_Y_P_W = 2, PLANE_Y_M_W = 3,
  PLANE_Z_P_W = 4, PLANE_Z_M_W = 5, PLANE_Count = 6
}

Static Public Member Functions

bool ClipPoint (DPOINT3DH &point)
bool ClipPolygon (const DOUBLE_ARRAY< DPOINT3DH > &input, DOUBLE_ARRAY< DPOINT3DH > &output)
bool ClipSegment (DPOINT3DH &point1, DPOINT3DH &point2)


Detailed Description

CLIPPING3D class.

This class is designed to provide static clipping methods against unit cube {-1.0, 1.0] for each coordinate in homogenius coordinates.

Definition at line 43 of file 3dclip.h.


Member Enumeration Documentation

enum GRE::CLIPPING3D::PLANE
 

Enumeration values:
PLANE_X_P_W 
PLANE_X_M_W 
PLANE_Y_P_W 
PLANE_Y_M_W 
PLANE_Z_P_W 
PLANE_Z_M_W 
PLANE_Count 

Definition at line 46 of file 3dclip.h.


Member Function Documentation

bool GRE::CLIPPING3D::ClipPoint DPOINT3DH point  )  [static]
 

Clip point.

Returns:
true if point inside unit cube

bool GRE::CLIPPING3D::ClipPolygon const DOUBLE_ARRAY< DPOINT3DH > &  input,
DOUBLE_ARRAY< DPOINT3DH > &  output
[static]
 

Returns:
true if polygon intersects unit cube

bool GRE::CLIPPING3D::ClipSegment DPOINT3DH point1,
DPOINT3DH point2
[static]
 

Clip segment with endpoints point1 and point2.

If segment intersects unit cube than point1 and point2 contains endpoints of intersection in return.

Returns:
true if segment intersects unit cube


The documentation for this class was generated from the following file:
Generated on Wed May 31 15:29:30 2006 for TNTsdk by  doxygen 1.3.8-20040913