Commit 0c95dc5f authored by Sylvain Thery's avatar Sylvain Thery
Browse files

forgotten file for copyFrom

parent 8742abaf
......@@ -578,6 +578,45 @@ bool GenericMap::loadMapBin(const std::string& filename)
return true;
bool GenericMap::copyFrom(const GenericMap& map)
if (mapTypeName() != map.mapTypeName())
CGoGNerr <<"try to copy from incompatible type map" << CGoGNendl;
return false;
// load attrib container
for (unsigned int i = 0; i < NB_ORBITS; ++i)
if (m_isMultiRes)
m_mrCurrentLevel = map.m_mrCurrentLevel;
unsigned int nb= map.m_mrNbDarts.size();
for (unsigned int i=0; i<nb; ++i)
m_mrNbDarts[i] = map.m_mrNbDarts[i];
// retrieve m_embeddings (from m_attribs)
// recursive call from real type of map (for topo relation attributes pointers) down to GenericMap (for Marker_cleaning & pointers)
return true;
void GenericMap::update_m_emb_afterLoad()
// get container of dart orbit
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment