From 457d24ed296234e1fab63b823c8c5d33578f4e54 Mon Sep 17 00:00:00 2001 From: Jean-Romain Date: Tue, 24 Dec 2024 14:24:05 -0500 Subject: [PATCH] buffer --- src/LASRreaders/LASio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LASRreaders/LASio.cpp b/src/LASRreaders/LASio.cpp index bb4a1709..4043ffdc 100644 --- a/src/LASRreaders/LASio.cpp +++ b/src/LASRreaders/LASio.cpp @@ -106,7 +106,7 @@ bool LASio::open(const Chunk& chunk, std::vector filters) if (chunk.shape == ShapeType::CIRCLE) lasreadopener->set_inside_circle((chunk.xmin+chunk.xmax)/2, (chunk.ymin+chunk.ymax)/2, (chunk.xmax-chunk.xmin)/2 + chunk.buffer + EPSILON); else - lasreadopener->set_inside_rectangle(chunk.xmin - chunk.buffer, chunk.ymin - chunk.buffer, chunk.xmax + chunk.buffer + EPSILON, chunk.ymax + chunk.buffer + EPSILON); + lasreadopener->set_inside_rectangle(chunk.xmin - chunk.buffer - EPSILON, chunk.ymin - chunk.buffer - EPSILON, chunk.xmax + chunk.buffer + EPSILON, chunk.ymax + chunk.buffer + EPSILON); lasreader = lasreadopener->open(); if (!lasreader)