Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sauvage
CGoGN
Commits
bcb99dac
Commit
bcb99dac
authored
Jul 19, 2011
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug vector/list dans CGoGN
parent
7ea5c210
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
include/Topology/generic/genericmap.hpp
include/Topology/generic/genericmap.hpp
+0
-1
src/Topology/map/map3.cpp
src/Topology/map/map3.cpp
+3
-3
No files found.
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
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