SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
CompGeom.h File Reference
#include <Core/GeometryPrimitives/Point.h>
#include <Core/GeometryPrimitives/Vector.h>
#include <Core/Math/MusilRNG.h>
#include <vector>
#include <Core/GeometryPrimitives/share.h>

Go to the source code of this file.

Namespaces

 SCIRun
 STL datatypes needed.
 
 SCIRun::Core
 
 SCIRun::Core::Geometry
 

Functions

double distance_to_line2 (const Point &p, const Point &a, const Point &b, const double epsilon)
 
void distance_to_line2_aux (Point &result, const Point &p, const Point &a, const Point &b, const double epsilon)
 
void distance_to_line2_aux (Point &result, int &node, const Point &p, const Point &a, const Point &b, const double epsilon)
 
void closest_point_on_tri (Point &result, const Point &orig, const Point &p0, const Point &p1, const Point &p2, const double epsilon)
 
void closest_point_on_tri (Point &result, int &edge, int &node, const Point &orig, const Point &p0, const Point &p1, const Point &p2, const double epsilon)
 
void est_closest_point_on_quad (Point &result, const Point &orig, const Point &p0, const Point &p1, const Point &p2, const Point &p3, const double epsilon)
 
double RayPlaneIntersection (const Point &p, const Vector &dir, const Point &p0, const Vector &pn, const double epsilon)
 
bool RayTriangleIntersection (double &t, double &u, double &v, bool backface_cull, const Point &orig, const Vector &dir, const Point &p0, const Point &p1, const Point &p2, const double epsilon)
 
bool closest_line_to_line (double &s, double &t, const Point &a0, const Point &a1, const Point &b0, const Point &b1, const double epsilon)
 
void TriTriIntersection (const Point &A0, const Point &A1, const Point &A2, const Point &B0, const Point &B1, const Point &B2, std::vector< Point > &results)
 
void uniform_sample_triangle (Point &p, const Point &p0, const Point &p1, const Point &p2, MusilRNG &rng)
 
double tetrahedra_volume (const Point &p0, const Point &p1, const Point &p2, const Point &p3)
 
void uniform_sample_tetrahedra (Point &p, const Point &p0, const Point &p1, const Point &p2, const Point &p3, MusilRNG &rng)
 

Detailed Description

Author
Allen Sanderson SCI Institute University of Utah
Date
August 2005