mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
plane, sampledPlane: Rationalize the naming convention for the defining normal and point
normalVector -> normal basePoint -> point The old names are supported for backward-compatibility.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -71,7 +71,19 @@ Foam::sampledPlane::sampledPlane
|
||||
)
|
||||
:
|
||||
sampledSurface(name, mesh, dict),
|
||||
cuttingPlane(plane(dict.lookup("basePoint"), dict.lookup("normalVector"))),
|
||||
cuttingPlane
|
||||
(
|
||||
plane
|
||||
(
|
||||
dict.found("point")
|
||||
? dict.lookup("point")
|
||||
: dict.lookup("basePoint"),
|
||||
|
||||
dict.found("normal")
|
||||
? dict.lookup("normal")
|
||||
: dict.lookup("normalVector")
|
||||
)
|
||||
),
|
||||
zoneKey_(keyType::null),
|
||||
triangulate_(dict.lookupOrDefault("triangulate", true)),
|
||||
needsUpdate_(true)
|
||||
|
||||
Reference in New Issue
Block a user