CLIPPING3D class. More...
#include <gre/3dclip.h>
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) |
CLIPPING3D class.
This class is designed to provide static clipping methods against unit cube {-1.0, 1.0] for each coordinate in homogenius coordinates.
| static bool GRE::CLIPPING3D::ClipPoint | ( | DPOINT3DH & | point | ) | [static] |
Clip point.
| 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.
Clip segment with endpoints point1 and point2.
If segment intersects unit cube than point1 and point2 contains endpoints of intersection in return.
1.6.1