public List <Vector3> generateHull(List <Vector3> posList) { setDots(posList); Hull.setConvHull(dot_list); Hull.setConcaveHull(Math.Round(System.Convert.ToDecimal(concavity), 2), scaleFactor, isSquareGrid); List <Vector3> newPosList = new List <Vector3>(); for (int i = 0; i < Hull.hull_concave_edges.Count; i++) { Vector3 pos = new Vector3((float)Hull.hull_concave_edges[i].nodes[1].x, posList[0].y, (float)Hull.hull_concave_edges[i].nodes[1].y); newPosList.Add(pos); } Debug.Log("Hull.hull_concave_edges.Count : " + Hull.hull_concave_edges.Count); return(newPosList); }
public void generateHull() { Hull.setConvHull(dot_list); Hull.setConcaveHull(Math.Round(System.Convert.ToDecimal(concavity), 2), scaleFactor, isSquareGrid); }