Files
MuHua-Core/Assets/ModuleData/DataSuture/DataSuture.cs
T
MuHua-123 84243e75a8 s
2024-11-25 18:32:05 +08:00

35 lines
1.0 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DataSuture {
/// <summary> 核心模块 </summary>
private ModuleCore ModuleCore => ModuleCore.I;
/// <summary> 简单多边形算法模块 </summary>
private ModuleAlgorithm<DataSutureSide> AlgorithmSutureSide => ModuleCore.AlgorithmSutureSide;
public readonly DataSutureSide a;
public readonly DataSutureSide b;
public DataSuture(DataSide aSide, DataSide bSide) {
a = new DataSutureSide(aSide, this);
b = new DataSutureSide(bSide, this);
Update();
}
public void Update() {
AlgorithmSutureSide.Compute(a);
AlgorithmSutureSide.Compute(b);
}
/// <summary> 缝合长度 </summary>
public float length => this.SutureLength();
#region
/// <summary> 可视化内容 </summary>
public ModulePrefab<DataSuture> design;
/// <summary> 可视化对象 </summary>
public ModulePrefab<DataSuture> baking;
#endregion
}