Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eigen::Matrix formatting sometimes includes spaces #233

Open
charlescva opened this issue Jan 10, 2019 · 1 comment
Open

Eigen::Matrix formatting sometimes includes spaces #233

charlescva opened this issue Jan 10, 2019 · 1 comment

Comments

@charlescva
Copy link

ply_writer << points_to_write[i].transpose() << " "

Can produce output like:

1.98662  97 110 129
3.31429 3.52336 2.25344 56 62 42
0.495699  5.89537  1.98544 170 171 179
-3.78543  13.2922  2.54211 238 228 201
-13.1867 -1.20913  2.15219 188  86  81
1.22623 1.51887 2.52168 111  92  81
-5.44469 0.845202  1.75544 253 252 254
-9.03693 -3.38899  2.23863 134 133 139
  -7.78714 -0.0770628    2.33033 88 92 51
4.46483 2.75048 2.27332 180 163 118
-1.55375  9.22783  2.61945 106 101  66
0.94116 1.52814 2.52329 193 178 145
-2.90701 -1.19605  2.36058 70 87 50
4.20461 9.59579 2.52774  86  90 100
0.366025  2.04211  2.53315 162 159 158
-0.751571   6.26258    1.9971 198 203 211

Notice occasional white space after \n (newline) and between values.

@sweeneychris
Copy link
Owner

Happy to accept a PR if you were able to fix this bug :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants