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
Christian Butz
VTK
Commits
14bc06ef
Commit
14bc06ef
authored
Mar 31, 2004
by
Mathieu Malaterre
Browse files
BUG: Fix Bug #722 - vtkTriangle::IntersectWithLine
parent
05469f51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Common/vtkTriangle.cxx
View file @
14bc06ef
...
...
@@ -26,7 +26,7 @@
#include
"vtkPolygon.h"
#include
"vtkQuadric.h"
vtkCxxRevisionMacro
(
vtkTriangle
,
"1.10
4
"
);
vtkCxxRevisionMacro
(
vtkTriangle
,
"1.10
5
"
);
vtkStandardNewMacro
(
vtkTriangle
);
// Construct the triangle with three points.
...
...
@@ -500,14 +500,16 @@ int vtkTriangle::IntersectWithLine(double p1[3], double p2[3], double tol,
// Evaluate position
//
if
(
this
->
EvaluatePosition
(
x
,
closestPoint
,
subId
,
pcoords
,
dist2
,
weights
)
>=
0
)
int
inside
;
if
(
(
inside
=
this
->
EvaluatePosition
(
x
,
closestPoint
,
subId
,
pcoords
,
dist2
,
weights
))
>=
0
)
{
if
(
dist2
<=
tol2
)
{
pcoords
[
2
]
=
0.0
;
return
1
;
}
return
inside
;
}
// so the easy test failed. The line is not intersecting the triangle.
...
...
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