summaryrefslogtreecommitdiff
path: root/Assets/Algorithms/Geometry/GeometryHelper.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-06-24 19:55:26 +0800
committerchai <chaifix@163.com>2021-06-24 19:55:26 +0800
commitdbcd0c269014100b7d4cc421c5ab518f275cca09 (patch)
tree6564ca8a58b6921d4782bba3feae0ea787f9e1f4 /Assets/Algorithms/Geometry/GeometryHelper.cs
parent2749e059084b99737d79aadd92521023b0f65f56 (diff)
Diffstat (limited to 'Assets/Algorithms/Geometry/GeometryHelper.cs')
-rw-r--r--Assets/Algorithms/Geometry/GeometryHelper.cs19
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)
+ {
+
+ }
+
}
}