Skip to content

Commit 4b7ab13

Browse files
committed
Merge pull request #226 from dirkholz/fix_quadmesh
fixed bug in quad mesh construction (wrong index order caused invalid quads)
2 parents b92ddb2 + 4007942 commit 4b7ab13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

surface/include/pcl/surface/impl/organized_fast_mesh.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ pcl::OrganizedFastMesh<PointInT>::makeQuadMesh (std::vector<pcl::Vertices>& poly
114114
index_down += triangle_pixel_size_,
115115
index_down_right += triangle_pixel_size_)
116116
{
117-
if (isValidQuad (i, index_down, index_right, index_down_right))
117+
if (isValidQuad (i, index_right, index_down_right, index_down))
118118
if (store_shadowed_faces_ || !isShadowedQuad (i, index_right, index_down_right, index_down))
119-
addQuad (i, index_down, index_right, index_down_right, idx++, polygons);
119+
addQuad (i, index_right, index_down_right, index_down, idx++, polygons);
120120
}
121121
}
122122
polygons.resize (idx);

0 commit comments

Comments
 (0)