using System.Collections; using System.Collections.Generic; using UnityEngine; public class DataSuture { /// 核心模块 private ModuleCore ModuleCore => ModuleCore.I; /// 简单多边形算法模块 private ModuleAlgorithm 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); } /// 缝合长度 public float length => this.SutureLength(); #region 可视化内容 /// 可视化内容 public ModulePrefab design; /// 可视化对象 public ModulePrefab baking; #endregion }