Skip to content

SetModels

Namespace Nfty.Core.Output in assembly Nfty.Core.

public sealed record SetModels

set.json's record of the 3D models a cook made. Additive and optional, so Schema.Current is not bumped; absent means the Set was cooked without models.

Constructors

SetModels(string, string, float, IReadOnlyList<int>?)

public SetModels(string Format, string Pivot, float VoxelSize, IReadOnlyList<int>? Skipped = null);

Parameters

  • Format (string) - The model format token, as the CLI spells it (glb, ...).
  • Pivot (string) - The pivot token, as the CLI spells it (bottom-center, ...).
  • VoxelSize (float) - World units per voxel.
  • Skipped (IReadOnlyList<int>?) - Set numbers with no model because nothing in them is fully opaque, ascending. Null when none.

Properties

Format

public string Format { get; init; }

The model format token, as the CLI spells it (glb, ...).

Pivot

public string Pivot { get; init; }

The pivot token, as the CLI spells it (bottom-center, ...).

Skipped

public IReadOnlyList<int>? Skipped { get; init; }

Set numbers with no model because nothing in them is fully opaque, ascending. Null when none.

VoxelSize

public float VoxelSize { get; init; }

World units per voxel.