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

static bool ClipPoint (DPOINT3DH &point)
static bool ClipPolygon (const DOUBLE_ARRAY< DPOINT3DH > &input, DOUBLE_ARRAY< DPOINT3DH > &output)
static 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.


Member Enumeration Documentation

Enumerator:
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 

Member Function Documentation

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

Clip point.

Returns:
true if point inside unit cube
static bool GRE::CLIPPING3D::ClipPolygon ( const DOUBLE_ARRAY< DPOINT3DH > &  input,
DOUBLE_ARRAY< DPOINT3DH > &  output 
) [static]

Clip plane polygon input.

If polygon intersects unit cube than output contains polygon of intersection in return.

Returns:
true if polygon intersects unit cube
static 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 Sun Oct 7 21:34:06 2012 for TNTsdk 2012 by  doxygen 1.6.1