Skip to content
GitLab
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
4d428e8f
Commit
4d428e8f
authored
Oct 29, 2010
by
mattijs
Browse files
BUG: meshSearch : extraneous loop
parent
5004aa10
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/meshTools/meshSearch/meshSearch.C
View file @
4d428e8f
...
...
@@ -617,30 +617,25 @@ bool Foam::meshSearch::pointInCell(const point& p, label cellI) const
{
label
faceI
=
cFaces
[
i
];
const
face
&
f
=
mesh_
.
faces
()[
faceI
];
pointHit
inter
=
mesh_
.
faces
()[
faceI
].
ray
(
ctr
,
dir
,
mesh_
.
points
(),
intersection
::
HALF_RAY
,
intersection
::
VECTOR
);
forAll
(
f
,
fp
)
if
(
inter
.
hit
()
)
{
pointHit
inter
=
f
.
ray
(
ctr
,
dir
,
mesh_
.
points
(),
intersection
::
HALF_RAY
,
intersection
::
VECTOR
);
scalar
dist
=
inter
.
distance
();
if
(
inter
.
hit
()
)
if
(
dist
<
magDir
)
{
scalar
dist
=
inter
.
distance
();
// Valid hit. Hit face so point is not in cell.
intersection
::
setPlanarTol
(
oldTol
);
if
(
dist
<
magDir
)
{
// Valid hit. Hit face so point is not in cell.
intersection
::
setPlanarTol
(
oldTol
);
return
false
;
}
return
false
;
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment