MCPcopy Create free account
hub / github.com/Pamphlett/Outram / initialize_zone

Method initialize_zone

include/patchwork.hpp:261–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259
260template<typename PointT>
261inline
262void PatchWork<PointT>::initialize_zone(Zone &z, int num_sectors, int num_rings) {
263 z.clear();
264 pcl::PointCloud<PointT> cloud;
265 cloud.reserve(1000);
266 Ring ring;
267 for (int i = 0; i < num_sectors; i++) {
268 ring.emplace_back(cloud);
269 }
270 for (int j = 0; j < num_rings; j++) {
271 z.emplace_back(ring);
272 }
273}
274
275template<typename PointT>
276inline

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
reserveMethod · 0.45

Tested by

no test coverage detected