Code Monkey home page Code Monkey logo

nested_cages's Introduction

Nested Cages

This C++ project implements:

[Nested Cages] (http://www.cs.columbia.edu/cg/nested-cages/)
ACM Transactions on Graphics, vol. 34, no. 6 (SIGGRAPH Asia 2015).
Leonardo Sacht, Etienne Vouga and Alec Jacobson

Get started with:

git clone --recursive https://github.com/alecjacobson/nested_cages.git

Bunny teaser from "Nested Cages"

Compilation

This code has been tested on Linux and Mac OS X. In theory this should also work on Windows.

To compile,

  1. Install CGAL. This project requires at least version 4.7 of CGAL (newer versions might work also); note that the CGAL Debian package may not be sufficiently new. Then
  2. Issue:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release  ..
make

This will build all remaining dependencies and the nested_cages executable.

Dependencies

Except CGAL, all dependencies are included, either explicitly or as git submodules. If you clone this repo using git clone --recursive then the dependency layout should be:

nested_cages/
  collisiondetection/
  eltopo/
  eigen/
  libigl/
    external/
      tetgen/
  meshfix/
    JMeshExt-1.0alpha_src/
      JMeshLib-1.2/
      OpenNL3.2.1/
        SuperLU/

Example usages

Help information

./nested_cages

Obtain 2 volume minimizing nested cages for ../gargo.off: one regular with 1000 faces and the other regular with 500 faces. Output resulting cages to ../test_1.off and ../test_2.off

./nested_cages ../gargo.off 2 1000r 500r None Volume ../test

The same as above, but outputs adaptive decimations (instead of regular)

./nested_cages ../gargo.off 2 1000 500 None Volume ../test

Obtain 2 nested cages for ../gargo.off that minimize surface ARAP energy, using as input decimations ../gargo_1000.off and gargo_500.off

./nested_cages ../gargo.off 2 ../gargo_1000.off ../gargo_500.off SurfARAP None ../test

Contact

If you have any comments or questions, please contact Leonardo Sacht by e-mail: [email protected]

nested_cages's People

Contributors

alecjacobson avatar evouga avatar jerryczy avatar leokollersacht avatar qnzhou 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.