Giter VIP home page Giter VIP logo

marching-cubes-opengl's Introduction

Marching-Cubes-OpenGL

Implementation of the Marching-Cubes Algorithm with OpenGL using the C language.

About the Code

The objective of the code is to receive a set of points, normalize their values (between 0 and 1) and generate a surface which represents these points. The level of detail of this surface is given by a value L, which corresponds to the size of the Marching Cubes. However, greatly reducing the value of L can cause holes in the mesh. For this case, the best values are between [0.02, 0.03].

As it is an academic work (For the discipline of Computer Graphics by the Federal University of Bahia), there were very strict specifications regarding the organization of the source code. Because of this, unfortunately it was not possible organize and document in a more user friendly way.

Run, Forrest! Run!

  • gcc main.c -lm -lGL -lGLU -lglut -o YourFileName
  • ./YourFileName PointCloudFile lut.txt L

marching-cubes-opengl's People

Contributors

zjoaop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

marching-cubes-opengl's Issues

One triangle is saved in the PLY file

Hello. I have compiled and run your project. What should be in a PLY file? Isn't it a rabbit mesh? After saving the file, I see one triangle there. What could be the problem? Thanks!

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.