Skip to content

DepthFill

Namespace Nfty.Model in assembly Nfty.Model.

public static class DepthFill

Fill-all: the one action that replaced the old Front / Symmetric / Raised modes. It sets every solid pixel of a picture to the same (front, back) at once.

Methods

All(Image<Rgba32>, byte, byte)

public static DepthMap All(Image<Rgba32> art, byte front, byte back);

A depth map giving every solid pixel of art the same depth.

Parameters

  • art (Image<Rgba32>) - The picture. Solid means Opacity.IsSolid().
  • front (byte) - Voxels toward the viewer, 0..255.
  • back (byte) - Voxels away from the viewer, 0..255.

Returns. A map the size of the art: (front, back) on every solid pixel, zero elsewhere. It REPLACES any stored map — fill-all touches every solid pixel, so nothing of the old one survives it — which is why this takes none.