public static class ModelRetopologyRetopology and unwrapping over a model file's meshes, for the importer and the CLI alike.
Remarks
docs/plan/41 § D16 and docs/plan/42 § D13 name four surfaces between them and three of them run exactly this. The importer, vixen remesh and vixen unwrap differ in where the mesh came from and where it goes, and in nothing else — so the decision of what to do to a mesh lives here once rather than being made the same way three times and then drifting.
⚠ A refusal comes back as the mesh that went in, with the reason reported. The remesher refuses rather than throwing — an empty result with the stage named in its warnings, which is docs/plan/41's seventh exit criterion — and an import that turned that into an empty mesh would delete somebody's asset over a shape the layout could not partition.
Fields and properties (1)
public const int DefaultGuideSamplesHow many points a guide curve is sampled at by default.
Methods (2)
public static ModelRetopology.MeshResult Run(MeshData mesh, ModelImportSettings settings, IReadOnlyList<RemeshGuide>? guides = null)Retopologises and unwraps one mesh, as the settings ask.
public static RemeshGuide ToGuide(Spline spline, float strength = 1, int samples = 128)A spline as a guide curve, sampled at a constant speed along its length.
Used by (3)
- GeometryRunnerVixen.Cli
- ModelImporterVixen.Editor.Assets
- ModelRetopologyTestsVixen.Editor.Assets.Tests