/// <summary> /// Create triangles of hose side mesh. /// </summary> /// <returns></returns> protected int[] CreateSideTriangles() { var polygonVertices = polygon + 1; var leftCenter = polygonVertices * segmentCount; var triangles = MeshUtility.CreateTrianglesBasePolygon(polygon, leftCenter, leftCenter + 1, false); var rightCenter = leftCenter + polygonVertices + 1; triangles.AddRange(MeshUtility.CreateTrianglesBasePolygon(polygon, rightCenter, rightCenter + 1)); return(triangles.ToArray()); }