Cleanup obsolete code

This commit is contained in:
Magne Sjaastad
2024-02-12 09:27:02 +01:00
parent 5fdf30d124
commit 16896212d4
7 changed files with 21 additions and 47 deletions

View File

@@ -867,7 +867,7 @@ void RimPolygonFilter::updateCells()
std::vector<cvf::Vec3d> points;
for ( auto& target : m_targets )
{
if ( target->isEnabled() ) points.push_back( target->targetPointXYZ() );
points.push_back( target->targetPointXYZ() );
}
// We need at least three points to make a closed polygon, or just 2 for a polyline
@@ -898,7 +898,7 @@ cvf::ref<RigPolyLinesData> RimPolygonFilter::polyLinesData() const
std::vector<cvf::Vec3d> line;
for ( const RimPolylineTarget* target : m_targets )
{
if ( target->isEnabled() ) line.push_back( target->targetPointXYZ() );
line.push_back( target->targetPointXYZ() );
}
pld->setPolyLine( line );