GithubHelp home page GithubHelp logo

jackzhousz / biharmonicrepair Goto Github PK

View Code? Open in Web Editor NEW

This project forked from achicac/biharmonicrepair

0.0 0.0 0.0 1.56 MB

Code implementing a model repair algorithm using biharmonic fields.

C++ 98.71% C 0.83% CMake 0.46%

biharmonicrepair's Introduction

Mesh Repair --- README

This repository holds the source code (in C++) for the repair isosurface construction introduced in 1. We also include some example meshes (with defects) to test it.

INSTALL

To compile and link the source code you will need cmake, glm and eigen. The CMakeLists is very straightforward, and requires that you set environment variables pointing to the directories containing the headers of glm and eigen. For example

export EIGEN3_INCLUDE_DIR=/usr/include/eigen3
export GLM_INCLUDE_DIR=/usr/include

Then in the usual way, do, if MeshRepair is the directory into which you've cloned this repository,

cd MeshRepair
mkdir build
cd build
cmake ..
make

to build the binary.

You can then run it as

./MeshRepair <inFile.ply> <outFile.ply> [--border] [--numVoxels <N>]

where --border indicates the mesh is not a complete closed object (aside from the holes), and --numVoxels indicates the size of the voxelization used, which should be chosen so that the voxels are of the same order of magnitude as the edges of the triangles in the mesh. if no voxelization size is selected, the value defaults to 128.

Example files

we provide four sample holes from the Portalada 2, as test data, in files test1.ply, test2.ply, test3.ply and test4.ply. Recommended parameters for our test examples are

./MeshRepair test1.ply test1-out.ply --border --numVoxels 64 
./MeshRepair test2.ply test2-out.ply --border
./MeshRepair test3.ply test3-out.ply --border
./MeshRepair test4.ply test4-out.ply --border

References:

1: O. Argudo, P. Brunet, A. Chica and À. Vinacua: "Biharmonic fields and mesh completion", Graphical Models (2015), http://dx.doi.org/10.1016/j.gmod.2015.06.010

2: M.Callieri, A. Chica, M. Dellepiane, I. Besora, M. Corsini, J. Moyés, G. Ranzuglia, R. Scopigno and P. Brunet: "Multiscale acquisitionand presentation of very large artifacts: the case of portalada", ACM J. Comut. Cult. Herit. 3(4) (2011) 14:1--14:20

biharmonicrepair's People

Contributors

achicac avatar osukarusan 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.