Skip to content

MmgTools/MirrorMesh

MirrorMesh - 3D Mesh mirroring

MirrorMesh is an open source software to perform mesh mirroring (planar symmetry). It uses the Mmg software for mesh management.

Get and compile the MirrorMesh project

Needed tools

To get and build MirrorMesh, you will need:

  • Git: to download the code you will have to use a git manager. You can install a git manager from the link below but there are many other git clients that you can use:

    Note that if you uses Microsoft Visual Studio (Windows OS), you can simply activate the Git Module of the application.

  • CMake : MirrorMesh uses the CMake building system that can be downloaded on the following web page: https://cmake.org/download/. On Windows OS, once CMake is installed, please do not forget to mark the option:

    "Add CMake to the system PATH for all users"
    

MirrorMesh download and compilation

Unix-like OS (Linux, MacOS...)

  1. Get the repository:
      git clone https://github.com/MmgTools/MirrorMesh.git

The project sources are available under the src/ directory.

  1. By default MirrorMesh download and install automatically Mmg (as a CMake external project):
      cd MirrorMesh  
      mkdir build  
      cd build  
      cmake ..  
      make  
      make install

If the make install command fail, try to run the sudo make install command. If you don't have root access, please refers to the Installation section of the setup guide of Mmg and follow the same steps.

If you don't have internet access and/or want to use your own installation of Mmg, you can disable the automatic download of Mmg setting the DOWNLOAD_MMG CMake variable to OFF. In this case, you have to help CMake to find Mmg by specifying the source directory of Mmg in the MMG_DIR variable and the build directory of Mmg in the MMG_BUILDDIR variable.

Example:

    cd MirrorMesh  
    mkdir build  
    cd build  
    cmake -DDOWNLOAD_MMG=OFF -DMMG_DIR=~/mmg -DMMG_BUILDDIR=~/mmg/build ..  
    make  
    make install

The MirrorMesh application is available under the mirrormesh_O3 command.

Note that if you use some specific options and want to set it easily, you can use a shell script to execute the previous commands. An example is provided in the Mmg wiki here.

Documentation

MirrorMesh replicates a mesh by mirroring along each direction. The number of mirrors along each axis can be provided using the -nx <nx> -ny <ny> -nz <nz> command line arguments. Thus, the following command line apply 1 mirror along the x-axis, 2 mirrors along the y-axis and 5 along the z-axis to the input.mesh mesh and saves the result in the output.mesh mesh:

mirrormesh_O3 -nx 1 -ny 2 -nz 5 input.mesh output.mesh

About the team

MirrorMesh's current developers and maintainers are:

License and copyright

Code is under the terms of the GNU Lesser General Public License.

Copyright © Inria 2021 -

About

Mesh mirroring.

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING
LGPL-3.0
COPYING.LESSER

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published