Added Unittest for modified butterfly

This commit is contained in:
Jan Möbius
2019-04-09 13:44:17 +02:00
parent 752c8ef7d2
commit 9eee36de6d
3 changed files with 233 additions and 6 deletions

View File

@@ -321,7 +321,7 @@ private: // topological modifiers
typename mesh_t::VertexHandle vh1(_m.to_vertex_handle(heh));
typename mesh_t::Point midP(_m.point(_m.to_vertex_handle(heh)));
midP += _m.point(_m.to_vertex_handle(opp_heh));
midP *= 0.5;
midP *= static_cast<RealType>(0.5);
// new vertex
vh = _m.new_vertex( midP );
@@ -393,7 +393,7 @@ private: // geometry helper
// boundary edge: just average vertex positions
if (_m.is_boundary(_eh) )
{
pos *= 0.5;
pos *= static_cast<RealType>(0.5);
}
else // inner edge: add neighbouring Vertices to sum
{