Skip to content

Commit

Permalink
Bug fix with reconstruction a single layer with transformation matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
gianpaolopalma committed Feb 13, 2024
1 parent 06237d7 commit bd88167
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ std::map<std::string, QVariant> FilterScreenedPoissonPlugin::applyFilter(
}
else {
MeshModelPointStream<Scalarm> meshStream(md.mm()->cm);
_Execute<Scalarm,2,BOUNDARY_NEUMANN,PlyColorAndValueVertex<Scalarm> >(&meshStream,md.mm()->cm.bbox,pm->cm,pp,cb);
Box3m bb;
bb.Add(md.mm()->cm.Tr, md.mm()->cm.bbox);
_Execute<Scalarm,2,BOUNDARY_NEUMANN,PlyColorAndValueVertex<Scalarm> >(&meshStream,bb,pm->cm,pp,cb);
}
pm->updateBoxAndNormals();
md.setVisible(pm->id(),true);
Expand Down
3 changes: 0 additions & 3 deletions src/meshlabplugins/filter_screened_poisson/poisson_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,6 @@ int _Execute(
template <class MeshType>
void PoissonClean(MeshType &m, bool scaleNormal, bool cleanFlag)
{
vcg::tri::UpdatePosition<MeshType>::Matrix(m, m.Tr,true);
vcg::tri::UpdateBounding<MeshType>::Box(m);
m.Tr.SetIdentity();
vcg::tri::UpdateNormal<MeshType>::NormalizePerVertex(m);

if(cleanFlag) {
Expand Down

0 comments on commit bd88167

Please sign in to comment.