diff --git a/conandata.yml b/conandata.yml index 71e3fd1..e20c02a 100644 --- a/conandata.yml +++ b/conandata.yml @@ -1 +1 @@ -version: "1.0.0" +version: "1.0.1" diff --git a/src/unwrap.cpp b/src/unwrap.cpp index 27ccb3e..aee9b08 100644 --- a/src/unwrap.cpp +++ b/src/unwrap.cpp @@ -63,7 +63,7 @@ std::vector calculateProjectionNormals(const std::vector& fa }; // The unprocessed_faces is a sub-range of the faces list, that contains all the faces that have not been assigned to a group yet. - FaceDataRange unprocessed_faces = { .begin = faces_to_process.begin(), .end = faces_to_process.end() }; + FaceDataRange unprocessed_faces = { .begin = std::next(faces_to_process.begin()), .end = faces_to_process.end() }; while (true) { @@ -85,7 +85,7 @@ std::vector calculateProjectionNormals(const std::vector& fa Vector3F summed_normals = std::accumulate( current_faces_group.begin, current_faces_group.end, - Vector3F(), + *project_normal, [](const Vector3F& normal, const FaceData* face_data) { return normal + face_data->normal;