Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KennethVanhoey
CGoGN
Commits
95da611e
Commit
95da611e
authored
Mar 14, 2014
by
Pierre Kraemer
Browse files
debug newDart in mapMulti
parent
0c3be6e9
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/Topology/generic/genericmap.h
View file @
95da611e
...
...
@@ -147,7 +147,7 @@ protected:
/**
* Add a dart to the map
*/
virtual
Dart
newDart
()
;
Dart
newDart
()
;
/**
* Erase a dart of the map
...
...
include/Topology/generic/mapMono.h
View file @
95da611e
...
...
@@ -50,7 +50,7 @@ protected:
* DARTS MANAGEMENT *
****************************************/
inline
virtual
Dart
newDart
();
inline
Dart
newDart
();
inline
virtual
void
deleteDart
(
Dart
d
);
...
...
include/Topology/generic/mapMulti.h
View file @
95da611e
...
...
@@ -83,7 +83,7 @@ protected:
* DARTS MANAGEMENT *
****************************************/
inline
virtual
Dart
newDart
();
inline
Dart
newDart
();
inline
virtual
void
deleteDart
(
Dart
d
);
...
...
include/Topology/generic/mapMulti.hpp
View file @
95da611e
...
...
@@ -49,29 +49,22 @@ inline Dart MapMulti::newDart()
(
*
m_mrLevels
)[
mrdi
]
=
m_mrCurrentLevel
;
// set the introduction level of the dart
m_mrNbDarts
[
m_mrCurrentLevel
]
++
;
Dart
mrd
=
Dart
::
create
(
mrdi
);
for
(
unsigned
int
i
=
0
;
i
<
m_permutation
.
size
();
++
i
)
(
*
m_permutation
[
i
])[
d
.
index
]
=
mrd
;
for
(
unsigned
int
i
=
0
;
i
<
m_permutation_inv
.
size
();
++
i
)
(
*
m_permutation_inv
[
i
])[
d
.
index
]
=
mrd
;
for
(
unsigned
int
i
=
0
;
i
<
m_involution
.
size
();
++
i
)
(
*
m_involution
[
i
])[
d
.
index
]
=
mrd
;
for
(
unsigned
int
i
=
0
;
i
<
m_mrCurrentLevel
;
++
i
)
// for all previous levels
(
*
m_mrDarts
[
i
])[
mrdi
]
=
MRNULL
;
// this MRdart does not exist
for
(
unsigned
int
i
=
m_mrCurrentLevel
;
i
<
m_mrDarts
.
size
();
++
i
)
// for all levels from current to max
(
*
m_mrDarts
[
i
])[
mrdi
]
=
d
.
index
;
// make this MRdart point to the new dart line
pushLevel
()
;
for
(
unsigned
int
i
=
m_mrCurrentLevel
;
i
<
m_mrDarts
.
size
();
++
i
)
{
setCurrentLevel
(
i
)
;
unsigned
int
d_index
=
dartIndex
(
d
)
;
for
(
unsigned
int
i
=
0
;
i
<
m_permutation
.
size
();
++
i
)
(
*
m_permutation
[
i
])[
d_index
]
=
d
;
for
(
unsigned
int
i
=
0
;
i
<
m_permutation_inv
.
size
();
++
i
)
(
*
m_permutation_inv
[
i
])[
d_index
]
=
d
;
for
(
unsigned
int
i
=
0
;
i
<
m_involution
.
size
();
++
i
)
(
*
m_involution
[
i
])[
d_index
]
=
d
;
}
popLevel
()
;
return
Dart
::
create
(
mrdi
)
;
return
mrd
;
}
inline
void
MapMulti
::
deleteDart
(
Dart
d
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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