Git Product home page Git Product logo

rcm_on_meshes's Introduction

Computing the Riemannian Center of Mass on Meshes

This repository contains the implementation of the algorithm described in "Computing the Riemannian Center of Mass on Meshes", C. Mancinelli and E. Puppo. The code consists of one GUI (RCM_GUI) supporting all the algorithms for curve tracing described in the paper.

Compilation

You can compile the project using the standard CMake routine

mkdir build
cd build
cmake ../
make

For mac users, there is also the possibility of building the Xcode project by compiling a python script. Namely

python3 scripts/build.py xcode

This will generate the Xcode project "RCM_on_meshes" in the repository build/xcode.

Dependencies

Mac users only need to have C++ 17 or later installed. Linux users may have to install some additional packages, as

libxrandr-dev
libxinerama-dev
libxcursor-dev
libxi-dev.

Similarly, Windows users may need to install some OS-related packages, but there are no dependencies that prevent the use of the code on such operating system.

Run

Once the projects are built, you can run the app from within the project repository by issuing

./bin/RCM_GUI <path_to_a_model>

Using the GUI

                             ---Basics---

Rotate: SHIFT + dragging. Panning: ALT + dragging.
---Control Points Selection/Editing--- Control points can be picked with left click and moved on the mesh by dragging them with right click

                            ---Method for geodesic distances---

The method used to compute geodesic distances can be selected with the combobox "Method". The available choices are the one analyzed in the paper, i.e VTP and a graph based geodesic solver.

                            ---Curve Tracing---

Once the control points are picked, you can choose which curve you want to trace: rational Bézier, rational B-spline or Bézier Interpolants (see paper). By default, all the weights are set to 1, but you can edit them in the section "Parameters": choose the weight you want to edit, and then use the slider to set its value. The curve will be udpated in real time.

If you choose just 1 control point, you can trace a circle made of Rational Bézier segment.

rcm_on_meshes's People

Contributors

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