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
Valentin Platzgummer
qgroundcontrol
Commits
d03dbb93
Commit
d03dbb93
authored
Aug 19, 2018
by
Thomas Gubler
Committed by
Thomas Gubler
Nov 07, 2018
Browse files
[Survey transects generation] close polygon after decomposition
parent
fb10d04d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/MissionManager/SurveyComplexItem.cc
View file @
d03dbb93
...
...
@@ -1113,14 +1113,17 @@ void SurveyComplexItem::_rebuildTransectsPhase1Worker(bool refly)
qCDebug
(
SurveyComplexItemLog
)
<<
"Vertex"
<<
polygonPoints
[
i
];
polygon
<<
polygonPoints
[
i
];
}
polygon
<<
polygonPoints
[
0
];
// Create list of separate polygons
QList
<
QPolygonF
>
polygons
;
_PolygonDecomposeConvex
(
polygon
,
polygons
);
// iterate over polygons
for
(
const
auto
&
p
:
polygons
)
{
for
(
auto
&
p
:
polygons
)
{
// close polygon
p
<<
p
.
front
();
// build transects for this polygon
// TODO figure out tangent origin
_rebuildTranscetsFromPolygon
(
refly
,
p
,
tangentOrigin
);
}
}
...
...
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