13
0

provide PolyItem::pop_back()

This commit is contained in:
Paul Davis 2023-07-09 20:41:36 -06:00
parent e0c24f5bcf
commit de67226c90
2 changed files with 10 additions and 0 deletions

View File

@ -37,6 +37,7 @@ public:
virtual void set (Points const&);
virtual void add_point (Duple const &);
void pop_back();
Points const& get () const;
void dump (std::ostream&) const;

View File

@ -149,6 +149,15 @@ PolyItem::add_point (Duple const & d)
end_change ();
}
void
PolyItem::pop_back ()
{
begin_change ();
_points.pop_back ();
set_bbox_dirty ();
end_change ();
}
Points const&
PolyItem::get () const
{