10template<
typename ValueT,
typename IndexT>
16 for (
Id<IndexT> newId( 0 ); newId < newToOld.size(); ++newId )
17 if (
auto oldId = newToOld[newId] )
18 newData.autoResizeSet( newId, oldData[oldId] );
24template<
typename ValueT,
typename IndexT>
30 for (
Id<IndexT> oldId( 0 ); oldId < newToOld.size(); ++oldId )
31 if (
auto newId = newToOld[oldId] )
32 newData.autoResizeSet( newId, oldData[oldId] );
Definition MRMesh/MRId.h:13
std::vector<T>-like container that requires specific indexing type,
Definition MRMesh/MRVector.h:19
Definition MRCameraOrientationPlugin.h:7
void mapNewToOldVector(const Vector< ValueT, Id< IndexT > > &oldData, const Vector< Id< IndexT >, Id< IndexT > > &newToOld, Vector< ValueT, Id< IndexT > > &newData)
Definition MRMapping.h:11
void mapOldToNewVector(const Vector< ValueT, Id< IndexT > > &oldData, const Vector< Id< IndexT >, Id< IndexT > > &newToOld, Vector< ValueT, Id< IndexT > > &newData)
Definition MRMapping.h:25