Skip to content

An implicit surface reconstruction program using marching cubes.

Notifications You must be signed in to change notification settings

marckhoury/surfgen

Repository files navigation

surfgen

surfgen is an implicit surface reconstruction program. It uses the marching cubes algorithm to reconstruct surfaces from a dozen implicit functions for various surfaces. Some of the beautiful surfaces that surfgen can create are shown below.

ScreenShot

Interaction

surfgen implements a standard trackball interface for interaction. The left, middle, and right buttons of the mouse map to rotation, translation, and zooming respectively. The keys of the lower two rows of the keyboard (a-l and z-m) are mapped to various models that surfgen can generate. The table below details all the surfaces that surfgen can construct (also available upon startup).

Surface Key
Jack a
Wiffle Cube s
Torus d
Sphere f
Mobius Strip g
Klein Bottle h
Hyperboloid of One Sheet j
Cayley k
Bohemian Dome l
Chubs z
Quadrifolia x
Devil c
Quartic Cylinder v
Gumdrop Torus b
Barth Sextic n
Bohemian Star m

Build

surfgen uses OpenGL, GLU, and GLUT for rendering and some features from the C++11 standard. The code has been built on both Ubuntu Linux and MacOS systems using g++ and clang++ respectively. A Makefile is included that works on both platforms.

About

An implicit surface reconstruction program using marching cubes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published