/// <summary> /// Modifies the present volume by filling all points that fall inside of the given contours, /// using the provided fill value. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="volume">The volume that should be modified.</param> /// <param name="contours">The contours that should be used for filling.</param> /// <param name="value">The value that should be used to fill all points that fall inside of /// any of the given contours.</param> public static void Fill <T>(this Volume2D <T> volume, IEnumerable <ContourPolygon> contours, T value) => FillPolygon.FillContours(volume, contours, value);
/// <summary> /// Modifies the present volume by filling all points that fall inside of the given contours, /// using the provided fill value. Contours are filled on axial slices. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="volume">The volume that should be modified.</param> /// <param name="contours">The contours per axial slice.</param> /// <param name="value">The value that should be used to fill all points that fall inside of /// the given contours.</param> public static void Fill <T>(this Volume3D <T> volume, ContoursPerSlice contours, T value) => FillPolygon.FillContours(volume, contours, value);