mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: tetOverlapVolume: removed unused function
This commit is contained in:
@ -45,93 +45,6 @@ Foam::tetOverlapVolume::tetOverlapVolume()
|
||||
|
||||
// * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::tetOverlapVolume::tetTetOverlap
|
||||
(
|
||||
const tetPoints& tetA,
|
||||
const tetPoints& tetB,
|
||||
tetIntersectionList& insideTets,
|
||||
label& nInside,
|
||||
tetIntersectionList& outsideTets,
|
||||
label& nOutside
|
||||
) const
|
||||
{
|
||||
// Work storage
|
||||
tetIntersectionList cutInsideTets;
|
||||
label nCutInside = 0;
|
||||
|
||||
tetPointRef::storeOp inside(insideTets, nInside);
|
||||
tetPointRef::storeOp cutInside(cutInsideTets, nCutInside);
|
||||
tetPointRef::dummyOp outside;
|
||||
|
||||
|
||||
// Cut tetA with all inwards pointing faces of tetB. Any tets remaining
|
||||
// in aboveTets are inside tetB.
|
||||
|
||||
{
|
||||
// face0
|
||||
plane pl0(tetB[1], tetB[3], tetB[2]);
|
||||
|
||||
// Cut and insert subtets into cutInsideTets (either by getting
|
||||
// an index from freeSlots or by appending to insideTets) or
|
||||
// insert into outsideTets
|
||||
tetA.tet().sliceWithPlane(pl0, cutInside, outside);
|
||||
}
|
||||
|
||||
if (nCutInside == 0)
|
||||
{
|
||||
nInside = nCutInside;
|
||||
return;
|
||||
}
|
||||
|
||||
{
|
||||
// face1
|
||||
plane pl1(tetB[0], tetB[2], tetB[3]);
|
||||
|
||||
nInside = 0;
|
||||
|
||||
for (label i = 0; i < nCutInside; i++)
|
||||
{
|
||||
cutInsideTets[i].tet().sliceWithPlane(pl1, inside, outside);
|
||||
}
|
||||
|
||||
if (nInside == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
// face2
|
||||
plane pl2(tetB[0], tetB[3], tetB[1]);
|
||||
|
||||
nCutInside = 0;
|
||||
|
||||
for (label i = 0; i < nInside; i++)
|
||||
{
|
||||
insideTets[i].tet().sliceWithPlane(pl2, cutInside, outside);
|
||||
}
|
||||
|
||||
if (nCutInside == 0)
|
||||
{
|
||||
nInside = nCutInside;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
// face3
|
||||
plane pl3(tetB[0], tetB[1], tetB[2]);
|
||||
|
||||
nInside = 0;
|
||||
|
||||
for (label i = 0; i < nCutInside; i++)
|
||||
{
|
||||
cutInsideTets[i].tet().sliceWithPlane(pl3, inside, outside);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::tetOverlapVolume::tetTetOverlapVol
|
||||
(
|
||||
const tetPoints& tetA,
|
||||
|
||||
@ -55,17 +55,6 @@ class tetOverlapVolume
|
||||
{
|
||||
// Private member functions
|
||||
|
||||
//- Tet overlap
|
||||
void tetTetOverlap
|
||||
(
|
||||
const tetPoints& tetA,
|
||||
const tetPoints& tetB,
|
||||
tetIntersectionList& insideTets,
|
||||
label& nInside,
|
||||
tetIntersectionList& outsideTets,
|
||||
label& nOutside
|
||||
) const;
|
||||
|
||||
//- Tet Overlap Vol
|
||||
scalar tetTetOverlapVol
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user