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

Function loadPolygonMeshModel

simulation/tools/sim_test_performance.cpp:338–351  ·  view source on GitHub ↗

Read in a 3D model

Source from the content-addressed store, hash-verified

336
337// Read in a 3D model
338void
339loadPolygonMeshModel(char* polygon_file)
340{
341 pcl::PolygonMesh mesh;
342 pcl::io::loadPolygonFile(polygon_file, mesh);
343 pcl::PolygonMesh::Ptr cloud(new pcl::PolygonMesh(mesh));
344
345 TriangleMeshModel::Ptr model = TriangleMeshModel::Ptr(new TriangleMeshModel(cloud));
346 scene_->add(model);
347
348 std::cout << "Just read " << polygon_file << std::endl;
349 std::cout << mesh.polygons.size() << " polygons and " << mesh.cloud.data.size()
350 << " triangles\n";
351}
352
353void
354initialize(int argc, char** argv)

Callers 1

initializeFunction · 0.70

Calls 2

addMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected