Code Monkey home page Code Monkey logo

volumeremesher's Introduction

Volume remeshing

This code implements a variation of the volume meshing algorithm described in "Convex Polyhedral Meshing for Robust Solid Modeling" by Lorenzo Diazzi and Marco Attene (ACM Trans Graphics Vol 40, N. 6, Procs of SIGGRAPH Asia 2021). You may download a copy of the paper preprint here: http://arxiv.org/abs/2109.14434 The original code is available here: https://github.com/MarcoAttene/VolumeMesher

In this version, a new function is made available to embed a set of triangles within an existing tetrahedral mesh. See embed.h to start.

Usage

Clone this repository with:

git clone https://github.com/MarcoAttene/VolumeRemesher

Once done, you may build the executable as follows:

mkdir build
cd build
cmake ..

This will produce an appropriate building configuration for your system. On Windows MSVC, this will produce a mesh_generator.sln file. On Linux/MacOS, this will produce a Makefile. Use it as usual to compile mesh_generator.

When compiled, the code generates an executable called mesh_generator. Launch it with no command line parameters to have a list of supported options.

Example:

mesh_generator input_triangles.off U input_tetmesh.tet

creates a file called volume.msh representing the (subdivided) volume mesh with input triangles embedded.

The input tetrahedral mesh may be represented in either TET or MEDIT format (both ASCII).

All the other switches and operational modes available in the original https://github.com/MarcoAttene/VolumeMesher are still available here.

We tested our code on MacOS (GCC-10) and Windows (MSVC 2019). It should work on Linux-GCC and MacOS-Clang too, but we have not tested it on these configurations.

โš ๏ธ WARNING: Apparently, CLANG does not support a fully IEEE compliant floating point environment which is necessary to guarantee that indirect predicates work as expected. The only way we found to guarantee correctness on this compiler was to disable all optimizations. Please be aware of this fact should you notice a performance degradation in your experiments.

volumeremesher's People

Contributors

marcoattene avatar jcdai avatar teseoch avatar

Stargazers

ltr 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.