Unverified Commit a59e4192 authored by Kelvin Rodriguez's avatar Kelvin Rodriguez Committed by GitHub
Browse files

Test Fixes (#3898)

* added findutils

* temp output for findfeatures

* embree tests rounding

* re-added prints
parent 89f42483
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ for (lbl in labels) {
                condaEnv("isis3") {
                    // Environment
                    loginShell """
                        conda install -c conda-forge python=3
                        conda install -c conda-forge python=3 findutils
                        conda env update -f ${envFile} --prune
                        mkdir build install
                    """
+10 −10
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ Embree shape model status:
Model has intersection?  true
  Surface Point: ( 0.2908 ,  -0.0019 ,  0.0005 )
Model has normal?  true
  Surface Normal: ( 0.847198 ,  -0.194495 ,  0.494395 )
  Surface Normal: ( 0.8471 ,  -0.1944 ,  0.4943 )


Testing observer look direction non-intersection
@@ -73,7 +73,7 @@ Embree shape model status:
Model has intersection?  true
  Surface Point: ( 0.0087 ,  0.0886 ,  0.0878 )
Model has normal?  true
  Surface Normal: ( -0.04559 ,  0.672259 ,  0.738911 )
  Surface Normal: ( -0.0455 ,  0.6722 ,  0.7389 )


Testing latitude, longitude occlusion
@@ -94,7 +94,7 @@ Embree shape model status:
Model has intersection?  true
  Surface Point: ( 0.0255 ,  -0.1383 ,  -0.0001 )
Model has normal?  true
  Surface Normal: ( 0.397582 ,  -0.895341 ,  -0.200733 )
  Surface Normal: ( 0.3975 ,  -0.8953 ,  -0.2007 )


Testing surface point intersection
@@ -108,7 +108,7 @@ Embree shape model status:
Model has intersection?  true
  Surface Point: ( -0.2165 ,  -0.0778 ,  0 )
Model has normal?  true
  Surface Normal: ( -0.73405 ,  -0.654923 ,  0.17957 )
  Surface Normal: ( -0.734 ,  -0.6549 ,  0.1795 )


Testing surface point occlusion
@@ -127,7 +127,7 @@ Embree shape model status:
Model has intersection?  true
  Surface Point: ( 0.0105 ,  0.0639 ,  -0.065 )
Model has normal?  true
  Surface Normal: ( 0.250858 ,  0.57346 ,  -0.779881 )
  Surface Normal: ( 0.2508 ,  0.5734 ,  -0.7798 )


Testing local radius
@@ -142,7 +142,7 @@ Embree shape model status:
Model has intersection?  true
  Surface Point: ( 0.0105 ,  0.0639 ,  -0.065 )
Model has normal?  true
  Surface Normal: ( 0.250858 ,  0.57346 ,  -0.779881 )
  Surface Normal: ( 0.2508 ,  0.5734 ,  -0.7798 )

Testing visibility check

@@ -152,7 +152,7 @@ Embree shape model status:
Model has intersection?  true
  Surface Point: ( 0.2908 ,  -0.0019 ,  0.0005 )
Model has normal?  true
  Surface Normal: ( 0.847198 ,  -0.194495 ,  0.494395 )
  Surface Normal: ( 0.8471 ,  -0.1944 ,  0.4943 )

Intersection is visible from same position and look direction?  true
Intersection is visible with non-intersecting look?  false
@@ -167,14 +167,14 @@ Embree shape model status:
Model has intersection?  true
  Surface Point: ( 0.2908 ,  -0.0019 ,  0.0005 )
Model has normal?  true
  Surface Normal: ( 0.847198 ,  -0.194495 ,  0.494395 )
  Surface Normal: ( 0.8471 ,  -0.1944 ,  0.4943 )

Model status after recalculating
Embree shape model status:
Model has intersection?  true
  Surface Point: ( 0.2908 ,  -0.0019 ,  0.0005 )
Model has normal?  true
  Surface Normal: ( 0.999747 ,  -0.0209697 ,  0.00810027 )
  Surface Normal: ( 0.9997 ,  -0.0209 ,  0.0081 )

Testing photometric angles

@@ -183,7 +183,7 @@ Embree shape model status:
Model has intersection?  true
  Surface Point: ( 0.2908 ,  -0.0019 ,  0.0005 )
Model has normal?  true
  Surface Normal: ( 0.999747 ,  -0.0209697 ,  0.00810027 )
  Surface Normal: ( 0.9997 ,  -0.0209 ,  0.0081 )

Emission angle:  1.28823
Incidence angle:  6.92945
+3 −3
Original line number Diff line number Diff line
@@ -330,9 +330,9 @@ void outputModelStatus(EmbreeShapeModel &embreeModel) {
  if ( embreeModel.hasNormal() ) {
    embreeNormal = embreeModel.normal();
    qDebug() << "  Surface Normal: ("
              << embreeNormal[0] << ", "
              << embreeNormal[1] << ", "
              << embreeNormal[2] << ")";
              << roundToPrecision(embreeNormal[0], 0.0001) << ", "
              << roundToPrecision(embreeNormal[1], 0.0001) << ", "
              << roundToPrecision(embreeNormal[2], 0.0001) << ")";
  }
  qDebug() << "";
}