Skip to content

Commit

Permalink
Get points from polygon instead of polygon editor
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Feb 25, 2024
1 parent 7e6b826 commit 44fd6b4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,9 @@ void RimPolygonFilter::updateCells()
// get polyline as vector
std::vector<cvf::Vec3d> points;

for ( auto target : m_polygonEditor->activeTargets() )
if ( m_polygonEditor && m_polygonEditor->polygon() )
{
points.push_back( target->targetPointXYZ() );
points = m_polygonEditor->polygon()->pointsInDomainCoords();
}

// We need at least three points to make a closed polygon, or just 2 for a polyline
Expand Down

0 comments on commit 44fd6b4

Please sign in to comment.