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

Method getSamples

source/MRMesh/MRGridSampling.cpp:90–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90VertBitSet Grid::getSamples() const
91{
92 VertId maxId;
93 for ( const auto & ge : voxels_ )
94 maxId = std::max( maxId, ge.vid );
95
96 VertBitSet res( (size_t)maxId + 1 );
97 for ( const auto & ge : voxels_ )
98 if ( ge.vid )
99 res.set( ge.vid );
100
101 return res;
102}
103
104std::vector<MR::ObjVertId> Grid::setSamplesPerModel() const
105{

Callers 2

verticesGridSamplingFunction · 0.80
pointGridSamplingFunction · 0.80

Calls 2

maxFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected