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
ddb74a6e
Commit
ddb74a6e
authored
Jun 25, 2009
by
mattijs
Browse files
force hit to be on triangle
parent
0ae328ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/primitiveShapes/triangle/triangleI.H
View file @
ddb74a6e
...
...
@@ -607,6 +607,18 @@ inline bool triangle<Point, PointRef>::classify
// system E0, E1
//
//Pout<< "alpha:" << alpha << endl;
//Pout<< "beta:" << beta << endl;
//Pout<< "hit:" << hit << endl;
//Pout<< "tol:" << tol << endl;
if
(
hit
)
{
// alpha,beta might get negative due to precision errors
alpha
=
max
(
0.0
,
min
(
1.0
,
alpha
));
beta
=
max
(
0.0
,
min
(
1.0
,
beta
));
}
nearType
=
NONE
;
nearLabel
=
-
1
;
...
...
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