texture transformation should be a proper rotation
at least, until the implications of using improper rotations are clear...
This commit is contained in:
parent
0f2e22805a
commit
08d9f0a4f3
|
@ -1051,6 +1051,8 @@ end subroutine material_parsePhase
|
||||||
!> @brief parses the texture part in the material configuration file
|
!> @brief parses the texture part in the material configuration file
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
subroutine material_parseTexture(fileUnit,myPart)
|
subroutine material_parseTexture(fileUnit,myPart)
|
||||||
|
use prec, only: &
|
||||||
|
dNeq
|
||||||
use IO, only: &
|
use IO, only: &
|
||||||
IO_read, &
|
IO_read, &
|
||||||
IO_globalTagInPart, &
|
IO_globalTagInPart, &
|
||||||
|
@ -1069,6 +1071,7 @@ subroutine material_parseTexture(fileUnit,myPart)
|
||||||
inRad, &
|
inRad, &
|
||||||
math_sampleRandomOri, &
|
math_sampleRandomOri, &
|
||||||
math_I3, &
|
math_I3, &
|
||||||
|
math_det33, &
|
||||||
math_inv33
|
math_inv33
|
||||||
|
|
||||||
implicit none
|
implicit none
|
||||||
|
@ -1154,6 +1157,9 @@ subroutine material_parseTexture(fileUnit,myPart)
|
||||||
end select
|
end select
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
|
if(dNeq(math_det33(texture_transformation(1:3,1:3,section)),1.0_pReal)) &
|
||||||
|
call IO_error(157_pInt,section)
|
||||||
|
|
||||||
case ('hybridia') textureType
|
case ('hybridia') textureType
|
||||||
texture_ODFfile(section) = IO_stringValue(line,chunkPos,2_pInt)
|
texture_ODFfile(section) = IO_stringValue(line,chunkPos,2_pInt)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue