Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Özgür Ozan Sen
ogs
Commits
ce33e47b
Commit
ce33e47b
authored
10 years ago
by
Karsten Rink
Browse files
Options
Downloads
Patches
Plain Diff
modified message output
parent
83fca727
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Applications/Utils/GeoTools/TriangulatePolyline.cpp
+4
-1
4 additions, 1 deletion
Applications/Utils/GeoTools/TriangulatePolyline.cpp
GeoLib/Polyline.cpp
+1
-1
1 addition, 1 deletion
GeoLib/Polyline.cpp
with
5 additions
and
2 deletions
Applications/Utils/GeoTools/TriangulatePolyline.cpp
+
4
−
1
View file @
ce33e47b
...
@@ -72,13 +72,16 @@ int main(int argc, char *argv[])
...
@@ -72,13 +72,16 @@ int main(int argc, char *argv[])
// check if line exists
// check if line exists
if
(
line
==
nullptr
)
if
(
line
==
nullptr
)
{
{
ERR
(
"No polyline found with name
\"
%s
\"
"
,
polyline_name
.
c_str
());
ERR
(
"No polyline found with name
\"
%s
\"
. Aborting...
"
,
polyline_name
.
c_str
());
return
1
;
return
1
;
}
}
// check if polyline can be triangulated (i.e. closed + coplanar)
// check if polyline can be triangulated (i.e. closed + coplanar)
if
(
!
line
->
isCoplanar
())
if
(
!
line
->
isCoplanar
())
{
ERR
(
"Polyline is not coplanar, no unambiguous triangulation possible. Aborting..."
);
return
1
;
return
1
;
}
if
(
!
line
->
isClosed
())
if
(
!
line
->
isClosed
())
{
{
...
...
This diff is collapsed.
Click to expand it.
GeoLib/Polyline.cpp
+
1
−
1
View file @
ce33e47b
...
@@ -206,7 +206,7 @@ bool Polyline::isCoplanar() const
...
@@ -206,7 +206,7 @@ bool Polyline::isCoplanar() const
{
{
if
(
!
GeoLib
::
isCoplanar
(
p0
,
p1
,
p2
,
*
this
->
getPoint
(
i
)))
if
(
!
GeoLib
::
isCoplanar
(
p0
,
p1
,
p2
,
*
this
->
getPoint
(
i
)))
{
{
ERR
(
"Point %d is not coplanar to the first three points of the line."
,
i
);
DBUG
(
"Point %d is not coplanar to the first three points of the line."
,
i
);
return
false
;
return
false
;
}
}
}
}
...
...
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