Skip to content

ModelInput

Namespace Nfty.Model in assembly Nfty.Model.

public sealed record ModelInput

One picture to rise in a batch.

Constructors

ModelInput(string, Image<Rgba32>, DepthMap?, StackFaces?)

public ModelInput(string BaseName, Image<Rgba32> Art, DepthMap? Depth, StackFaces? Faces = null);

Parameters

  • BaseName (string) - The file name without extension; ModelBatch.Build() sanitizes and de-duplicates it itself, so any text is safe here.
  • Art (Image<Rgba32>) - The finished picture. Borrowed: the batch does not dispose it.
  • Depth (DepthMap?) - Its depth map, or null for paper.
  • Faces (StackFaces?) - The stack's face owners and wall seams (the atlas halves), or null for a single picture. Borrowed.

Properties

Art

public Image<Rgba32> Art { get; init; }

The finished picture. Borrowed: the batch does not dispose it.

BaseName

public string BaseName { get; init; }

The file name without extension; ModelBatch.Build() sanitizes and de-duplicates it itself, so any text is safe here.

Depth

public DepthMap? Depth { get; init; }

Its depth map, or null for paper.

Faces

public StackFaces? Faces { get; init; }

The stack's face owners and wall seams (the atlas halves), or null for a single picture. Borrowed.