xmsgrid  1.0
triangles.h File Reference

Functions dealing with triangles. More...

#include <vector>
#include <xmscore/points/pt.h>
#include <xmscore/stl/vector.h>

Go to the source code of this file.

Namespaces

 xms
 XMS Namespace.
 

Functions

double xms::trArea (const Pt3d &a_pt1, const Pt3d &a_pt2, const Pt3d &a_pt3)
 Return the signed planar area of the triangle (CCW Positive). More...
 
void xms::trBuildGridPolys (int rows, int cols, VecPt3d &pts, VecInt2d &polys)
 Build something like this: More...
 
void xms::trBuildGridTrianglePolys (int rows, int cols, VecPt3d &a_points, VecInt2d &a_polys)
 Create something like this: More...
 
int xms::trIncrementIndex (int i)
 Faster than a % operation and we do this a lot. More...
 
int xms::trDecrementIndex (int i)
 Faster than a % operation and we do this a lot. More...
 

Detailed Description

Functions dealing with triangles.

Definition in file triangles.h.