extrudeMesh: Add wedge patches after edge collapse
This commit is contained in:
@ -841,31 +841,6 @@ int main(int argc, char *argv[])
|
|||||||
<< endl;
|
<< endl;
|
||||||
|
|
||||||
|
|
||||||
// Change the front and back patch types as required
|
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
|
|
||||||
word frontBackType(word::null);
|
|
||||||
|
|
||||||
if (isType<extrudeModels::wedge>(model()))
|
|
||||||
{
|
|
||||||
changeFrontBackPatches<wedgePolyPatch>
|
|
||||||
(
|
|
||||||
mesh,
|
|
||||||
frontPatchName,
|
|
||||||
backPatchName
|
|
||||||
);
|
|
||||||
}
|
|
||||||
else if (isType<extrudeModels::plane>(model()))
|
|
||||||
{
|
|
||||||
changeFrontBackPatches<emptyPolyPatch>
|
|
||||||
(
|
|
||||||
mesh,
|
|
||||||
frontPatchName,
|
|
||||||
backPatchName
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Collapse edges
|
// Collapse edges
|
||||||
// ~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~
|
||||||
|
|
||||||
@ -939,6 +914,31 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Change the front and back patch types as required
|
||||||
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
word frontBackType(word::null);
|
||||||
|
|
||||||
|
if (isType<extrudeModels::wedge>(model()))
|
||||||
|
{
|
||||||
|
changeFrontBackPatches<wedgePolyPatch>
|
||||||
|
(
|
||||||
|
mesh,
|
||||||
|
frontPatchName,
|
||||||
|
backPatchName
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else if (isType<extrudeModels::plane>(model()))
|
||||||
|
{
|
||||||
|
changeFrontBackPatches<emptyPolyPatch>
|
||||||
|
(
|
||||||
|
mesh,
|
||||||
|
frontPatchName,
|
||||||
|
backPatchName
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Merging front and back patch faces
|
// Merging front and back patch faces
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user