12template<
typename ValueT,
typename IndexT>
18 for (
Id<IndexT> newId( 0 ); newId < newToOld.size(); ++newId )
19 if (
auto oldId = newToOld[newId] )
20 newData.autoResizeSet( newId, oldData[oldId] );
26template<
typename ValueT,
typename IndexT>
32 for (
Id<IndexT> oldId( 0 ); oldId < newToOld.size(); ++oldId )
33 if (
auto newId = newToOld[oldId] )
34 newData.autoResizeSet( newId, oldData[oldId] );
Definition MRMesh/MRId.h:13
std::vector<T>-like container that requires specific indexing type,
Definition MRMesh/MRVector.h:20
Definition MRCameraOrientationPlugin.h:8
void mapNewToOldVector(const Vector< ValueT, Id< IndexT > > &oldData, const Vector< Id< IndexT >, Id< IndexT > > &newToOld, Vector< ValueT, Id< IndexT > > &newData)
Definition MRMapping.h:13
void mapOldToNewVector(const Vector< ValueT, Id< IndexT > > &oldData, const Vector< Id< IndexT >, Id< IndexT > > &newToOld, Vector< ValueT, Id< IndexT > > &newData)
Definition MRMapping.h:27