MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / getNumLayers

Method getNumLayers

source/MRMesh/MRMultiwayICP.cpp:61–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 return ( numObjects_ + numLeaves - 1 ) / numLeaves;
60 }
61 virtual size_t getNumLayers() const override
62 {
63 int numLayers = 1;
64 int numElements = numObjects_;
65 while ( numElements > 1 )
66 {
67 numElements = ( numElements + maxGroupSize_ - 1 ) / maxGroupSize_;
68 numLayers++;
69 }
70 return numLayers;
71 }
72
73private:
74 int numObjects_{ 0 };

Callers 2

setupLayers_Method · 0.45
resampleUpperLayers_Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected