Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Cazier
CGoGN
Commits
64657a8e
Commit
64657a8e
authored
Jan 23, 2013
by
Thomas Jund
Browse files
correction of isPointInTetrahedron for debug mode
parent
b2f787bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/Geometry/inclusion.hpp
View file @
64657a8e
...
...
@@ -137,11 +137,11 @@ bool isPointInTetrahedron(VEC3 points[4], VEC3& point, bool CCW)
AC
[
0
],
AC
[
1
],
AC
[
2
],
AD
[
0
],
AD
[
1
],
AD
[
2
];
A
=
A
.
inverse
();
Eigen
::
Matrix3f
AInv
=
A
.
inverse
();
VEC3
v1
(
point
-
points
[
0
]);
Eigen
::
Vector3f
&
v
=
Utils
::
convertRef
<
Eigen
::
Vector3f
>
(
v1
);
Eigen
::
Vector3f
beta
=
A
*
v
;
Eigen
::
Vector3f
beta
=
A
Inv
*
v
;
return
(
beta
[
0
]
>=
0.0
f
&&
beta
[
1
]
>=
0.0
f
&&
beta
[
2
]
>=
0.0
f
&&
beta
[
0
]
+
beta
[
1
]
+
beta
[
2
]
<=
1.0
f
);
}
...
...
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