From 01a976f53f5bc74dc029f2f288ce5d6078b5d473 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Fri, 30 Jun 2023 08:56:02 -0700 Subject: [PATCH] Use DD algorithm in mitred buffer calculation: relatively low performance impact, and more stable output. References GH-933. --- src/operation/buffer/OffsetSegmentGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/operation/buffer/OffsetSegmentGenerator.cpp b/src/operation/buffer/OffsetSegmentGenerator.cpp index 32ab310f0d..729f6c7ac0 100644 --- a/src/operation/buffer/OffsetSegmentGenerator.cpp +++ b/src/operation/buffer/OffsetSegmentGenerator.cpp @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include #ifndef GEOS_DEBUG @@ -483,7 +483,7 @@ OffsetSegmentGenerator::addMitreJoin(const geom::Coordinate& cornerPt, * However, this situation should have been eliminated earlier by the check * for whether the offset segment endpoints are almost coincident */ - CoordinateXY intPt = algorithm::Intersection::intersection(p_offset0.p0, p_offset0.p1, p_offset1.p0, p_offset1.p1); + CoordinateXY intPt = algorithm::CGAlgorithmsDD::intersection(p_offset0.p0, p_offset0.p1, p_offset1.p0, p_offset1.p1); if (!intPt.isNull() && intPt.distance(cornerPt) <= mitreLimitDistance) { segList.addPt(Coordinate(intPt));