Coder Social home page Coder Social logo

thibaultgroueix / libigl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from libigl/libigl

0.0 1.0 0.0 359.54 MB

Simple C++ geometry processing library.

Home Page: http://libigl.github.io/libigl/

License: Other

HTML 3.57% C++ 91.24% C 1.39% Objective-C 0.50% CMake 0.91% Python 1.80% MATLAB 0.08% Mako 0.04% Shell 0.27% Ruby 0.01% CSS 0.10% Roff 0.10%

libigl's Introduction

libigl - A simple C++ geometry processing library

EDIT BY THIBAULT

screen capture

1

in 607_screen_capture : main-double_face allows you to do an automatic screenshot, with double sided faces.

Usage :

607_screen_capture.bin myplyfile.ply

It outputs out.png in ~/tmp/ which you can use however you like.

2

in 607_screen_capture : main allows you to 360 screenshots around an object to make a video around it.

Usage :

607_screen_capture.bin myplyfile.ply #make sure color attributes are passed as normal attributes by replacing "blue" by "nx", "red" by "ny", "green" by "nz" in PLY file.

It outputs out[1-360].png in ~/tmp/ which you can use however you like.

Though I recommend using ffmpeg to make a video out of it.

It heavily not optimised because i don't use it much and I don't know libigl well enough to do better in a short time.

3

ffmpeg -framerate 20 -i %4d.ply.obj.png output.mp4

Coding guidelines for future libigl edits

  • I can directly edit the vertex and fragment shader in "main.cpp"
  • ReadPLY only loads vertex position, normals and texture coordinates. It's hard to edit to load color attributes and other type of attributes. As attributes can't be stored in .obj and .off , i pass them as normal by editing the PLY file when i need them. It's dirty, I know (but fast!).
  • I use global variables to pass attributes to callback function post_draw.

Copyright

2017 Alec Jacobson, Daniele Panozzo, Christian Schüller, Olga Diamanti, Qingnan Zhou, Sebastian Koch, Jeremie Dumas, Amir Vaxman, Nico Pietroni, Stefan Brugger, Kenshi Takayama, Wenzel Jakob, Nikolas De Giorgis, Luigi Rocca, Leonardo Sacht, Kevin Walliman, Olga Sorkine-Hornung, and others.

Please see individual files for appropriate copyright notices.

libigl's People

Contributors

alecjacobson avatar decrispell avatar fwilliams avatar gaoxifeng avatar hankstag avatar ikoruk avatar jdumas avatar jiangzhongshi avatar jmespadero avatar josefgraus avatar jpanetta avatar kenshi84 avatar klintqinami avatar leokollersacht avatar luca-nardelli avatar n-taka avatar nclement avatar nicopietroni avatar odedstein avatar olkido avatar panchagil avatar pelayogmp avatar qnzhou avatar schuellc avatar skoch9 avatar stefanbrugger avatar stefanmessmer avatar sunwaylive avatar thibaultgroueix avatar yig 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.