Skip to content
Snippets Groups Projects
Commit 712f8e05 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: cellShape - added new constructor

parent 692bf7f4
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,14 @@ public:
const bool doCollapse = false
);
//- Construct from components
inline cellShape
(
const cellModel& model,
labelUList&& labels,
const bool doCollapse = false
);
//- Construct from components
inline cellShape
(
......
......@@ -52,6 +52,23 @@ inline Foam::cellShape::cellShape
}
inline Foam::cellShape::cellShape
(
const cellModel& model,
labelUList&& labels,
const bool doCollapse
)
:
labelList(std::move(labels)),
m(&model)
{
if (doCollapse)
{
collapse();
}
}
inline Foam::cellShape::cellShape
(
const word& modelName,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment