Skip to content

Commit

Permalink
added box extend
Browse files Browse the repository at this point in the history
  • Loading branch information
sevec committed Jul 2, 2020
1 parent 0626383 commit 9aba589
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Box.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ class BoundingBox {
lower_ = min(lower_, p);
upper_ = max(upper_, p);
}

void extend(const BoundingBox& b) {
extend(b.lower());
extend(b.upper());
}
};

using Box3f = BoundingBox<Vec3f>;
Expand Down
1 change: 0 additions & 1 deletion Refinement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ void laplacianSmoothing(TriangleMesh<Vec>& mesh, bool preserveBoundary = true, f
++neighCnt;
}
if (neighCnt > 0) {
float norm = 1.; // (1. + )
biharmonic[v1] = -delta / neighCnt + laplacian[v1];
}
});
Expand Down

0 comments on commit 9aba589

Please sign in to comment.