MCPcopy Create free account
hub / github.com/PDAL/PDAL / numPoints

Function numPoints

plugins/e57/io/Utils.cpp:241–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241point_count_t numPoints(const e57::VectorNode data3D)
242{
243 point_count_t count(0);
244 int64_t scanCount = data3D.childCount();
245 try
246 {
247 for (int scanIndex = 0; scanIndex < scanCount; scanIndex++)
248 {
249 e57::StructureNode scan(data3D.get(scanIndex));
250 e57::CompressedVectorNode points(scan.get("points"));
251 count += points.childCount();
252 }
253 }
254 catch (e57::E57Exception& e)
255 {
256 e.report(__FILE__, __LINE__, __FUNCTION__);
257 }
258 catch (...)
259 {
260 throw pdal_error("Got an unknown exception");
261 }
262 return count;
263}
264
265void Dim::grow(double val)
266{

Callers 2

inspectMethod · 0.70
readMethod · 0.70

Calls 3

reportMethod · 0.80
childCountMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected