Skip to content

ModelVoxelSize

Namespace Nfty.Core.Publish in assembly Nfty.Core.

public static class ModelVoxelSize

The one range a model's voxel size may take, so the CLI, the Rise page and the cook dialog cannot disagree about it.

Fields

Decimals

public const int Decimals = 3;

How many decimal places a typed voxel size keeps.

Max

public const double Max = 1000;

The largest voxel size.

Min

public const double Min = 0.001;

The smallest voxel size: world units per pixel.

Methods

ProblemWith(double)

public static string? ProblemWith(double value);

Whether a voxel size is usable.

Parameters

  • value (double) - The size in world units per pixel.

Returns. Null when finite and within ModelVoxelSize.Min..ModelVoxelSize.Max; otherwise a sentence.