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
David Cazier
CGoGN
Commits
13408457
Commit
13408457
authored
Feb 07, 2012
by
Pierre Kraemer
Browse files
correction begin / end / next pour MR
parent
b263ad7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/Topology/generic/genericmap.hpp
View file @
13408457
...
...
@@ -258,20 +258,34 @@ inline AttributeMultiVector<unsigned int>* GenericMap::getEmbeddingAttributeVect
inline
Dart
GenericMap
::
begin
()
{
return
Dart
::
create
(
m_attribs
[
DART
].
begin
());
if
(
m_isMultiRes
)
{
unsigned
int
d
=
m_mrattribs
.
begin
()
;
while
(
getDartLevel
(
d
)
>
m_mrCurrentLevel
)
m_mrattribs
.
next
(
d
)
;
return
Dart
::
create
(
d
)
;
}
return
Dart
::
create
(
m_attribs
[
DART
].
begin
())
;
}
inline
Dart
GenericMap
::
end
()
{
if
(
m_isMultiRes
)
return
Dart
::
create
(
m_mrattribs
.
end
())
;
return
Dart
::
create
(
m_attribs
[
DART
].
end
())
;
}
inline
void
GenericMap
::
next
(
Dart
&
d
)
{
unsigned
int
d_index
=
dartIndex
(
d
);
m_attribs
[
DART
].
next
(
d_index
)
;
d
=
Dart
::
create
(
d_index
);
if
(
m_isMultiRes
)
{
while
((
d
.
index
!=
m_mrattribs
.
end
()
)
&&
(
getDartLevel
(
d
.
index
)
>
m_mrCurrentLevel
))
m_mrattribs
.
next
(
d
.
index
)
;
}
else
m_attribs
[
DART
].
next
(
d
.
index
)
;
}
/****************************************
...
...
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