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

View File

@ -313,7 +313,7 @@ addLayersControls
maxThicknessToMedialRatio 0.3;
// Angle used to pick up medial axis points
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -240,7 +240,7 @@ addLayersControls
nSmoothThickness 10;
maxFaceThicknessRatio 0.5;
maxThicknessToMedialRatio 0.3;
minMedianAxisAngle 90;
minMedialAxisAngle 90;
nBufferCellsNoExtrude 0;
nLayerIter 50;
}

View File

@ -317,7 +317,7 @@ addLayersControls
maxThicknessToMedialRatio 0.3;
// Angle used to pick up medial axis points
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -246,7 +246,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130
// in 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -256,7 +256,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130
// in 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations

View File

@ -222,7 +222,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 16x! 90 degrees corresponds to 130 in 16x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -212,7 +212,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 16x! 90 degrees corresponds to 130 in 16x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -382,7 +382,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130
// in 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations

View File

@ -235,7 +235,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 16x! 90 degrees corresponds to 130 in 16x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -247,7 +247,7 @@ addLayersControls
maxThicknessToMedialRatio 0.3;
// Angle used to pick up medial axis points
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -276,7 +276,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130
// in 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations

View File

@ -289,7 +289,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 16x! 90 degrees corresponds to 130 in 16x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -248,7 +248,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130
// in 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations

View File

@ -262,7 +262,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130
// in 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations

View File

@ -254,7 +254,7 @@ addLayersControls
maxThicknessToMedialRatio 0.3;
// Angle used to pick up medial axis points
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -292,7 +292,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130
// in 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations

View File

@ -257,7 +257,7 @@ addLayersControls
maxThicknessToMedialRatio 0.3;
// Angle used to pick up medial axis points
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -257,7 +257,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 16x! 90 degrees corresponds to 130 in 16x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -240,7 +240,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130
// in 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -249,7 +249,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130
// in 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -464,7 +464,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130
// in 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -267,7 +267,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130
// in 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations

View File

@ -383,7 +383,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130 in
// 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations

View File

@ -256,7 +256,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130
// in 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;

View File

@ -276,7 +276,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130
// in 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations

View File

@ -329,7 +329,7 @@ addLayersControls
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 1.7.x! 90 degrees corresponds to 130
// in 1.7.x.
minMedianAxisAngle 90;
minMedialAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;