Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
KennethVanhoey
CGoGN
Commits
13408457
Commit
13408457
authored
Feb 07, 2012
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction begin / end / next pour MR
parent
b263ad7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
include/Topology/generic/genericmap.hpp
include/Topology/generic/genericmap.hpp
+19
-5
No files found.
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
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