Skip to content
Snippets Groups Projects
Commit 6198cfc3 authored by mattijs's avatar mattijs
Browse files

ENH: VTKSurfaceFormat: read STLSolidLabelling for region info

parent 9f995fe1
Branches
Tags
No related merge requests found
......@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment