/// <summary> /// Create triangles of hose mesh. /// </summary> /// <param name="isSeal">Is seal at both ends of hose?</param> /// <returns>Triangles array.</returns> protected int[] CreateTriangles(bool isSeal = false) { var triangles = MeshUtility.CreateTrianglesBasePrism(polygon, segmentCount, 0); return(triangles.ToArray()); }