Skip to content

Commit 329769b

Browse files
committed
FIX: corrected a mostruosity I did in the building of DFMesh from file
1 parent 1f990ff commit 329769b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/diffCheck/geometry/DFMesh.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ namespace diffCheck::geometry
7676

7777
void DFMesh::LoadFromPLY(const std::string &path)
7878
{
79-
diffCheck::io::ReadPLYMeshFromFile(path);
80-
this->Vertices = diffCheck::io::ReadPLYMeshFromFile(path)->Vertices;
81-
this->Faces = diffCheck::io::ReadPLYMeshFromFile(path)->Faces;
82-
this->NormalsVertex = diffCheck::io::ReadPLYMeshFromFile(path)->NormalsVertex;
83-
this->ColorsVertex = diffCheck::io::ReadPLYMeshFromFile(path)->ColorsVertex;
84-
this->NormalsFace = diffCheck::io::ReadPLYMeshFromFile(path)->NormalsFace;
85-
this->ColorsFace = diffCheck::io::ReadPLYMeshFromFile(path)->ColorsFace;
79+
std::shared_ptr<diffCheck::geometry::DFMesh> tempMesh_ptr = diffCheck::io::ReadPLYMeshFromFile(path);
80+
this->Vertices = tempMesh_ptr->Vertices;
81+
this->Faces = tempMesh_ptr->Faces;
82+
this->NormalsVertex = tempMesh_ptr->NormalsVertex;
83+
this->ColorsVertex = tempMesh_ptr->ColorsVertex;
84+
this->NormalsFace = tempMesh_ptr->NormalsFace;
85+
this->ColorsFace = tempMesh_ptr->ColorsFace;
8686
}
8787
} // namespace diffCheck::geometry

0 commit comments

Comments
 (0)