Skip to content
Snippets Groups Projects
Commit c9cd410f authored by Philip Trettner's avatar Philip Trettner
Browse files

normal estimation on boundary fix

parent 98ad96fa
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,13 @@ template <class Vec3, class IsHardEdgeF>
auto const hard_edges = m.edges().map([&](edge_handle e) { return e.is_boundary() ? true : is_hard_edge(e); });
return m.halfedges().map([&](halfedge_handle h) {
return m.halfedges().map(
[&](halfedge_handle h)
{
if (h.is_boundary())
return Vec3{};
POLYMESH_ASSERT(h.face().is_valid());
Vec3 n = face_normals[h.face()];
auto h0 = h;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment