Get it

Get openclare

The source is on GitHub, at marcgardent/openclare.

The Blender add-on

This is the Community edition of the add-on.

One archive holds everything: the add-on and its engine, compiled. There is nothing else to install, no Python package, no program beside it, and nothing is downloaded when it runs.

  • From Blender, with its updates. In Blender 4.2 or later, online access allowed: Edit › Preferences › Get Extensions, Repositories, +, Add Remote Repository, and paste https://marcgardent.github.io/openclare/extensions/index.json. Then install openclare from Get Extensions: Blender takes the archive of its own system, and offers each new release. The page of the repository says which version it holds.
  • Or from an archive. Take the archive of your system from the releases: openclare-<version>-<platform>.zip, the platform being linux-x64, windows-x64, macos-arm64 or macos-x64, or build it yourself (below). Then Edit › Preferences › Get Extensions, the arrow at the top right, Install from Disk, and pick the archive. Blender does not update an add-on installed this way. To move to the repository, remove it first, or Blender keeps both copies.

These pages describe add-on 0.33.0, the one of the main branch: the latest release can be older.

A panel named openclare appears in the Properties editor, on the tab of the mesh (Object Data). Select a mesh, set what follows, press Remesh to Quads. The result is a new object beside the original, which is left as it is. The engine runs in the background: Blender stays free, and the panel shows a bar of its progress with a button to stop it.

What it does

  • How many quads, and where. A number of quads, or the sizes of the largest and the smallest. Show Sizes colours the object with the size its quads will have.
  • Density. Adaptive Size makes the quads smaller where the shape bends; thin parts (a finger, an ear) keep the quads that go round them. A density painted in Weight Paint says where they are smaller, and Density from Shape writes the shape's own density as a group to paint on.
  • Lines of edges. Hard edges, the edges marked sharp, and the borders between materials are kept as lines of edges.
  • Curves drawn on the model. Draw Curve and Cut Volume, in the toolbar, draw a curve on the model or the loop round a limb. A Guide curve gives a line of edges; a Sharp curve gives a line of hard edges.
  • The result. Symmetry across X, Y or Z. Hard edges marked sharp and creased, for a Subdivision Surface to keep. Shading by angle, smooth or flat. Saved presets of the settings. Remesh Again redoes the result in place, and the panel reports on the run.

The Linux build runs wherever Blender does (glibc 2.28 or later). The Windows build has been installed and run in a Blender for Windows. The macOS builds pass the tests of the C interface there but have not yet been run in a Blender; they are signed ad hoc, not notarized. Each release also has the engine as a C library with its header, openclare-capi-<version>-<platform>.tar.gz, for other programs.

What the panel offers, setting by setting, is in the README.

Building the add-on

With the Rust toolchain installed, from the root of the repository:

make addon      # dist/openclare-<version>-linux-x64.zip, to install from Blender
make install    # or straight into the extensions of the Blender on the PATH

make addon-windows builds the Windows archive from Linux (it needs the Rust target x86_64-pc-windows-gnu and MinGW-w64). make help lists every shortcut.

The command line

cargo build --release
./target/release/openclare remesh input.obj output.obj --quads 5000
./target/release/openclare remesh part.obj quads.obj --preset hard-surface --quads 3000
./target/release/openclare primitive torus torus.obj     # a shape to try it on
./target/release/openclare measure input.obj output.obj --target 5000

openclare --help lists every command and option. Presets and saved settings, sizes instead of a number of quads, guide curves, the Rust library and the C interface for other hosts are described in USAGE.md.

Further

Licence

The code is under the GNU GPL, version 3 or later. The 3D models by the author of the project (the ogre, the car) are under CC BY-SA 4.0; those by others each keep their licence, listed in CREDITS.md.