Skip to content

Commit

Permalink
Fix inscribed circle initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
unjambonakap authored and pramsey committed Jan 13, 2025
1 parent 010e3f9 commit 52b0bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithm/construct/MaximumInscribedCircle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ MaximumInscribedCircle::distanceToBoundary(double x, double y)
MaximumInscribedCircle::Cell
MaximumInscribedCircle::createInteriorPointCell(const Geometry* geom)
{
Coordinate c;
std::unique_ptr<Point> p = geom->getInteriorPoint();
Coordinate c(p->getX(), p->getY());
Cell cell(p->getX(), p->getY(), 0, distanceToBoundary(c));
return cell;
}
Expand Down

0 comments on commit 52b0bb7

Please sign in to comment.