CellModules
geometry.hpp File Reference
#include <vector>
#include "../utilities/utils.hpp"

Go to the source code of this file.

Namespaces

namespace  MecaCell
 this file contains various miscellanious utility functions & helpers *
 

Functions

std::pair< bool, VecMecaCell::rayInTriangle (const Vec &v0, const Vec &v1, const Vec &v2, const Vec &o, const Vec &r, const double tolerance=0)
 test if a ray hits a triangle More...
 
std::pair< bool, VecMecaCell::projectionIntriangle (const Vec &v0, const Vec &v1, const Vec &v2, const Vec &p, const double tolerance=0)
 tests if the projection of a point along the normal of a triangle is inside said triangle More...
 
double MecaCell::closestDistToTriangleEdge (const Vec &v0, const Vec &v1, const Vec &v2, const Vec &p)
 computes the smallest distance to a triangle edge from a given point More...