| 17 | { |
| 18 | |
| 19 | static Vector3f computeGradient( const Vector3f & b, const Vector3f & c, float vb, float vc ) |
| 20 | { |
| 21 | auto grad = gradientInTri( Vector3d( b ), Vector3d( c ), double( vb ), double( vc ) ); |
| 22 | return grad.has_value() ? Vector3f{ *grad } : Vector3f{}; |
| 23 | } |
| 24 | |
| 25 | /// given triangle with scalar field increasing in the direction \param dir; |
| 26 | /// returns true if the field increases inside the triangle from the edge 01 |
no test coverage detected