|
|
|
@ -1117,7 +1117,7 @@ void SurveyComplexItem::_rebuildTransectsPhase1Worker(bool refly)
@@ -1117,7 +1117,7 @@ void SurveyComplexItem::_rebuildTransectsPhase1Worker(bool refly)
|
|
|
|
|
|
|
|
|
|
// Create list of separate polygons
|
|
|
|
|
QList<QPolygonF> polygons; |
|
|
|
|
polygons << polygon; |
|
|
|
|
_PolygonDecomposeConvex(polygon, polygons); |
|
|
|
|
|
|
|
|
|
// iterate over polygons
|
|
|
|
|
for (const auto& p : polygons) { |
|
|
|
@ -1125,6 +1125,11 @@ void SurveyComplexItem::_rebuildTransectsPhase1Worker(bool refly)
@@ -1125,6 +1125,11 @@ void SurveyComplexItem::_rebuildTransectsPhase1Worker(bool refly)
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void SurveyComplexItem::_PolygonDecomposeConvex(const QPolygonF& polygon, QList<QPolygonF>& polygons) |
|
|
|
|
{ |
|
|
|
|
polygons << polygon; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void SurveyComplexItem::_rebuildTranscetsFromPolygon(bool refly, const QPolygonF& polygon, const QGeoCoordinate& tangentOrigin) |
|
|
|
|
{ |
|
|
|
|
// Generate transects
|
|
|
|
|