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

Function sampleVertexColors

source/MRMesh/MRTextureColors.cpp:91–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91VertColors sampleVertexColors( const Mesh& mesh, const MeshTexture& tex, const TriCornerUVCoords& triCornerUvCoords )
92{
93 MR_TIMER;
94 VertColors res;
95 res.resizeNoInit( mesh.points.size() );
96 BitSetParallelFor( mesh.topology.getValidVerts(), [&]( VertId v )
97 {
98 res[v] = sampleVertexColor( mesh, v, tex, triCornerUvCoords );
99 } );
100 return res;
101}
102
103} //namespace MR

Callers 1

fromPlyFunction · 0.85

Calls 3

BitSetParallelForFunction · 0.85
sampleVertexColorFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected