Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
b1e65376
Commit
b1e65376
authored
13 years ago
by
andy
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Updates to faceAreaIntersect
parent
e16191b2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/meshTools/AMIInterpolation/faceAreaIntersect/faceAreaIntersect.C
+21
-17
21 additions, 17 deletions
...ls/AMIInterpolation/faceAreaIntersect/faceAreaIntersect.C
with
21 additions
and
17 deletions
src/meshTools/AMIInterpolation/faceAreaIntersect/faceAreaIntersect.C
+
21
−
17
View file @
b1e65376
...
...
@@ -78,7 +78,8 @@ void Foam::faceAreaIntersect::triSliceWithPlane
(
(
nPos
==
3
)
||
((
nPos
==
2
)
&&
(
nCoPlanar
==
1
))
||
((
nPos
==
1
)
&&
(
nCoPlanar
==
2
)))
||
((
nPos
==
1
)
&&
(
nCoPlanar
==
2
))
)
{
/*
/\ _____
...
...
@@ -95,11 +96,12 @@ void Foam::faceAreaIntersect::triSliceWithPlane
else
if
((
nPos
==
2
)
&&
(
nCoPlanar
==
0
))
{
/*
________
\ /
--\----/--
\ /
\/
i1________i2
\ /
--\----/--
\ /
\/
i0
2 points above plane, 1 below
- resulting quad above plane split into 2 triangles
...
...
@@ -130,10 +132,12 @@ void Foam::faceAreaIntersect::triSliceWithPlane
if
(
nCoPlanar
==
0
)
{
/*
/\
/ \
--/----\--
/______\
i0
/\
/ \
--/----\--
/______\
i2 i1
1 point above plane, 2 below
- keep triangle above intersection plane
...
...
@@ -145,8 +149,8 @@ void Foam::faceAreaIntersect::triSliceWithPlane
label
i2
=
d
.
fcIndex
(
i1
);
// determine the two intersection points
point
p01
=
planeIntersection
(
d
,
tri
,
i
0
,
i
1
);
point
p02
=
planeIntersection
(
d
,
tri
,
i
0
,
i
2
);
point
p01
=
planeIntersection
(
d
,
tri
,
i
1
,
i
0
);
point
p02
=
planeIntersection
(
d
,
tri
,
i
2
,
i
0
);
// add triangle above plane to list
setTriPoints
(
tri
[
i0
],
p01
,
p02
,
nTris
,
tris
);
...
...
@@ -154,14 +158,14 @@ void Foam::faceAreaIntersect::triSliceWithPlane
else
{
/*
i0
|\
| \
__|__\__
__|__\_
i2
_
| /
| /
|/
i1
1 point above plane, 1 on plane, 1 below
- keep triangle above intersection plane
...
...
@@ -172,9 +176,9 @@ void Foam::faceAreaIntersect::triSliceWithPlane
label
i2
=
copI
;
// determine the intersection point
point
p01
=
planeIntersection
(
d
,
tri
,
i
0
,
i
1
);
point
p01
=
planeIntersection
(
d
,
tri
,
i
1
,
i
0
);
// add triangle above plane to list
// add triangle above plane to list
- clockwise points
if
(
d
.
fcIndex
(
i0
)
==
i1
)
{
setTriPoints
(
tri
[
i0
],
p01
,
tri
[
i2
],
nTris
,
tris
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment