DepthFill¶
Namespace Nfty.Model in assembly Nfty.Model.
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)¶
A depth map giving every solid pixel of art the same depth.
Parameters
art(Image<Rgba32>) - The picture. Solid meansOpacity.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.