feat: add IRapidPlanner, RapidPath, and SafeHeightRapidPlanner
This commit is contained in:
10
OpenNest.Engine/RapidPlanning/IRapidPlanner.cs
Normal file
10
OpenNest.Engine/RapidPlanning/IRapidPlanner.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using OpenNest.Geometry;
|
||||
|
||||
namespace OpenNest.Engine.RapidPlanning
|
||||
{
|
||||
public interface IRapidPlanner
|
||||
{
|
||||
RapidPath Plan(Vector from, Vector to, IReadOnlyList<Shape> cutAreas);
|
||||
}
|
||||
}
|
||||
11
OpenNest.Engine/RapidPlanning/RapidPath.cs
Normal file
11
OpenNest.Engine/RapidPlanning/RapidPath.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using OpenNest.Geometry;
|
||||
|
||||
namespace OpenNest.Engine.RapidPlanning
|
||||
{
|
||||
public readonly struct RapidPath
|
||||
{
|
||||
public bool HeadUp { get; init; }
|
||||
public List<Vector> Waypoints { get; init; }
|
||||
}
|
||||
}
|
||||
17
OpenNest.Engine/RapidPlanning/SafeHeightRapidPlanner.cs
Normal file
17
OpenNest.Engine/RapidPlanning/SafeHeightRapidPlanner.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
using OpenNest.Geometry;
|
||||
|
||||
namespace OpenNest.Engine.RapidPlanning
|
||||
{
|
||||
public class SafeHeightRapidPlanner : IRapidPlanner
|
||||
{
|
||||
public RapidPath Plan(Vector from, Vector to, IReadOnlyList<Shape> cutAreas)
|
||||
{
|
||||
return new RapidPath
|
||||
{
|
||||
HeadUp = true,
|
||||
Waypoints = new List<Vector>()
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user