Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hurstel
CGoGN
Commits
0c95dc5f
Commit
0c95dc5f
authored
Mar 14, 2012
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forgotten file for copyFrom
parent
8742abaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
src/Topology/generic/genericmap.cpp
src/Topology/generic/genericmap.cpp
+39
-0
No files found.
src/Topology/generic/genericmap.cpp
View file @
0c95dc5f
...
...
@@ -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;
}
GenericMap::clear(true);
// load attrib container
for (unsigned int i = 0; i < NB_ORBITS; ++i)
m_attribs[i].copyFrom(map.m_attribs[i]);
if (m_isMultiRes)
{
m_mrattribs.copyFrom(map.m_mrattribs);
m_mrCurrentLevel = map.m_mrCurrentLevel;
unsigned int nb= map.m_mrNbDarts.size();
m_mrNbDarts.resize(nb);
for (unsigned int i=0; i<nb; ++i)
m_mrNbDarts[i] = map.m_mrNbDarts[i];
}
// retrieve m_embeddings (from m_attribs)
update_m_emb_afterLoad();
// recursive call from real type of map (for topo relation attributes pointers) down to GenericMap (for Marker_cleaning & pointers)
update_topo_shortcuts();
return true;
}
void GenericMap::update_m_emb_afterLoad()
{
// get container of dart orbit
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment