Preserving the hull of simple polygons during insert in a Region, hence skipping the compression

This commit is contained in:
Matthias Koefferlein 2025-04-18 15:12:30 +02:00
parent 16604e5a92
commit e764716bda
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ MutableRegion::insert (const db::SimplePolygon &polygon)
{
if (polygon.vertices () > 0) {
db::Polygon poly;
poly.assign_hull (polygon.begin_hull (), polygon.end_hull ());
poly.assign_hull (polygon.hull ());
do_insert (poly, 0);
}
}
@ -93,7 +93,7 @@ MutableRegion::insert (const db::SimplePolygonWithProperties &polygon)
{
if (polygon.vertices () > 0) {
db::Polygon poly;
poly.assign_hull (polygon.begin_hull (), polygon.end_hull ());
poly.assign_hull (polygon.hull ());
do_insert (poly, polygon.properties_id ());
}
}