STYLE: corrected multi-line comment warnings
This commit is contained in:
parent
5655312c17
commit
fe068c3bc9
@ -80,25 +80,30 @@ void Foam::faceAreaIntersect::triSliceWithPlane
|
|||||||
|| ((nPos == 2) && (nCoPlanar == 1))
|
|| ((nPos == 2) && (nCoPlanar == 1))
|
||||||
|| ((nPos == 1) && (nCoPlanar == 2)))
|
|| ((nPos == 1) && (nCoPlanar == 2)))
|
||||||
{
|
{
|
||||||
// all points above cutting plane - add triangle to list
|
/*
|
||||||
|
/\ _____
|
||||||
|
/ \ \ / /\
|
||||||
|
/____\ \ / / \
|
||||||
|
__________ ____v____ __/____\__
|
||||||
|
|
||||||
// /\ _____
|
all points above cutting plane
|
||||||
// / \ \ / /\
|
- add complete triangle to list
|
||||||
// /____\ \ / / \
|
*/
|
||||||
// __________ ____v____ __/____\__
|
|
||||||
|
|
||||||
tris[nTris++] = tri;
|
tris[nTris++] = tri;
|
||||||
}
|
}
|
||||||
else if ((nPos == 2) && (nCoPlanar == 0))
|
else if ((nPos == 2) && (nCoPlanar == 0))
|
||||||
{
|
{
|
||||||
// 2 points above plane, 1 below
|
/*
|
||||||
// resulting quad above plane split into 2 triangles
|
________
|
||||||
|
\ /
|
||||||
|
--\----/--
|
||||||
|
\ /
|
||||||
|
\/
|
||||||
|
|
||||||
// ________
|
2 points above plane, 1 below
|
||||||
// \ /
|
- resulting quad above plane split into 2 triangles
|
||||||
// --\----/--
|
*/
|
||||||
// \ /
|
|
||||||
// \/
|
|
||||||
|
|
||||||
// point under the plane
|
// point under the plane
|
||||||
label i0 = negI;
|
label i0 = negI;
|
||||||
@ -123,12 +128,15 @@ void Foam::faceAreaIntersect::triSliceWithPlane
|
|||||||
|
|
||||||
if (nCoPlanar == 0)
|
if (nCoPlanar == 0)
|
||||||
{
|
{
|
||||||
// 1 point above plane, 2 below
|
/*
|
||||||
|
/\
|
||||||
|
/ \
|
||||||
|
--/----\--
|
||||||
|
/______\
|
||||||
|
|
||||||
// /\
|
1 point above plane, 2 below
|
||||||
// / \
|
- keep triangle avove intersection plane
|
||||||
// --/----\--
|
*/
|
||||||
// /______\
|
|
||||||
|
|
||||||
// indices of remaining points
|
// indices of remaining points
|
||||||
label i1 = d.fcIndex(i0);
|
label i1 = d.fcIndex(i0);
|
||||||
@ -144,14 +152,19 @@ void Foam::faceAreaIntersect::triSliceWithPlane
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// 1 point above plane, 1 on plane, 1 below
|
/*
|
||||||
|
|
||||||
// |\
|
|\
|
||||||
// | \
|
| \
|
||||||
// __|__\__
|
__|__\__
|
||||||
// | /
|
| /
|
||||||
// | /
|
| /
|
||||||
// |/
|
|/
|
||||||
|
|
||||||
|
|
||||||
|
1 point above plane, 1 on plane, 1 below
|
||||||
|
- keep triangle above intersection plane
|
||||||
|
*/
|
||||||
|
|
||||||
// point indices
|
// point indices
|
||||||
label i1 = negI;
|
label i1 = negI;
|
||||||
@ -173,14 +186,15 @@ void Foam::faceAreaIntersect::triSliceWithPlane
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// all points below cutting plane - forget
|
/*
|
||||||
|
_________ __________ ___________
|
||||||
// _________ __________ ___________
|
/\ \ /
|
||||||
// /\ \ /
|
/\ / \ \ /
|
||||||
// /\ / \ \ /
|
/ \ /____\ \/
|
||||||
// / \ /____\ \/
|
/____\
|
||||||
// /____\
|
|
||||||
|
|
||||||
|
all points below cutting plane - forget
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user