6 bool SameSide(
double *,
double *,
double *,
double *);
double porosity(int ***amat)
Calculates porosity.
bool SameSide(double p1[], double p2[], double a[], double b[])
True if two points are in the same half-plane defined by other two points.
double * CrossProduct(double a[], double b[])
Cross product of two points in 3D.
bool in_domain(double x, double y, double z)
True if the point is in the domain, False otherwise.
bool PointInTriangle(double p[], double a[], double b[], double c[])
True if point lies in the triangle.