Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
David Cazier
CGoGN
Commits
455dc609
Commit
455dc609
authored
Jul 09, 2014
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize gmap2::deleteCC
parent
4f71806d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
include/Topology/gmap/gmap2.hpp
include/Topology/gmap/gmap2.hpp
+4
-1
No files found.
include/Topology/gmap/gmap2.hpp
View file @
455dc609
...
...
@@ -204,7 +204,7 @@ void GMap2<MAP_IMPL>::deleteFace(Dart d)
template
<
typename
MAP_IMPL
>
void
GMap2
<
MAP_IMPL
>::
deleteCC
(
Dart
d
)
{
DartMarker
Store
<
GMap2
<
MAP_IMPL
>
>
mark
(
*
this
);
DartMarker
NoUnmark
<
MAP_IMPL
>
mark
(
*
this
);
std
::
vector
<
Dart
>
visited
;
visited
.
reserve
(
1024
)
;
...
...
@@ -234,7 +234,10 @@ void GMap2<MAP_IMPL>::deleteCC(Dart d)
}
for
(
std
::
vector
<
Dart
>::
iterator
it
=
visited
.
begin
();
it
!=
visited
.
end
();
++
it
)
{
mark
.
unmark
(
*
it
);
this
->
deleteDart
(
*
it
)
;
}
}
template
<
typename
MAP_IMPL
>
...
...
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