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
CGoGN
CGoGN
Commits
bcb99dac
Commit
bcb99dac
authored
Jul 19, 2011
by
Sylvain Thery
Browse files
bug vector/list dans CGoGN
parent
7ea5c210
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/Topology/generic/genericmap.hpp
View file @
bcb99dac
...
...
@@ -120,7 +120,6 @@ inline void GenericMap::embedOrbit(unsigned int orbit, Dart d, unsigned int em)
{
assert
(
isOrbitEmbedded
(
orbit
)
||
!
"Invalid parameter: orbit not embedded"
);
FunctorSetEmb
<
GenericMap
>
fsetemb
(
*
this
,
orbit
,
em
);
std
::
cout
<<
"EMBEDORBIT"
<<
std
::
endl
;
foreach_dart_of_orbit
(
orbit
,
d
,
fsetemb
);
}
...
...
src/Topology/map/map3.cpp
View file @
bcb99dac
...
...
@@ -763,13 +763,12 @@ bool Map3::foreach_dart_of_vertex(Dart d, FunctorType& f, unsigned int thread)
DartMarkerStore
mv
(
*
this
,
thread
);
// Lock a marker
bool
found
=
false
;
// Last functor return value
std
::
vector
<
Dart
>
darts_list
;
//Darts that are traversed
darts_list
.
reserve
(
50
);
std
::
list
<
Dart
>
darts_list
;
//Darts that are traversed
darts_list
.
push_back
(
d
);
//Start with the dart d
mv
.
mark
(
d
);
for
(
std
::
vector
<
Dart
>::
iterator
darts
=
darts_list
.
begin
();
!
found
&&
darts
!=
darts_list
.
end
()
;
++
darts
)
for
(
std
::
list
<
Dart
>::
iterator
darts
=
darts_list
.
begin
();
!
found
&&
darts
!=
darts_list
.
end
()
;
++
darts
)
{
Dart
dc
=
*
darts
;
...
...
@@ -799,6 +798,7 @@ bool Map3::foreach_dart_of_vertex(Dart d, FunctorType& f, unsigned int thread)
return
found
;
}
bool
Map3
::
foreach_dart_of_edge
(
Dart
d
,
FunctorType
&
f
,
unsigned
int
thread
)
{
Dart
dNext
=
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