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
Thomas Pitiot
CGoGN
Commits
2b2df40a
Commit
2b2df40a
authored
Nov 29, 2012
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolved last (?) bug of embnull
parent
3e4dba23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
17 deletions
+8
-17
include/Topology/generic/genericmap.hpp
include/Topology/generic/genericmap.hpp
+8
-17
No files found.
include/Topology/generic/genericmap.hpp
View file @
2b2df40a
...
...
@@ -397,12 +397,12 @@ inline void GenericMap::copyCell(Dart d, Dart e)
assert
(
isOrbitEmbedded
<
ORBIT
>
()
||
!
"Invalid parameter: orbit not embedded"
);
unsigned
int
dE
=
getEmbedding
<
ORBIT
>
(
d
)
;
unsigned
int
eE
=
getEmbedding
<
ORBIT
>
(
e
)
;
//
if(eE != EMBNULL) // if the source is NULL, nothing to copy
//
{
//
if(dE == EMBNULL) // if the dest is NULL, create a new cell
//
dE = setOrbitEmbeddingOnNewCell<ORBIT>(d) ;
if
(
eE
!=
EMBNULL
)
// if the source is NULL, nothing to copy
{
if
(
dE
==
EMBNULL
)
// if the dest is NULL, create a new cell
dE
=
setOrbitEmbeddingOnNewCell
<
ORBIT
>
(
d
)
;
m_attribs
[
ORBIT
].
copyLine
(
dE
,
eE
)
;
// copy the data
//
}
}
}
template
<
unsigned
int
ORBIT
>
...
...
@@ -538,18 +538,9 @@ void GenericMap::addEmbedding()
AttributeMultiVector
<
unsigned
int
>*
amv
=
dartCont
.
addAttribute
<
unsigned
int
>
(
oss
.
str
())
;
m_embeddings
[
ORBIT
]
=
amv
;
FunctorInitEmb
<
GenericMap
,
ORBIT
>
fsetemb
(
*
this
);
DartMarker
dm
(
*
this
);
for
(
Dart
d
=
this
->
begin
();
d
!=
this
->
end
();
this
->
next
(
d
))
{
if
(
!
dm
.
isMarked
(
d
))
{
dm
.
markOrbit
<
ORBIT
>
(
d
);
unsigned
int
em
=
newCell
<
ORBIT
>
();
fsetemb
.
changeEmb
(
em
);
foreach_dart_of_orbit
<
ORBIT
>
(
d
,
fsetemb
);
}
}
// set new embedding to EMBNULL for all the darts of the map
for
(
unsigned
int
i
=
dartCont
.
begin
();
i
<
dartCont
.
end
();
dartCont
.
next
(
i
))
(
*
amv
)[
i
]
=
EMBNULL
;
}
/****************************************
...
...
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