Code/HumanoidRetargeter/Core/SolverKind.cs

This file defines the SolverKind enumeration used by the HumanoidRetargeter package to identify different retargeting algorithms. It specifies options for geometric, deep learning, and planar retargeting.

#nullable enable annotations

using System;
using System.Collections.Generic;
using HumanoidRetargeter.Core.Cleanup;
using HumanoidRetargeter.Core.Formats;
using HumanoidRetargeter.Core.Mapping;
using HumanoidRetargeter.Core.Solve;
using HumanoidRetargeter.Core.Target;

namespace HumanoidRetargeter.Core;

/// <summary>Which solver retargets a request's clips (design §10).</summary>
public enum SolverKind
{
    /// <summary>The deterministic <see cref="Solve.GeometricSolver"/> (default; better
    /// wherever a role mapping exists).</summary>
    Geometric,

    /// <summary>The experimental skeleton-agnostic deep-learning solver
    /// (<see cref="Dl.DlSolver"/>, SAME pretrained checkpoint) — the no-profile fallback.
    /// Requires <see cref="RetargetTargetSpec.DlWeights"/>; ignores per-role mapping
    /// (only hips/alignment heuristics consult it) and leaves fingers at rest.</summary>
    DeepLearning,

    /// <summary>The 2D <see cref="Solve.PlanarSolver"/>: retargets through an orthographic
    /// camera (<see cref="Solve.SolveOptions.View"/>) onto a plane of the target armature,
    /// which may be drawn flat. Skips the foot-plant and arm IK cleanups, which work in 3D.</summary>
    Planar,
}