Git Product home page Git Product logo

delaunay-mesh-generator's Introduction

DMG

Implementation of a 2D simplicial mesh generator using the constrained Delaunay algorithm. DMG takes a 2D boundary mesh as input, and outputs a 2D simplicial volume mesh.

Installation, compilation and execution

You can get the sources from here by typing in your terminal :

git clone https://github.com/gabriel-suau/delaunay-mesh-generator.git DMG

DMG uses CMake to generate a Makefile based on the user's configuration. To build the dmg executable, execute the following commands in your terminal (assuming you are in the project's top directory) :

mkdir build
cd build
cmake ..
make

This will produce an executable called dmg inside a bin directory located in the project's top directory. To execute the program, you can type :

/path/to/dmg input_boundary.mesh output_mesh.mesh

Inputs and outputs

For the moment, DMG can only read and write meshes in the ASCII Medit format. More formats may (or may not) be added in the future.

Features

Here is a small checklist of the implemented features and the features that still need to be implemented :

  • Read a discretized boundary of a 2D domain from a Medit formatted file,
  • Create a rectangular bounding box divided in 2 triangles,
  • Insert the boundary points using the Bowyer-Watson algorithm,
  • Enforce the boundary edges,
  • Mark the subdomains and delete the bounding box,
  • Refine the mesh by inserting volume points in order to achieve a desired edge length.
  • Optimizations (edge swaps, collapses and node relocation)

Tests

You can find some examples of input boundary meshes in the meshes/input directory. To launch the tests, enable the BUILD_TESTING option when configuring with Cmake, build DMG with make, and type

make test

or

ctest

The output meshes and solution files are written in the meshes/output directory.

Documentation

A Doxygen documentation can be built by enabling the DMG_DOC option when configuring the project (no, that is a lie, the documentation is not available yet).

Credits

All credits go to Gabriel Suau and Lucas Trautmann.

License

This project is distributed under the GNU-GPLv3 license. A copy of the whole license is included in the repository.

delaunay-mesh-generator's People

Contributors

gabriel-suau avatar lucas3085 avatar

Stargazers

 avatar

Watchers

 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.