Git Product home page Git Product logo

gts's Introduction

General Information
===================

This is the GTS library. GTS stands for the GNU Triangulated
Surface Library. It includes a number of useful functions to deal with
triangulated surfaces including, but not limited to, multi-resolution
models, Delaunay and Constrained Delaunay triangulations, set operations on
surfaces (intersection, union etc ...), bounding-boxes trees for efficient
collision and intersection detection, triangle strips generation for fast
rendering.

The official web site is:
http://gts.sourceforge.net

Copying
=======

The GTS library is distributed under the terms of the Library General
Public License which is compliant with the guidelines of the Open
Source and Free Software Fundations. See the file COPYING for details.

The robust geometric predicates code (src/predicates.c) was written
and placed in the public domain by Jonathan R. Shewchuk. The original
version of the code can be found at

http://www.cs.cmu.edu/~quake/robust.html

Installation
============

GTS uses the glib library which is part of gtk (http://www.gtk.org). If you
use linux there is a good chance that this library is already on your
system, otherwise, you'll need to install it.

A WIN32 glib port is available at
http://www.gimp.org/~tml/gimp/win32/downloads.html, however it is
recommended to use GTS within the Cygwin environment under windows.

Unix users (including cygwin users):

If you checked out GTS from sourceforge.net, you will need to have the
gnu autoconf tools installed.  Generate the "configure" script with
the following commands:

aclocal
autoheader
automake -a
autoconf

After this, or if you are installing from source where the configure
script is already built:

./configure
make
make install

See the file 'INSTALL' for generic configure instructions.


Windows users:
If you have Microsoft C try:

cd src
nmake -f makefile.msc install

or use Cygwin (http://www.cygwin.com)

Using GTS
=========

From version 0.5.0 you can use the `gts-config' script in order to
obtain the compile flags and link flags necessary to use the GTS
library (à la Glib).

- To compile add `gts-config --cflags` to your compiler flags.
- To link add `gts-config --libs` to your linker flags.

When developping code using GTS you probably want to enable control
over casting operations between objects of the GTS object
hierarchy. This can be done easily by defining GTS_CHECK_CASTS either
in the CFLAGS environement variable (CFLAGS=-DGTS_CHECK_CASTS) or on
the command-line of your compiler.

This will slow down your code but will warn you when you try to
perform illegal casts between GtsObjects.

You can also to do that using the `--check' option of gts-config,
i.e. by adding `gts-config --cflags --check' to your compiler flags.

gts's People

Contributors

micbosi avatar

Watchers

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