Giter VIP home page Giter VIP logo

mc3d's Introduction

MCvsBC

MC3D – An algorithm for Structured Volume Decomposition

MC3D is an implementation of The 3D Motorcycle Complex for Structured Volume Decomposition [Brückler et al. 2021] (Eurographics 2022) distributed under GPLv3.

If you make use of MC3D in your scientific work, please cite our paper. For your convenience, you can use the following bibtex snippet:

@article{DBLP:journals/corr/abs-2112-05793,
    author     = {Hendrik Br{\"{u}}ckler and
                 Ojaswi Gupta and
                 Manish Mandad and
                 Marcel Campen},
    title      = {The 3D Motorcycle Complex for Structured Volume Decomposition},
    journal    = {CoRR},
    volume     = {abs/2112.05793},
    year       = {2021},
    url        = {https://arxiv.org/abs/2112.05793},
    eprinttype = {arXiv},
    eprint     = {2112.05793},
}

What is the 3D Motorcycle Complex?

The 3D Motorcycle Complex partitions a tetrahedral mesh, equipped with a suitable seamless map, into blocks that are axis-aligned rectangular cuboids under the parametrization. The resulting partition is non-conforming (i.e. one where "T"-junctions exist) and therefore can be made much coarser than similar conforming partitions like the so called base complex (BC).

The construction algorithm is demonstrated in the following video:

MC3D-Demo.mp4

Dependencies

  • GMP (NOT included, must be installed on your system)
  • TrulySeamless3D (Included as submodule, together with subdependency libHexEx)
  • OpenVolumeMesh (Included as submodule. A PATCHED version is required to fully support selfadjacent blocks! If you use CMake to build, it will automatically apply the patch in extern/patches/, otherwise you have to apply the patch yourself.)
  • glog (Included as submodule)
  • googletest (Included as submodule)
  • CLI11 (Included as submodule)

Building

In root directory

mkdir build
cd build
cmake [-DMC3D_BUILD_CLI=Off] [-DMC3D_BUILD_TESTS=Off] [-DMC3D_ENABLE_LOGGING=Off] ..
make

Usage

An example command-line application is included that reads a tetrahedral mesh including a seamless parametrization from a file in .hexex-format, as used and documented in libHexEx. It outputs a file in the same format, containing a refined version of the input mesh, followed by the number and the list of wall triangles (three vertex indices, and a double indicating the wall triangle's distance from the brush fire's origin per line) at the end of the file.

After building the CLI app can be found in build/Build/bin/cli . For full information on its usage, execute

mc3d_cli --help

Example input can be found in folder tests/resources.

API

For details on the API of the library, check the headers in include, they are thoroughly documented. Apart from that, cli/main.cpp demonstrates usage of the entire MC3D-Pipeline for both simple and advanced usage.

mc3d's People

Contributors

hendrikbrueckler avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.