Skip to content

About

Clean-room C# (.NET 8) automatic quad remesher: Instant Meshes fields + QuadriFlow min-cost-flow extraction, no native dependencies.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Quadremesh

ci License: MIT

A permissively-licensed, dependency-light, cross-platform managed-C# (.NET 8) library + CLI that turns arbitrary triangle meshes into clean, field-aligned, quad-dominant → pure-quad meshes — an open, embeddable auto-retopology engine in the QuadRemesher / ZRemesher class.

It is a clean-room reimplementation of Instant Meshes (field solvers + extraction), with QuadriFlow's min-cost-flow extraction as a pure-quad upgrade. No native dependencies, no mixed-integer solver, MIT/BSD-clean.

Status: working pipeline, under active development. Triangle mesh in, quad mesh out. The faithful QuadriFlow path is validated stage by stage against a locally built reference QuadriFlow: the orientation field, position field and integer flow reproduce it bit-for-bit, and the dense benchmark meshes come out watertight with the correct genus (see docs/plans/07 and 08). See docs/plans for the roadmap and docs/design for the research it is based on.

CLI

quadremesh input.obj output.obj --target 5000      # aim for ~5,000 quads
quadremesh input.fbx output.fbx --edge 0.02        # or set a target edge length
quadremesh input.obj output.obj --pure            # pure-quad (QuadriFlow-style integer solve)

OBJ and binary FBX are supported for both input and output. The full faithful QuadriFlow pipeline (FaithfulPipeline) is available from the library; see the wiki.

Layout

src/
  Quadremesh.Core/   the library (field solvers, hierarchy, extraction) — zero third-party deps
  Quadremesh.IO/     mesh readers/writers (OBJ, binary FBX)
  Quadremesh.Cli/    `quadremesh in.obj out.obj --target 20000 ...`
tests/
  Quadremesh.Tests/  unit + golden-file tests
  corpus/            shared input meshes; external/ documents the downloaded benchmark set
tools/
  reference-oracle/  offline harness that builds Instant Meshes/QuadriFlow to generate golden outputs

Build & test

dotnet build
dotnet test

Requires the .NET 8 runtime (the SDK may be newer; global.json rolls forward).

Contributing

See CONTRIBUTING.md. Please report security issues privately (SECURITY.md).

License

MIT — see LICENSE. Algorithmic attributions are in NOTICE.

About

Clean-room C# (.NET 8) automatic quad remesher: Instant Meshes fields + QuadriFlow min-cost-flow extraction, no native dependencies.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages