Merge branch 'Fix_calc_sector_angle' into 'master'
calc_sector_angle: Check for real division by zero not with epsilon that was way to large See merge request OpenMesh/OpenMesh!148
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
<li>Added 1-4 triangle split funtion(splits all edges at Midpoints)</li>
|
<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>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>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>
|
</ul>
|
||||||
|
|
||||||
<b>Utils</b>
|
<b>Utils</b>
|
||||||
|
|||||||
@@ -445,7 +445,7 @@ public:
|
|||||||
Normal v0, v1;
|
Normal v0, v1;
|
||||||
calc_sector_vectors(_in_heh, v0, v1);
|
calc_sector_vectors(_in_heh, v0, v1);
|
||||||
Scalar denom = v0.norm()*v1.norm();
|
Scalar denom = v0.norm()*v1.norm();
|
||||||
if (is_zero(denom))
|
if ( denom == Scalar(0))
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user