Skip to content

Commit

Permalink
Added path for all STL files
Browse files Browse the repository at this point in the history
  • Loading branch information
pariterre committed Feb 23, 2024
1 parent 65bb313 commit 64a593c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ModelReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2275,6 +2275,7 @@ rigidbody::Mesh Reader::readMeshFileStl(
}

rigidbody::Mesh mesh;
mesh.setPath(path);
if (isBinary){
// Know the number of points
char headerChar[80] = "";
Expand All @@ -2284,7 +2285,6 @@ rigidbody::Mesh Reader::readMeshFileStl(
file.readFromBinary(nbTrianglesChar, 4);
size_t nbTriangles = static_cast<size_t>(*((unsigned int*) nbTrianglesChar));

mesh.setPath(path);
utils::Vector3d normal;
utils::Vector3d vertex;
for (int i = 0; i<nbTriangles; ++i){
Expand Down

0 comments on commit 64a593c

Please sign in to comment.