public static Vector2D[][] Subdivide(Vector2D[][] polygons, Scalar maxLength, bool loop)
 {
     Vector2D[][] result = new Vector2D[polygons.Length][];
     for (int index = 0; index < polygons.Length; ++index)
     {
         result[index] = PolygonShape.Subdivide(polygons[index], maxLength, loop);
     }
     return(result);
 }