TUT: update snappy dictionaries to use minMedialAxisAngle

- canonical parameter name changed from "minMedianAxisAngle" to
  "minMedialAxisAngle" (DEC-2013), but was never previously reported
  as having changed.
This commit is contained in:
Mark Olesen
2018-07-18 16:47:34 +02:00
parent a592ebc073
commit 712f49758a
27 changed files with 36 additions and 34 deletions

View File

@ -132,16 +132,18 @@ void Foam::medialAxisMeshMover::update(const dictionary& coeffDict)
coeffDict.lookup("nSmoothSurfaceNormals")
);
//- When is medial axis
word angleKey = "minMedialAxisAngle";
if (!coeffDict.found(angleKey))
{
// Backwards compatibility
angleKey = "minMedianAxisAngle";
}
// Note: parameter name changed
// "minMedianAxisAngle" -> "minMedialAxisAngle" (DEC-2013)
// but not previously reported.
scalar minMedialAxisAngleCos = Foam::cos
(
degToRad(readScalar(coeffDict.lookup(angleKey)))
degToRad
(
coeffDict.getCompat<scalar>
(
"minMedialAxisAngle", {{ "minMedianAxisAngle", 1712 }}
)
)
);
//- Feature angle when to stop adding layers