Commit fb10d04d authored by Thomas Gubler's avatar Thomas Gubler Committed by Thomas Gubler

[Survey transects generation] introduce decompose function (dummy for now)

parent 78155168
......@@ -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)
void SurveyComplexItem::_PolygonDecomposeConvex(const QPolygonF& polygon, QList<QPolygonF>& polygons)
polygons << polygon;
void SurveyComplexItem::_rebuildTranscetsFromPolygon(bool refly, const QPolygonF& polygon, const QGeoCoordinate& tangentOrigin)
// Generate transects
......@@ -113,6 +113,7 @@ private:
void _rebuildTransectsPhase1Worker(bool refly);
/// Adds to the _transects array from one polygon
void _rebuildTranscetsFromPolygon(bool refly, const QPolygonF& polygon, const QGeoCoordinate& tangentOrigin);
void _PolygonDecomposeConvex(const QPolygonF& polygon, QList<QPolygonF>& polygons);
QMap<QString, FactMetaData*> _metaDataMap;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment