OpenFOAM logo
Open Source CFD Toolkit

triangleFuncs Class Reference

List of all members.

Public Types

enum  proxType { NONE, POINT, EDGE }
 Enumeration defining nearness classification. More...

Static Public Member Functions

bool intersectAxesBundle (const point &V0, const point &V10, const point &V20, const label i0, const pointField &origin, const scalar maxLength, point &pInter)
 Intersect triangle with parallel edges aligned with axis i0.
bool intersectBb (const point &p0, const point &p1, const point &p2, const treeBoundBox &cubeBb)
 Does triangle intersect bounding box.
bool intersect (const point &va0, const point &va10, const point &va20, const point &basePoint, const vector &normal, point &pInter0, point &pInter1)
 Does triangle intersect plane. Return bool and set intersection segment.
bool intersect (const point &va0, const point &va10, const point &va20, const point &vb0, const point &vb10, const point &vb20, point &pInter0, point &pInter1)
 Do triangles intersect. Return bool and set intersection segment.
bool classify (const point &baseVertex, const vector &E0, const vector &E1, const vector &n, const point &pInter, const scalar tol, label &nearType, label &nearLabel)
 Classify point on triangle plane w.r.t. triangle edges.

Member Enumeration Documentation

enum proxType
 

Enumeration defining nearness classification.

Enumeration values:
NONE 
POINT 
EDGE 

Definition at line 71 of file triangleFuncs.H.


Member Function Documentation

bool classify const point baseVertex,
const vector E0,
const vector E1,
const vector n,
const point pInter,
const scalar  tol,
label nearType,
label nearLabel
[static]
 

Classify point on triangle plane w.r.t. triangle edges.

  • inside/outside (returned)
  • near point (0, 1, 2)
  • near edge (0, 1, 2). Note: edges are counted from starting vertex so e.g. edge 2 is from f[2] to f[0]

bool intersect const point va0,
const point va10,
const point va20,
const point vb0,
const point vb10,
const point vb20,
point pInter0,
point pInter1
[static]
 

Do triangles intersect. Return bool and set intersection segment.

bool intersect const point va0,
const point va10,
const point va20,
const point basePoint,
const vector normal,
point pInter0,
point pInter1
[static]
 

Does triangle intersect plane. Return bool and set intersection segment.

bool intersectAxesBundle const point V0,
const point V10,
const point V20,
const label  i0,
const pointField origin,
const scalar  maxLength,
point pInter
[static]
 

Intersect triangle with parallel edges aligned with axis i0.

Returns true (and intersection in pInter) if any of them intersects triangle. Used in intersectBb.

bool intersectBb const point p0,
const point p1,
const point p2,
const treeBoundBox cubeBb
[static]
 

Does triangle intersect bounding box.


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org