mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: VTKSurfaceFormat: read STLSolidLabelling for region info
This commit is contained in:
@ -128,6 +128,18 @@ bool Foam::fileFormats::VTKsurfaceFormat<Face>::read
|
||||
zones[i] = label(region[i]);
|
||||
}
|
||||
}
|
||||
else if (reader.cellData().foundObject<scalarIOField>("STLSolidLabeling"))
|
||||
{
|
||||
const scalarIOField& region =
|
||||
reader.cellData().lookupObject<scalarIOField>
|
||||
(
|
||||
"STLSolidLabeling"
|
||||
);
|
||||
forAll(region, i)
|
||||
{
|
||||
zones[i] = label(region[i]);
|
||||
}
|
||||
}
|
||||
|
||||
// Create zone names
|
||||
const label nZones = max(zones)+1;
|
||||
|
||||
Reference in New Issue
Block a user