Git Product home page Git Product logo

geodesic-computation's Introduction

Description

This program implements Fast Marching algorithm and Heat algorithm to compute geodesic distance on triangle mesh model. Geodesic variation on surface is represented by isolines and various colors. Numeric value of distance is output to standard output.

External Dependencies

  • Operating System: Linux, Mac OS, Windows
  • Libraries: GLEW, Eigen, GLFW3, OpenGP
  • Input file format: .obj, all faces should be triangle and set as first parameter of application.

Build

cd ${PROJECT_SOURCE_DIR}

mkdir build && cd build

cmake ..

make

$./demo ${model.obj}

Rough UI

  • Mouse

    • Left drag: Rotate model
    • Right press: Select start and end points to compute geodesic distance
    • Middle scroll: Scale model
  • Key

    • 1: Apply Fast Marching Method
    • 2: Apply Head Method with mean boundary condition
    • 3: Apply Heat Method with Neumann boundary condition
    • 4: Apply Heat Method with Dirichlet boundary condition
    • F: Set Heat Time Factor (to standard input)
    • I: Display geodesic ioslines
    • P: Show path between start point and end point, namely, the minimum path between the two points on surface.
    • R: Clear color, ioslines, selected points. Set to initial condition for next computation.
  • Standard Output

    • Display the geodesic distance between two selected points.

Result

alt tag

alt tag

Acknowledgement

This program is build on OpenGP, acknowledge to Dr. Andrea Tagliasacchi

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.