Update to extrudeMesh.C
Use default mergeTolerance of 1e-4 to have backward compatibility with the tutorials.
This commit is contained in:
parent
07c16f1454
commit
a5a326a83b
1 changed files with 4 additions and 2 deletions
|
@ -25,7 +25,8 @@ Description
|
|||
Extrude mesh from existing patch (by default outwards facing normals;
|
||||
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.
|
||||
|
||||
|
@ -181,7 +182,8 @@ int main(int argc, char *argv[])
|
|||
const vector span = bb.span();
|
||||
|
||||
// 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();
|
||||
|
||||
Info<< "Mesh bounding box : " << bb << nl
|
||||
|
|
Reference in a new issue