mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: surfaceFeatureExtract: indenting, scoping
This commit is contained in:
@ -709,13 +709,7 @@ int main(int argc, char *argv[])
|
|||||||
Info<< "Removing all edges outside bb " << bb << endl;
|
Info<< "Removing all edges outside bb " << bb << endl;
|
||||||
dumpBox(bb, "subsetBox.obj");
|
dumpBox(bb, "subsetBox.obj");
|
||||||
|
|
||||||
deleteBox
|
deleteBox(surf, bb, false, edgeStat);
|
||||||
(
|
|
||||||
surf,
|
|
||||||
bb,
|
|
||||||
false,
|
|
||||||
edgeStat
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
else if (subsetDict.found("outsideBox"))
|
else if (subsetDict.found("outsideBox"))
|
||||||
{
|
{
|
||||||
@ -724,13 +718,7 @@ int main(int argc, char *argv[])
|
|||||||
Info<< "Removing all edges inside bb " << bb << endl;
|
Info<< "Removing all edges inside bb " << bb << endl;
|
||||||
dumpBox(bb, "deleteBox.obj");
|
dumpBox(bb, "deleteBox.obj");
|
||||||
|
|
||||||
deleteBox
|
deleteBox(surf, bb, true, edgeStat);
|
||||||
(
|
|
||||||
surf,
|
|
||||||
bb,
|
|
||||||
true,
|
|
||||||
edgeStat
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const Switch manifoldEdges =
|
const Switch manifoldEdges =
|
||||||
@ -753,12 +741,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
plane cutPlane(subsetDict.lookup("plane")());
|
plane cutPlane(subsetDict.lookup("plane")());
|
||||||
|
|
||||||
deleteEdges
|
deleteEdges(surf, cutPlane, edgeStat);
|
||||||
(
|
|
||||||
surf,
|
|
||||||
cutPlane,
|
|
||||||
edgeStat
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "Only edges that intersect the plane with normal "
|
Info<< "Only edges that intersect the plane with normal "
|
||||||
<< cutPlane.normal()
|
<< cutPlane.normal()
|
||||||
@ -863,20 +846,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
bfeMesh.regIOobject::write();
|
bfeMesh.regIOobject::write();
|
||||||
|
|
||||||
triSurfaceMesh searchSurf
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
sFeatFileName + ".closeness",
|
|
||||||
runTime.constant(),
|
|
||||||
"triSurface",
|
|
||||||
runTime,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::NO_WRITE
|
|
||||||
),
|
|
||||||
surf
|
|
||||||
);
|
|
||||||
|
|
||||||
// Find close features
|
// Find close features
|
||||||
|
|
||||||
// // Dummy trim operation to mark features
|
// // Dummy trim operation to mark features
|
||||||
@ -949,6 +918,22 @@ int main(int argc, char *argv[])
|
|||||||
Info<< nl << "Extracting internal and external closeness of "
|
Info<< nl << "Extracting internal and external closeness of "
|
||||||
<< "surface." << endl;
|
<< "surface." << endl;
|
||||||
|
|
||||||
|
|
||||||
|
triSurfaceMesh searchSurf
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
sFeatFileName + ".closeness",
|
||||||
|
runTime.constant(),
|
||||||
|
"triSurface",
|
||||||
|
runTime,
|
||||||
|
IOobject::NO_READ,
|
||||||
|
IOobject::NO_WRITE
|
||||||
|
),
|
||||||
|
surf
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
// Internal and external closeness
|
// Internal and external closeness
|
||||||
|
|
||||||
// Prepare start and end points for intersection tests
|
// Prepare start and end points for intersection tests
|
||||||
|
|||||||
Reference in New Issue
Block a user