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
eab020da
Commit
eab020da
authored
Nov 20, 2013
by
mattijs
Browse files
STYLE: polyMesh: reuse of triPointRef
parent
873c8638
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/polyMesh.C
View file @
eab020da
...
...
@@ -1378,15 +1378,16 @@ bool Foam::polyMesh::pointInCell
nextPointI
=
f
[
fp
];
}
const
point
&
p0
=
points
()[
pointI
];
const
point
&
p1
=
points
()[
nextPointI
];
const
point
&
p2
=
fc
;
triPointRef
faceTri
(
points
()[
pointI
],
points
()[
nextPointI
],
fc
);
vector
twoFaceArea
=
(
p1
-
p0
)
^
(
p2
-
p0
);
point
centre
=
(
p0
+
p1
+
p2
)
/
3
.
0
;
vector
proj
=
p
-
centre
;
vector
proj
=
p
-
faceTri
.
centre
();
if
((
twoFaceArea
&
proj
)
>
0
)
if
((
faceTri
.
normal
()
&
proj
)
>
0
)
{
return
false
;
}
...
...
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