Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ofxaddons
ofxCloudLib
Commits
1fd979a9
Commit
1fd979a9
authored
Sep 20, 2017
by
alexandre burton
Browse files
ClusterTracker: commentage de stdout debug
parent
56fd3d34
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ofxCloudLib/ClusterTracker.hpp
View file @
1fd979a9
...
...
@@ -66,7 +66,7 @@ class ClusterTracker
(
*
clusterMesh
)
->
min
[
1
]
-
cluster_halo
)))
{
// overlap X+Y
std
::
cout
<<
"OVERLAP 1 "
<<
std
::
endl
;
//
std::cout << "OVERLAP 1 " << std::endl;
(
*
clusterMesh
)
->
smartCloud
=
*
newCloud
;
(
*
clusterMesh
)
->
setupMesh
();
(
*
clusterMesh
)
->
lostTime
=
0
;
...
...
@@ -121,13 +121,13 @@ class ClusterTracker
if
((((
*
c
)
->
min
[
1
]
<
(
*
clusterMesh
)
->
max
[
1
]
+
cluster_halo
)
&&
((
*
c
)
->
max
[
1
]
>
(
*
clusterMesh
)
->
min
[
1
]
-
cluster_halo
)))
{
// overlap X+Y
std
::
cout
<<
"OVERLAP 2 avec tolérance"
<<
cluster_halo
<<
std
::
endl
;
//
std::cout << "OVERLAP 2 avec tolérance" << cluster_halo << std::endl;
(
*
clusterMesh
)
->
smartCloud
=
*
c
;
(
*
clusterMesh
)
->
setupMesh
();
(
*
clusterMesh
)
->
lostTime
=
0
;
(
*
clusterMesh
)
->
lost
=
false
;
(
*
clusterMesh
)
->
activeSpree
=
0
;
std
::
cout
<<
"delete cloud "
<<
std
::
endl
;
//
std::cout << "delete cloud " << std::endl;
c
=
candidateClouds
->
erase
(
c
);
reborn
=
true
;
break
;
...
...
@@ -138,7 +138,7 @@ class ClusterTracker
if
(
!
reborn
)
{
(
*
clusterMesh
)
->
lostTime
++
;
if
((
*
clusterMesh
)
->
lostTime
>
2
)
{
std
::
cout
<<
"delete clustermesh "
<<
std
::
endl
;
//
std::cout << "delete clustermesh " << std::endl;
clusterMeshBin
.
push_back
(
*
clusterMesh
);
clusterMesh
=
clusterMeshes
.
erase
(
clusterMesh
);
}
...
...
@@ -162,7 +162,7 @@ class ClusterTracker
vector
<
shared_ptr
<
SmartCloud
>>::
iterator
newCloud
;
for
(
newCloud
=
candidateClouds
->
begin
();
newCloud
!=
candidateClouds
->
end
();
newCloud
++
)
{
std
::
cout
<<
"new a clusterMesh"
<<
std
::
endl
;
//
std::cout << "new a clusterMesh" << std::endl;
if
(
clusterMeshBin
.
size
()
>
0
)
{
shared_ptr
<
ClusterMesh
>
revived
=
clusterMeshBin
.
back
();
...
...
Write
Preview
Supports
Markdown
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