InsightSoftwareConsortium / ITK

Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.
https://itk.org
Apache License 2.0
1.47k stars 686 forks source link

Compile error in `MeshNoise/test/itkAdditiveGaussianNoiseMeshFilterTest.cxx:56` #5174

Open seanm opened 2 weeks ago

seanm commented 2 weeks ago

I've been playing with building ITK with different build settings enabled/disabled, and a few times I've hit this error:

/Users/sean/external/ITK/Modules/Remote/MeshNoise/test/itkAdditiveGaussianNoiseMeshFilterTest.cxx:56:20: error: no viable conversion from 'const double' to 'VectorType' (aka 'Vector<float, 3U>')
   56 |   sphere->SetScale(SPHERE_SCALE);
      |                    ^~~~~~~~~~~~

I'm not even sure which thing I turned on that made this code build. I understand that MeshNoise is a remote module, but for the life of me I don't see any Module_MeshNoise to turn OFF.

dzenanz commented 2 weeks ago

If some enabled module depends on MeshNoise, then the option for it is hidden the module is turned on (I think).