style: fix var rule violation in PolygonHelper
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -27,17 +27,9 @@ namespace OpenNest.Engine.BestFit
|
|||||||
var perimeterBb = perimeter.BoundingBox;
|
var perimeterBb = perimeter.BoundingBox;
|
||||||
|
|
||||||
// Inflate by half-spacing if spacing is non-zero.
|
// Inflate by half-spacing if spacing is non-zero.
|
||||||
Shape inflated;
|
var inflated = halfSpacing > 0
|
||||||
|
? (perimeter.OffsetEntity(halfSpacing, OffsetSide.Left) as Shape ?? perimeter)
|
||||||
if (halfSpacing > 0)
|
: perimeter;
|
||||||
{
|
|
||||||
var offsetEntity = perimeter.OffsetEntity(halfSpacing, OffsetSide.Left);
|
|
||||||
inflated = offsetEntity as Shape ?? perimeter;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
inflated = perimeter;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert to polygon with circumscribed arcs for tight nesting.
|
// Convert to polygon with circumscribed arcs for tight nesting.
|
||||||
var polygon = inflated.ToPolygonWithTolerance(0.01, circumscribe: true);
|
var polygon = inflated.ToPolygonWithTolerance(0.01, circumscribe: true);
|
||||||
|
|||||||
Reference in New Issue
Block a user