Skip to content

Commit

Permalink
fix render points cloud error
Browse files Browse the repository at this point in the history
  • Loading branch information
dicarne committed Sep 14, 2022
1 parent 5f17684 commit 677b056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DPViewer/dpviewer/viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void Viewer::drawPoints() {
glPointSize(10.0f);
glBegin(GL_POINTS);

for (auto i = 0; i < points.size(0); i++) {
for (auto i = 0; i < points.size(0); i+=3) {

glColor4ub(*(rgb_data + i), *(rgb_data + i + 1), *(rgb_data + i + 2), 255);
glVertex3f(*(xyz_data + i), *(xyz_data + i + 1), *(xyz_data + 2 + i));
Expand Down

0 comments on commit 677b056

Please sign in to comment.