given triangle with scalar field increasing in the direction \param unitDir; returns true if the field increases inside the triangle from the edge 01 computes the position on this edge crossed by the line passing via point \param p and directed along \param unitDir
| 54 | /// returns true if the field increases inside the triangle from the edge 01 |
| 55 | /// computes the position on this edge crossed by the line passing via point \param p and directed along \param unitDir |
| 56 | static bool computeEnter01Cross( const Triangle3f & t, const Vector3f & unitDir, const Vector3f & p, float & a ) |
| 57 | { |
| 58 | if ( !dirEnters01( t, unitDir ) ) |
| 59 | return false; |
| 60 | return computeLineLineCross( t[0] - p, t[1] - p, unitDir, a ); |
| 61 | } |
| 62 | |
| 63 | MeshEdgePoint findSteepestDescentPoint( const MeshPart & mp, const VertScalars & field, VertId v ) |
| 64 | { |
no test coverage detected