Giter Club home page Giter Club logo

botsch-kobbelt-remesher-libigl's Introduction

Libigl Botsch-Kobbelt Local Remesher

Implementation of the local remesher from "A Remeshing Approach to Multiresolution Modeling" by M. Botsch and L. Kobbelt, to work with the libigl geometry processing library. Can be used as a Command Line Tool, a C++ function, a Matlab mex function and a python function.

Installation

Clone this repo and its submodules:

git clone --recursive [email protected]:sgsellan/botsch-kobbelt-remesher-libigl.git

To build this project, do the usual CMake dance:

mkdir build
cd build
cmake ..
make -j

Setting the Path

Once you built the project, a script setpath.sh will be copied to your build folder. Run source setpath.sh to add the path to the build folder to your system PATH and PYTHONPATH environment variables.

Use

To run in command line, issue

remeshmesh [input.ext] [output.ext] [-i num_iterations] [-h target_edge_length]
[-p]

The mesh in input.obj must be closed and manifold. ext can be any of obj, mesh, off, ply and stl. -p tells the remesher to project to the original mesh.

To use within your own C++ code, simply the header files in src/ and use the function remesh_botsch as shown in remesmesh.cpp.

Python bindings are also available:

from pyremesh import remesh_botsch
v_new, f_new = remesh_botsch(v, f, target, steps)

I also provide a mex wrapper for Matlab, which can be compiled by running mex/build_mex in the Matlab console. A precompiled Mac OS X mex binary can also be found in precompiled/osx/bin.

botsch-kobbelt-remesher-libigl's People

Contributors

bathal1 avatar jsb avatar sgsellan avatar

Watchers

 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.