Geometric Functions 3D

Function prototypes. More...

Functions

void Clip3DCompOutCodes (INT32 numpoints, DPOINT3D *point, UINT8 *outcode, double zmin, UINT32 flags)
int Clip3DFlatPolygon (DPOINT3D *ipoint, UINT8 *outcode, INT32 numIPoints, DPOINT3D *opoint, double ViewPlaneDist, UINT32 flags)
int Clip3DLine (DPOINT3D *p0, DPOINT3D *p1, double zmin, UINT32 flags)
int Clip3DLineParallel (DPOINT3D *p0, DPOINT3D *p1, UINT32 flags)
int Clip3DLinePerspective (DPOINT3D *p0, DPOINT3D *p1, double zmin, UINT32 flags)
int Clip3DTriangle (DPOINT3D **tp, UINT8 *outcode, DPOINT3D *opoint, double ViewPlaneDist, UINT32 flags)

Detailed Description

Function prototypes.

:Associate with "Geometric Functions (3D)"


Function Documentation

void Clip3DCompOutCodes ( INT32  numpoints,
DPOINT3D point,
UINT8 outcode,
double  zmin,
UINT32  flags 
)

Compute Cohen-Sutherland "out-codes" used in clipping.

int Clip3DFlatPolygon ( DPOINT3D ipoint,
UINT8 outcode,
INT32  numIPoints,
DPOINT3D opoint,
double  ViewPlaneDist,
UINT32  flags 
)

Clip flat polygon to canonical view volume.

Returns:
Number of boundary points, 0 if outside view volume.
Parameters:
opoint Boundary points returned.(Should be twice more than numIPoints)
int Clip3DLine ( DPOINT3D p0,
DPOINT3D p1,
double  zmin,
UINT32  flags 
)

Clip line against canonical view volume.

Parameters:
p0 Line starting point passed/returned.
p1 Line ending point passed/returned.
int Clip3DLineParallel ( DPOINT3D p0,
DPOINT3D p1,
UINT32  flags 
)

Clip line against canonical parallel-projection view volume.

Returns:
1 if line accepted (and clipped).
Parameters:
p0 Line starting point passed/returned
p1 Line ending point passed/returned
int Clip3DLinePerspective ( DPOINT3D p0,
DPOINT3D p1,
double  zmin,
UINT32  flags 
)

Clip line against canonical perspective-projection view volume.

Returns:
1 if line accepted (and clipped).
Parameters:
p0 Line starting point passed/returned.
p1 Line ending point passed/returned.
int Clip3DTriangle ( DPOINT3D **  tp,
UINT8 outcode,
DPOINT3D opoint,
double  ViewPlaneDist,
UINT32  flags 
)

Clip triangle to canonical view volume.

Returns:
Number of boundary points, 0 if outside view volume.
Parameters:
opoint Boundary points returned.

Generated on Sun Oct 7 21:33:02 2012 for TNTsdk 2012 by  doxygen 1.6.1