Skip to content

Commit

Permalink
COMP: Match scale setting from vector
Browse files Browse the repository at this point in the history
MeshNoise/test/itkAdditiveGaussianNoiseMeshFilterTest.cxx:56:20:
error: no viable conversion from 'const double' to 'VectorType' (aka 'Vector<float, 3U>')
   56 |   sphere->SetScale(SPHERE_SCALE);
      |                    ^~~~~~~~~~~~
  • Loading branch information
hjmjohnson committed Jan 26, 2025
1 parent 0e89cdf commit 47e683f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/itkAdditiveGaussianNoiseMeshFilterTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ itkAdditiveGaussianNoiseMeshFilterTest(int itkNotUsed(argc), char * itkNotUsed(a
constexpr int SPHERE_RESOLUTION = 5;
constexpr double SPHERE_SCALE = 10.0;

constexpr int NOISE_SEED = 100;
constexpr int NOISE_SEED = 100;
const TMesh::CoordinateType NOISE_SIGMA = SPHERE_SCALE * 0.01;
constexpr TMesh::CoordinateType NOISE_MEAN = 1.0;

Expand All @@ -53,7 +53,7 @@ itkAdditiveGaussianNoiseMeshFilterTest(int itkNotUsed(argc), char * itkNotUsed(a
TSphere::Pointer sphere = TSphere::New();

sphere->SetResolution(SPHERE_RESOLUTION);
sphere->SetScale(SPHERE_SCALE);
sphere->SetScale(TSphere::VectorType(SPHERE_SCALE));

TNoise::Pointer noise = TNoise::New();

Expand Down
4 changes: 2 additions & 2 deletions test/itkAdditiveGaussianNoiseQuadEdgeMeshFilterTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ itkAdditiveGaussianNoiseQuadEdgeMeshFilterTest(int itkNotUsed(argc), char * itkN
constexpr int SPHERE_RESOLUTION = 5;
constexpr double SPHERE_SCALE = 10.0;

constexpr int NOISE_SEED = 100;
constexpr int NOISE_SEED = 100;
const TMesh::CoordinateType NOISE_SIGMA = SPHERE_SCALE * 0.01;
constexpr TMesh::CoordinateType NOISE_MEAN = 1.0;

Expand All @@ -53,7 +53,7 @@ itkAdditiveGaussianNoiseQuadEdgeMeshFilterTest(int itkNotUsed(argc), char * itkN
TSphere::Pointer sphere = TSphere::New();

sphere->SetResolution(SPHERE_RESOLUTION);
sphere->SetScale(SPHERE_SCALE);
sphere->SetScale(TSphere::VectorType(SPHERE_SCALE));

TNoise::Pointer noise = TNoise::New();

Expand Down

0 comments on commit 47e683f

Please sign in to comment.