Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
fe068c3b
Commit
fe068c3b
authored
Nov 08, 2011
by
andy
Browse files
STYLE: corrected multi-line comment warnings
parent
5655312c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/meshTools/AMIInterpolation/faceAreaIntersect/faceAreaIntersect.C
View file @
fe068c3b
...
...
@@ -80,25 +80,30 @@ void Foam::faceAreaIntersect::triSliceWithPlane
||
((
nPos
==
2
)
&&
(
nCoPlanar
==
1
))
||
((
nPos
==
1
)
&&
(
nCoPlanar
==
2
)))
{
// all points above cutting plane - add triangle to list
/*
/\ _____
/ \ \ / /\
/____\ \ / / \
__________ ____v____ __/____\__
// /\ _____
// / \ \ / /\
// /____\ \ / / \
// __________ ____v____ __/____\__
all points above cutting plane
- add complete triangle to list
*/
tris
[
nTris
++
]
=
tri
;
}
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
label
i0
=
negI
;
...
...
@@ -123,12 +128,15 @@ void Foam::faceAreaIntersect::triSliceWithPlane
if
(
nCoPlanar
==
0
)
{
// 1 point above plane, 2 below
/*
/\
/ \
--/----\--
/______\
// /\
// / \
// --/----\--
// /______\
1 point above plane, 2 below
- keep triangle avove intersection plane
*/
// indices of remaining points
label
i1
=
d
.
fcIndex
(
i0
);
...
...
@@ -144,14 +152,19 @@ void Foam::faceAreaIntersect::triSliceWithPlane
}
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
label
i1
=
negI
;
...
...
@@ -173,14 +186,15 @@ void Foam::faceAreaIntersect::triSliceWithPlane
}
else
{
// all points below cutting plane - forget
// _________ __________ ___________
// /\ \ /
// /\ / \ \ /
// / \ /____\ \/
// /____\
/*
_________ __________ ___________
/\ \ /
/\ / \ \ /
/ \ /____\ \/
/____\
all points below cutting plane - forget
*/
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment