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

Method process

surface/src/processing.cpp:60–85  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

58
59//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
60void
61pcl::MeshProcessing::process (pcl::PolygonMesh &output)
62{
63 // Copy the header
64 output.header = input_mesh_->header;
65
66 if (!initCompute ())
67 {
68 output.cloud.width = output.cloud.height = 0;
69 output.cloud.data.clear ();
70 output.polygons.clear ();
71 return;
72 }
73
74 // Set up the output dataset
75 output.cloud = input_mesh_->cloud;
76 // \TODO: Double check if this is needed
77 {
78 output.polygons.clear ();
79 output.polygons.reserve (2*input_mesh_->polygons.size ()); /// NOTE: usually the number of triangles is around twice the number of vertices
80 }
81 // Perform the actual surface reconstruction
82 performProcessing (output);
83
84 deinitCompute ();
85}
86

Callers 6

computeFunction · 0.45
computeFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
startMainLoopMethod · 0.45
mainFunction · 0.45

Calls 3

reserveMethod · 0.80
clearMethod · 0.45
sizeMethod · 0.45

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36