MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / TEST

Function TEST

test/surface/test_grid_projection.cpp:63–82  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

61
62//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
63TEST (PCL, GridProjection)
64{
65 // Init objects
66 PolygonMesh grid;
67 GridProjection<PointNormal> gp;
68
69 // Set parameters
70 gp.setInputCloud (cloud_with_normals);
71 gp.setSearchMethod (tree2);
72 gp.setResolution (0.005);
73 gp.setPaddingSize (3);
74
75 // Reconstruct
76 gp.reconstruct (grid);
77 //saveVTKFile ("./test/bun0-grid.vtk", grid);
78 EXPECT_GE (grid.cloud.width, 5180);
79 EXPECT_GE (int (grid.polygons.size ()), 1295);
80 EXPECT_EQ (int (grid.polygons.at (0).vertices.size ()), 4);
81 EXPECT_EQ (int (grid.polygons.at (0).vertices.at (0)), 0);
82}
83
84/* ---[ */
85int

Callers

nothing calls this directly

Calls 7

setPaddingSizeMethod · 0.80
setInputCloudMethod · 0.45
setSearchMethodMethod · 0.45
setResolutionMethod · 0.45
reconstructMethod · 0.45
sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected