#6747 Tensor computations : Use Ez for surface normal calculations

This commit is contained in:
Magne Sjaastad
2020-10-09 08:52:03 +02:00
parent fc0d50aa2c
commit ddc3b009b7
2 changed files with 2 additions and 2 deletions

View File

@@ -459,7 +459,7 @@ void RivIntersectionResultsColoringTools::calculatePlaneAngleTextureCoords( cvf:
cvf::GeometryTools::computePlaneHorizontalRotationMx( triangle[1] - triangle[0], triangle[2] - triangle[0] );
RiaOffshoreSphericalCoords sphCoord(
cvf::Vec3f( rotMx.rowCol( 0, 2 ), rotMx.rowCol( 1, 2 ), rotMx.rowCol( 2, 2 ) ) ); // Use Ez from the matrix
cvf::Vec3f( rotMx.rowCol( 2, 0 ), rotMx.rowCol( 2, 1 ), rotMx.rowCol( 2, 2 ) ) ); // Use Ez from the matrix
// as plane normal
float angle = cvf::Math::toDegrees( operation( sphCoord ) );