Skip to content

Commit

Permalink
Fix file loading
Browse files Browse the repository at this point in the history
  • Loading branch information
nmellado committed Dec 15, 2023
1 parent 63e6e16 commit 5924f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dataManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ DataManager::loadPointCloud(const std::string& path){
m_points.emplace_back(numbers[0], numbers[1], DEFAULT_POINT_ANGLE);
needToComputeNormals = true;
} else if (numbers.size() == 4){ // loaded x-y only, set normal to default value
m_points.emplace_back(numbers[0], numbers[1], std::acos(numbers[2]));
m_points.emplace_back(numbers[0], numbers[1], std::atan2(numbers[3], numbers[2]));
} else { // malformed line
std::cerr << "Skipping malformed line: [" << line << "]" << std::endl;
}
Expand Down

0 comments on commit 5924f60

Please sign in to comment.