diff options
Diffstat (limited to 'Assets/Algorithms/Geometry/GeometryHelper.cs')
-rw-r--r-- | Assets/Algorithms/Geometry/GeometryHelper.cs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Assets/Algorithms/Geometry/GeometryHelper.cs b/Assets/Algorithms/Geometry/GeometryHelper.cs index 6da1503..da74944 100644 --- a/Assets/Algorithms/Geometry/GeometryHelper.cs +++ b/Assets/Algorithms/Geometry/GeometryHelper.cs @@ -2,17 +2,18 @@ using System.Collections.Generic;
using UnityEngine;
-public class GeometryHelper : MonoBehaviour
+
+namespace AlgorithmCollection.Geometry
{
- // Start is called before the first frame update
- void Start()
+ public static class GeometryHelper
{
-
- }
- // Update is called once per frame
- void Update()
- {
-
+ // 多边形最佳剖分,将多边形划分为权重最小的三角形
+ public delegate int SubdivisionWeight(int v1, int v2, int v3);
+ public static void SubdividePolygon(int[] verticies, SubdivisionWeight weight)
+ {
+
+ }
+
}
}
|