mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: make foamToVTK faceZone writing explicit (closes #1117)
- change previous default (convert all faceZones unless -noFaceZones specified) with the default behaviour to only convert face zones on request. - uses the '-faceZones' option as per foamToEnsight
This commit is contained in:
@ -149,7 +149,7 @@ Description
|
||||
|
||||
// Write faceZones (POLYDATA file, one for each zone)
|
||||
|
||||
if (doFaceZones && !mesh.faceZones().empty())
|
||||
if (!selectedFaceZones.empty() && !mesh.faceZones().empty())
|
||||
{
|
||||
if (nSurfaceScalarField == -1)
|
||||
{
|
||||
@ -187,6 +187,11 @@ Description
|
||||
|
||||
for (const faceZone& fz : mesh.faceZones())
|
||||
{
|
||||
if (!selectedFaceZones.match(fz.name()))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
indirectPrimitivePatch pp
|
||||
(
|
||||
IndirectList<face>(mesh.faces(), fz),
|
||||
|
||||
Reference in New Issue
Block a user