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

Method setSamplesPerModel

source/MRMesh/MRGridSampling.cpp:104–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104std::vector<MR::ObjVertId> Grid::setSamplesPerModel() const
105{
106 size_t counter = 0;
107 for ( const auto& ge : voxels_ )
108 if ( ge.vid )
109 ++counter;
110
111 std::vector<MR::ObjVertId> res( counter );
112 counter = 0;
113 for ( const auto& ge : voxels_ )
114 {
115 if ( !ge.vid )
116 continue;
117 res[counter] = { ge.oid,ge.vid };
118 ++counter;
119 }
120 return res;
121}
122
123std::optional<VertBitSet> verticesGridSampling( const MeshPart & mp, float voxelSize, const ProgressCallback & cb )
124{

Callers 1

multiModelGridSamplingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected