Skip to content

Commit

Permalink
Merge pull request #879 from VictorLamoine/ply_fix
Browse files Browse the repository at this point in the history
[PLYReader] Fix bad orientation & origin propreties
  • Loading branch information
taketwo committed Sep 2, 2014
2 parents d133776 + 23c4042 commit ad3a363
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions io/src/ply_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,8 @@ pcl::PLYReader::read (const std::string &file_name, pcl::PCLPointCloud2 &cloud,
cloud_->data.swap (data);
}

orientation = Eigen::Quaternionf (orientation_);
origin = origin_;
orientation_ = Eigen::Quaternionf (orientation);
origin_ = origin;

for (size_t i = 0; i < cloud_->fields.size (); ++i)
{
Expand Down Expand Up @@ -681,8 +681,8 @@ pcl::PLYReader::read (const std::string &file_name, pcl::PolygonMesh &mesh,
cloud_->data.swap (data);
}

orientation = Eigen::Quaternionf (orientation_);
origin = origin_;
orientation_ = Eigen::Quaternionf (orientation);
origin_ = origin;

for (size_t i = 0; i < cloud_->fields.size (); ++i)
{
Expand Down

0 comments on commit ad3a363

Please sign in to comment.