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
OpenMesh
OpenMesh
Commits
548a73bf
Commit
548a73bf
authored
Jan 05, 2018
by
Jan Möbius
Browse files
calc_sector_angle: Check for real division by zero not with epsilon that was way to large
parent
62c22a01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Doc/changelog.docu
View file @
548a73bf
...
...
@@ -24,6 +24,7 @@
<li>Added 1-4 triangle split funtion(splits all edges at Midpoints)</li>
<li>Boost range support (Thanks to Bastian Pranzas for the patch)</li>
<li>Made the face and edge split operations that copy properties also copy builtin properties</li>
<li>calc_sector_angle: Check for real division by zero not with epsilon that was way to large</li>
</ul>
<b>Utils</b>
...
...
src/OpenMesh/Core/Mesh/PolyMeshT.hh
View file @
548a73bf
...
...
@@ -445,7 +445,7 @@ public:
Normal
v0
,
v1
;
calc_sector_vectors
(
_in_heh
,
v0
,
v1
);
Scalar
denom
=
v0
.
norm
()
*
v1
.
norm
();
if
(
is_zero
(
denom
))
if
(
denom
==
Scalar
(
0
))
{
return
0
;
}
...
...
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