From 52b0bb7d3b6be611a41ccc503d6ba93353618166 Mon Sep 17 00:00:00 2001 From: Benoit Maurin Date: Mon, 13 Jan 2025 17:59:31 +0100 Subject: [PATCH] Fix inscribed circle initialization --- src/algorithm/construct/MaximumInscribedCircle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithm/construct/MaximumInscribedCircle.cpp b/src/algorithm/construct/MaximumInscribedCircle.cpp index c3a4710784..89c910d3b7 100644 --- a/src/algorithm/construct/MaximumInscribedCircle.cpp +++ b/src/algorithm/construct/MaximumInscribedCircle.cpp @@ -164,8 +164,8 @@ MaximumInscribedCircle::distanceToBoundary(double x, double y) MaximumInscribedCircle::Cell MaximumInscribedCircle::createInteriorPointCell(const Geometry* geom) { - Coordinate c; std::unique_ptr p = geom->getInteriorPoint(); + Coordinate c(p->getX(), p->getY()); Cell cell(p->getX(), p->getY(), 0, distanceToBoundary(c)); return cell; }