From a94f68062ec03adf389c58ce2202e8a327e928a9 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..3db9cd052c 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; }