Git Product home page Git Product logo

triangle's Introduction

Triangle

From http://www.cs.cmu.edu/~quake/triangle.html:

Triangle generates exact Delaunay triangulations, constrained Delaunay triangulations, conforming Delaunay triangulations, Voronoi diagrams, and high-quality triangular meshes. The latter can be generated with no small or large angles, and are thus suitable for finite element analysis.

The original Triangle code is intended to be compiled as a standalone application. Though it is possible to compile the code as a library by using the TRILIBRARY symbol, there are a couple of problems with the approach (for example printing error messages to console and the use of exit(1)).

The main goal of this project is to turn Triangle into a re-usable library and the introduction of a simplified C API.

Contents

The Triangle repository contains the following directory structure:

src/Triangle                 Original Triangle and aCute code and new Triangle C API
src/examples/triangle-cli    Command-line interface
src/examples/triangle-test   Simple test program

The static library code is based on the following sources:

If you don't want to use the aCute extension, add NO_ACUTE to preprocessor definitions.

A brief porting guide for the new API is available in the wiki.

Changes

Changes to Triangle:

  • Remove non-ANSI function declarations (ANSI_DECLARATORS symbol no longer used)
  • Remove all non-library code (TRILIBRARY symbol no longer used)
  • Remove main triangulate function (NO_TIMER symbol no longer used)
  • Move structure definitions to triangle.h header
  • Move configuration (#define constants) to triangle_config.h header
  • Create triangle_internal.h header containing function prototypes
  • Move robust predicates to separate source file
  • Move file I/O routines to separate source file
  • Remove most exit(1) calls and return error codes instead
  • Remove unused members from mesh and behavior structs
  • Add experimental support for x64 compilation
  • Include aCute for quality mesh generation

Changes to aCute:

  • Introduction of memory pool
  • Cleanup and minor fixes

Please refer to the commit history if you need a complete changelog.

License

Please note that although both Triangle and aCute are freely available to researchers, they may not be sold or included in commercial products without a license. Make sure to take a look at the original README included in the Triangle source dir.

triangle's People

Contributors

wo80 avatar jzarl avatar h00shi avatar

Watchers

James Cloos 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.