fix: clone polyhedral region last triangle too if present (#2807)

This commit is contained in:
Jordan 2024-07-05 15:05:55 +02:00 committed by GitHub
parent b511e878a4
commit 8f353e8f0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,7 +77,7 @@ public class PolyhedralRegion extends AbstractRegion {
minimumPoint = region.minimumPoint;
maximumPoint = region.maximumPoint;
centerAccum = region.centerAccum;
lastTriangle = region.lastTriangle;
lastTriangle = lastTriangle == null ? null : region.lastTriangle.clone();
}
/**