Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MostafaMollaali
dynamic
Commits
68672666
Commit
68672666
authored
12 years ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
Using logog logging within class Polyline.
parent
0e6c11f2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GeoLib/Polyline.cpp
+6
-13
6 additions, 13 deletions
GeoLib/Polyline.cpp
with
6 additions
and
13 deletions
GeoLib/Polyline.cpp
+
6
−
13
View file @
68672666
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +9,8 @@
* Created on 2010-06-21 by Thomas Fischer
* Created on 2010-06-21 by Thomas Fischer
*/
*/
// Base
// ThirdParty/logog
#include
"logog/include/logog.hpp"
// GeoLib
// GeoLib
#include
"Polyline.h"
#include
"Polyline.h"
...
@@ -291,18 +292,12 @@ Polyline* Polyline::constructPolylineFromSegments(const std::vector<Polyline*> &
...
@@ -291,18 +292,12 @@ Polyline* Polyline::constructPolylineFromSegments(const std::vector<Polyline*> &
}
}
}
}
else
else
std
::
cout
ERR
(
"Error in Polyline::contructPolylineFromSegments() - Line segments use different point vectors."
);
<<
"Error in Polyline::contructPolylineFromSegments() - Line segments use different point vectors..."
<<
std
::
endl
;
}
}
if
(
!
ply_found
)
if
(
!
ply_found
)
{
{
std
::
cout
ERR
(
"Error in Polyline::contructPolylineFromSegments() - Not all segments are connected."
);
<<
"Error in Polyline::contructPolylineFromSegments() - Not all segments are connected..."
<<
std
::
endl
;
new_ply
=
NULL
;
new_ply
=
NULL
;
break
;
break
;
}
}
...
@@ -330,9 +325,7 @@ Polyline* Polyline::closePolyline(const Polyline& ply)
...
@@ -330,9 +325,7 @@ Polyline* Polyline::closePolyline(const Polyline& ply)
new_ply
->
addPoint
(
new_ply
->
getPointID
(
0
));
new_ply
->
addPoint
(
new_ply
->
getPointID
(
0
));
return
new_ply
;
return
new_ply
;
}
}
std
::
cout
<<
ERR
(
"Error in Polyline::closePolyline() - Input polyline needs to be composed of at least three points."
);
"Error in Polyline::closePolyline() - Input polyline needs to be composed of at least three points..."
<<
std
::
endl
;
return
NULL
;
return
NULL
;
}
}
...
@@ -372,7 +365,7 @@ bool containsEdge (const Polyline& ply, size_t id0, size_t id1)
...
@@ -372,7 +365,7 @@ bool containsEdge (const Polyline& ply, size_t id0, size_t id1)
{
{
if
(
id0
==
id1
)
if
(
id0
==
id1
)
{
{
std
::
cerr
<<
"no valid edge id0 == id1 ==
"
<<
id0
<<
std
::
endl
;
ERR
(
"no valid edge id0 == id1 ==
%d."
,
id0
)
;
return
false
;
return
false
;
}
}
if
(
id0
>
id1
)
if
(
id0
>
id1
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment