store winding points in double precision

This commit is contained in:
Garux
2021-11-23 14:48:00 +03:00
parent af14a811af
commit 6c129e546f
13 changed files with 105 additions and 123 deletions

View File

@@ -1239,7 +1239,7 @@ void SmoothMetaTriangles(){
smoothed[ j ] = true;
/* see if this normal has already been voted */
if( votes.end() == std::find_if( votes.begin(), votes.end(),
if( std::none_of( votes.begin(), votes.end(),
[normal = verts[j]->normal]( const Vector3& vote ){
return vector3_equal_epsilon( normal, vote, EQUAL_NORMAL_EPSILON );
} ) )