opttritri.cc File Reference

#include "opttritri.h"
#include "controls.h"

Include dependency graph for opttritri.cc:


Functions

int coplanar_tri_tri (vector3 &N, vector3 const *V0, vector3 const *V1, vector3 const *V2, vector3 const *U0, vector3 const *U1, vector3 const *U2)
int NoDivTriTriIsect (vector3 const *V0, vector3 const *V1, vector3 const *V2, vector3 const *U0, vector3 const *U1, vector3 const *U2)
int intersect_triangle3 (vector3 const *orig, vector3 const *end, vector3 const *normal, vector3 const *vert0, vector3 const *vert1, vector3 const *vert2, result &r)

Function Documentation

int coplanar_tri_tri ( vector3 N,
vector3 const *  V0,
vector3 const *  V1,
vector3 const *  V2,
vector3 const *  U0,
vector3 const *  U1,
vector3 const *  U2 
)

Determine whether two coplanar triangles intersect.

Parameters:
[in] N Not sure what this is.
[in] V0 First vertex of first triangle.
[in] V1 second vertex of first triangle.
[in] V2 Third vertex of first triangle.
[in] U0 First vertex of second triangle.
[in] U1 second vertex of second triangle.
[in] U2 Third vertex of second triangle.
Returns:
1 if triangles intersect; 0 otherwise.

int intersect_triangle3 ( vector3 const *  orig,
vector3 const *  end,
vector3 const *  normal,
vector3 const *  vert0,
vector3 const *  vert1,
vector3 const *  vert2,
result r 
)

Determine if line segment and triangle intersect.

Parameters:
[in] orig One end of line segment.
[in] end Other end of line segment.
[in] normal Normal vector of triangle.
[in] vert0 First vertex of triangle.
[in] vert1 second vertex of triangle.
[in] vert2 Third vertex of triangle.
[out] r Record whether line intersects triange along line segment; whether line intersects triangle; and whether line intersects edge of triangle.
Returns:
1 if triangles intersect; 0 otherwise.

int NoDivTriTriIsect ( vector3 const *  V0,
vector3 const *  V1,
vector3 const *  V2,
vector3 const *  U0,
vector3 const *  U1,
vector3 const *  U2 
)

Determine whether two triangles intersect.

Parameters:
[in] V0 First vertex of first triangle.
[in] V1 second vertex of first triangle.
[in] V2 Third vertex of first triangle.
[in] U0 First vertex of second triangle.
[in] U1 second vertex of second triangle.
[in] U2 Third vertex of second triangle.
Returns:
1 if triangles intersect; 0 otherwise.


Generated on Fri Feb 13 13:58:23 2009 for meshmorph by  doxygen 1.5.1