feat: add ApplyLeadIns/RemoveLeadIns to Part with CuttingParameters storage

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-30 13:21:09 -04:00
parent 8a712b9755
commit c064c7647a
3 changed files with 163 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ namespace OpenNest.CNC.CuttingStrategy
return ordered;
}
private ContourType DetectContourType(Shape cutout)
internal static ContourType DetectContourType(Shape cutout)
{
if (cutout.Entities.Count == 1 && cutout.Entities[0] is Circle)
return ContourType.ArcCircle;
@@ -110,7 +110,7 @@ namespace OpenNest.CNC.CuttingStrategy
return ContourType.Internal;
}
private double ComputeNormal(Vector point, Entity entity, ContourType contourType)
internal static double ComputeNormal(Vector point, Entity entity, ContourType contourType)
{
double normal;
@@ -141,7 +141,7 @@ namespace OpenNest.CNC.CuttingStrategy
return Math.Angle.NormalizeRad(normal);
}
private RotationType DetermineWinding(Shape shape)
internal static RotationType DetermineWinding(Shape shape)
{
// Use signed area: positive = CCW, negative = CW
var area = shape.Area();