Skip to content

Commit

Permalink
bug fix at AddPerpPlaneQuadric (#6911)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchunlin committed Aug 19, 2024
1 parent 6cb32f6 commit f7d8ceb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/open3d/geometry/TriangleMeshSimplification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ std::shared_ptr<TriangleMesh> TriangleMesh::SimplifyQuadricDecimation(
const auto& vert1 = mesh->vertices_[vidx1];
const auto& vert2 = mesh->vertices_[vidx2];
Eigen::Vector3d vert2p = (vert2 - vert0).cross(vert2 - vert1);
Eigen::Vector4d plane = ComputeTrianglePlane(vert0, vert1, vert2p);
Eigen::Vector4d plane =
ComputeTrianglePlane(vert0, vert1, vert0 + vert2p);
Quadric quad(plane, area * boundary_weight);
Qs[vidx0] += quad;
Qs[vidx1] += quad;
Expand Down

0 comments on commit f7d8ceb

Please sign in to comment.