# AutoRemesher AutoRemesher is a cross-platform automatic quad remeshing tool that converts high-polygon meshes into clean quad-based topology. It is built on top of libraries: [Geogram](https://github.com/BrunoLevy/geogram), [libigl](https://github.com/libigl), [isotropicremesher](https://github.com/huxingyi/isotropicremesher) and [others](https://github.com/huxingyi/autoremesher/blob/master/ACKNOWLEDGEMENTS.html). Buy me a coffee for staying up late coding :-) [![](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=GHALWLWXYGCU6&item_name=Support+me+coding+in+my+spare+time¤cy_code=AUD&source=url) autoremesher-1 0-screenshot ## Getting Started These instructions will get you a copy of **AutoRemesher** up and running on your local machine for development. ### Prerequisites - C++ compiler with C++14 support (GCC, Clang, or MSVC) - Qt 5.15.2 - TBB (Intel Threading Building Blocks) - CMake 3.12 or later (only needed on Windows to build TBB from source) ### Building #### Linux (Ubuntu/Debian) ```bash # Install Qt and build tools sudo apt install build-essential qt5-qmake qtbase5-dev qttools5-dev-tools libqt5svg5-dev libqt5multimedia5-dev # Install TBB and OpenGL sudo apt install libtbb-dev libgl1-mesa-dev # Clone and build git clone https://github.com/huxingyi/autoremesher.git cd autoremesher qmake make -j$(nproc) ``` > **Fedora:** `sudo dnf install gcc-c++ qt5-qtbase-devel qt5-qttools-devel tbb-devel mesa-libGL-devel` #### Windows (Visual Studio 2022) 1. Install [Visual Studio 2022](https://visualstudio.microsoft.com/) with **Desktop development with C++** workload. 2. Install [CMake](https://cmake.org/download/) (required to build TBB from source). 3. Install Qt 5.15.2 with the [online installer](https://www.qt.io/download-open-source) — select the `msvc2019_64` archive. 4. Open a **x64 Native Tools Command Prompt for VS 2022** and run: ```cmd :: Build TBB from the bundled third-party source cd thirdparty\tbb cmake -B build2 ^ -DTBB_BUILD_SHARED=ON ^ -DTBB_BUILD_STATIC=OFF ^ -DTBB_BUILD_TBBMALLOC=OFF ^ -DTBB_BUILD_TBBMALLOC_PROXY=OFF ^ -DTBB_BUILD_TESTS=OFF cmake --build build2 --config Release cd ..\.. :: Build AutoRemesher qmake -spec win32-msvc set CL=/MP nmake -f Makefile.Release ``` The release binary will be at `release\autoremesher.exe`. #### macOS ```bash # Install Xcode Command Line Tools xcode-select --install # Install dependencies via Homebrew brew install qt@5 tbb cmake # Build export PATH="/usr/local/opt/qt@5/bin:$PATH" git clone https://github.com/huxingyi/autoremesher.git cd autoremesher qmake CONFIG+=sdk_no_version_check make -j$(sysctl -n hw.logicalcpu) ``` ### Running a quick test AutoRemesher has a CLI mode for headless processing. Try it with one of the [common-3d-test-models](https://github.com/alecjacobson/common-3d-test-models): ```bash ./autoremesher \ --input armadillo.obj \ --output remeshed.obj \ --report remeshed_report.txt \ --target-quads 50000 \ --edge-scaling 1.0 \ --sharp-edge 90.0 \ --smooth-normal 0.0 \ --adaptivity 1.0 ``` ### Quick Start #### Windows Download `autoremesher--win32-x86_64.zip` from [releases](https://github.com/huxingyi/autoremesher/releases), extract it and run `autoremesher.exe`. #### macOS Download `autoremesher-.dmg` from [releases](https://github.com/huxingyi/autoremesher/releases). *For the first time, Apple will reject to run and popup something like "can't be opened because its integrity cannot be verified". Go to System Preferences > Security & Privacy > General and under "Allow apps downloaded from" click the button to allow it.* #### Linux Download `autoremesher-.AppImage` from [releases](https://github.com/huxingyi/autoremesher/releases). ``` $ chmod a+x ./autoremesher-.AppImage $ ./autoremesher-.AppImage ``` ### Links - [Check out open-source auto-retopology tool AutoRemesher](http://www.cgchannel.com/2020/08/check-out-open-source-auto-retopology-tool-autoremesher/) **cgchannel.com** - [A New Open-Source Auto-Retopology Tool](https://80.lv/articles/a-new-open-source-auto-retopology-tool/) **80.lv** - [[Non-Blender] Autoremesher auto-retopology tool released](https://www.blendernation.com/2020/08/18/non-blender-autoremesher-auto-retopology-tool-released/) **blendernation.com** - [オープンソースの新しいオートリメッシュツール Auto Remesher](https://cginterest.com/2020/08/20/%e3%82%aa%e3%83%bc%e3%83%97%e3%83%b3%e3%82%bd%e3%83%bc%e3%82%b9%e3%81%ae%e6%96%b0%e3%81%97%e3%81%84%e3%82%aa%e3%83%bc%e3%83%88%e3%83%aa%e3%83%a1%e3%83%83%e3%82%b7%e3%83%a5%e3%83%84%e3%83%bc%e3%83%ab-a/) **cginterest.com** - [AutoRemesher 1.0.0-alpha - 超高速で高品質のクワッドポリゴン生成!Dust3D開発者によるオープンソースの自動リメッシュツール!](https://3dnchu.com/archives/autoremesher-1-0-0-alpha/) **3dnchu.com** - [Open Source AutoRemesher released](https://cgpress.org/archives/open-source-remesher.html) **cgpress.org** - [「autoremesher」多角形を自動でリトポしてれる無料トポロジーツール](https://modelinghappy.com/archives/30339) **modelinghappy.com** - [Open Source Auto Remesher](https://blender-addons.org/open-source-auto-remesher/) **blender-addons.org** - [AutoRemesher | Auto-Retopology-Tool](https://www.digitalproduction.com/2020/08/05/autoremesher-auto-retopology-tool/) **digitalproduction.com** - [Autoremesher open source auto-retopology tool](https://blenderartists.org/t/autoremesher-open-source-auto-retopology-tool/1245131/126) **blenderartists.org** ## License AutoRemesher is licensed under the MIT License - see the [LICENSE](https://github.com/huxingyi/autoremesher/blob/master/LICENSE) file for details. ## Acknowledgements See the full [ACKNOWLEDGEMENTS](https://github.com/huxingyi/autoremesher/blob/master/ACKNOWLEDGEMENTS.html) for a list of libraries and resources used in this project.