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

Function mapsComposition

source/MRMesh/MRPrimitiveMapsComposition.cpp:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8template<typename Tag>
9void mapsComposition( Vector<Id<Tag>, Id<Tag>>& a2b, const Vector<Id<Tag>, Id<Tag>>& b2c )
10{
11 for ( int i = 0; i < a2b.size(); ++i )
12 {
13 auto& bId = a2b[Id<Tag>( i )];
14 if ( bId )
15 bId = b2c[bId];
16 }
17}
18
19template<typename Tag>
20Vector<Id<Tag>, Id<Tag>> mapsComposition( const Vector<Id<Tag>, Id<Tag>>& a2b, const Vector<Id<Tag>, Id<Tag>>& b2c )

Callers 3

vertMapsCompositionFunction · 0.85
edgeMapsCompositionFunction · 0.85
faceMapsCompositionFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected