Update to extrudeMesh.C

Use default mergeTolerance of 1e-4 to have backward compatibility with the
tutorials.
This commit is contained in:
Vuko Vukcevic 2019-06-13 15:14:49 +02:00
parent 07c16f1454
commit a5a326a83b

View file

@ -25,7 +25,8 @@ Description
Extrude mesh from existing patch (by default outwards facing normals; Extrude mesh from existing patch (by default outwards facing normals;
optional flips faces) or from patch read from file. optional flips faces) or from patch read from file.
Note: Merges close points so be careful. Note: Merges close points so be careful. This can be controlled with the
optional mergeTolerance parameter (1e-4) by default.
Type of extrusion prescribed by run-time selectable model. Type of extrusion prescribed by run-time selectable model.
@ -181,7 +182,8 @@ int main(int argc, char *argv[])
const vector span = bb.span(); const vector span = bb.span();
// Read merge tolerance // Read merge tolerance
const scalar mergeTolerance = readScalar(dict.lookup("mergeTolerance")); const scalar mergeTolerance =
dict.lookupOrDefault<scalar>("mergeTolerance", 1e-4);
const scalar mergeDim = mergeTolerance*bb.minDim(); const scalar mergeDim = mergeTolerance*bb.minDim();
Info<< "Mesh bounding box : " << bb << nl Info<< "Mesh bounding box : " << bb << nl