GitXplorerGitXplorer
b

CompGeom

public
26 stars
15 forks
1 issues

Commits

List of commits on branch master.
Unverified
630e908b2adbb8bba434a81cd031ac4b6ca9ec89

Update README.markdown

bbkiers committed 12 years ago
Unverified
0d6adb40bef132bf8078653193f17bdc7075c577

Update README.markdown

bbkiers committed 12 years ago
Unverified
4e1332c794e8e892210ac9e739d9a9bb2041c58c

Update README.markdown

bbkiers committed 12 years ago
Unverified
836d88df3cf302adfbae543747be992eb007e7a3

Update README.markdown

bbkiers committed 12 years ago
Unverified
bf24d76d5f0a320264b6e4d94e7bd1dd51958579

Created MD from README.

bbkiers committed 12 years ago
Unverified
cedbbaf718fa45565c2fb5072832905ce19eba78

Created MD from README.

bbkiers committed 12 years ago

README

The README file for this repository.

CompGeom

A computational geometry library using arbitrary-precision arithmetic where possible, written in Java.

How to build CompGeom

  • if you have Ant installed, it's as easy as ant compile to compile all source files in the src/ directory. Or ant jar to compile all source files except the ones in the src/test/ directory and pack all compiled classes inside a JAR file.
  • if Ant is not installed, I recommend importing the project in an IDE like Eclipse, NetBeans or IntelliJ IDEA and let the IDE compile the files, or create a JAR file of the compiled classes.

System Requirements

  • JDK/JRE 1.6 or higher
  • Ant (optional)

Usage

  • see the src/main/compgeom/demos/Examples.java class for some examples how to use the various algorithms
  • also see the API docs in the directory doc/api/
  • when executing the CompGeom JAR file (java -jar CompGeom-x.y.z.jar), the DemosLauncher class is executed which prompts a graphical dialogue window that lets you choose a demo to run

Supported

  • rational used for exact calculations
  • geometric primitives (point, line segment, line, polygon, rectangle)
  • Graham scan (convex hulls)
  • rotating calipers to find the minimum bounding box of a convex hull
  • closest pair of points
  • Shamos-Hoey algorithm
  • Bentley-Ottmann

Working on...

  • Voronoi diagram
  • Delaunay triangulation
  • polygon triangulation