index.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <h1 id="libigl-asimplecgeometryprocessinglibrary">libigl - A simple C++ geometry processing library</h1>
  2. <figure>
  3. <img src="libigl-teaser.png" alt="" />
  4. </figure>
  5. <p><a href="https://github.com/libigl/libigl/">https://github.com/libigl/libigl/</a></p>
  6. <p>libigl is a simple C++ geometry processing library. We have a wide
  7. functionality including construction of sparse discrete differential geometry
  8. operators and finite-elements matrices such as the contangent Laplacian and
  9. diagonalized mass matrix, simple facet and edge-based topology data structures,
  10. mesh-viewing utilities for OpenGL and GLSL, and many core functions for matrix
  11. manipulation which make <a href="http://eigen.tuxfamily.org">Eigen</a> feel a lot more
  12. like MATLAB.</p>
  13. <p>It is first and foremost a header library. Each header file contains a single
  14. function. Most are tailored to operate on a generic triangle mesh stored in an
  15. n-by&#8211;3 matrix of vertex positions V and an m-by&#8211;3 matrix of triangle indices F.
  16. The library may also be <a href="build/">compiled</a> into a statically linked
  17. library, for faster compile times with your projects.</p>
  18. <p>We use the <a href="http://eigen.tuxfamily.org">Eigen</a> library heavily in our code. Our
  19. group prototypes a lot in MATLAB, and we have a useful <a href="matlab-to-eigen.html">conversion
  20. table</a> from
  21. MATLAB to libigl/Eigen.</p>
  22. <h1 id="tutorial">Tutorial</h1>
  23. <p>As of version 1.0, libigl includes an introductory
  24. <a href="tutorial/tutorial.html">tutorial</a> that covers
  25. its basic functionalities.</p>
  26. <h2 id="installation">Installation</h2>
  27. <p>Libigl is a <em>header</em> library. You do <strong>not</strong> need to build anything to install.
  28. Simply add <code>igl/</code> to your include path and include relevant headers. Here is a
  29. small &#8220;Hello, World&#8221; program:</p>
  30. <pre><code class="cpp">#include &lt;igl/cotmatrix.h&gt;
  31. #include &lt;Eigen/Dense&gt;
  32. #include &lt;Eigen/Sparse&gt;
  33. #include &lt;iostream&gt;
  34. int main()
  35. {
  36. Eigen::MatrixXd V(4,2);
  37. V&lt;&lt;0,0,
  38. 1,0,
  39. 1,1,
  40. 0,1;
  41. Eigen::MatrixXi F(2,3);
  42. F&lt;&lt;0,1,2,
  43. 0,2,3;
  44. Eigen::SparseMatrix&lt;double&gt; L;
  45. igl::cotmatrix(V,F,L);
  46. std::cout&lt;&lt;&quot;Hello, mesh: &quot;&lt;&lt;std::endl&lt;&lt;L*V&lt;&lt;std::endl;
  47. return 0;
  48. }
  49. </code></pre>
  50. <p>If you save this in <code>hello.cpp</code>, then you could compile this with (assuming
  51. Eigen is installed in /opt/local/include/eigen3):</p>
  52. <pre><code class="bash">gcc -I/opt/local/include/eigen3 -I./igl/ hello.cpp -o hello
  53. </code></pre>
  54. <p>Running <code>./hello</code> would then produce</p>
  55. <pre><code>Hello, mesh:
  56. 0.5 0.5
  57. -0.5 0.5
  58. -0.5 -0.5
  59. 0.5 -0.5
  60. </code></pre>
  61. <h2 id="dependencies">Dependencies</h2>
  62. <p>Dependencies are on a per-include basis and the majority of the functions in
  63. libigl depends only on the <a href="http://eigen.tuxfamily.org">Eigen</a> library.</p>
  64. <p>For more information see our <a href="tutorial/tutorial.html">tutorial</a>.</p>
  65. <h1 id="download">Download</h1>
  66. <p>You can keep up to date by cloning a read-only copy of our GitHub
  67. <a href="https://github.com/libigl">repository</a>.</p>
  68. <h2 id="howtocontribute">How to contribute</h2>
  69. <p>If you are interested in joining development, please fork the repository and
  70. submit a <a href="https://help.github.com/articles/using-pull-requests/">pull request</a>
  71. with your changes.</p>
  72. <h2 id="license">License</h2>
  73. <p>libigl is primarily <a href="http://www.mozilla.org/MPL/2.0/">MPL2</a> licensed
  74. (<a href="http://www.mozilla.org/MPL/2.0/FAQ.html">FAQ</a>). Some files contain
  75. third-party code under other licenses. We&#8217;re currently in the processes of
  76. identifying these and marking appropriately.</p>
  77. <h2 id="attribution">Attribution</h2>
  78. <p>If you use libigl in your academic projects, please cite the papers we
  79. implement as appropriate. To cite the library in general, you could use this
  80. BibTeX entry:</p>
  81. <pre><code class="bibtex">@misc{libigl,
  82. title = {{libigl}: A simple {C++} geometry processing library},
  83. author = {Alec Jacobson and Daniele Panozzo and others},
  84. note = {http://libigl.github.io/libigl/},
  85. year = {2014},
  86. }
  87. </code></pre>
  88. <h1 id="contact">Contact</h1>
  89. <p>Libigl is a group endeavor led by <a href="http://www.cs.columbia.edu/~jacobson/">Alec
  90. Jacobson</a> and <a href="http://www.inf.ethz.ch/personal/dpanozzo/">Daniele
  91. Panozzo</a>. Please <a href="&#109;&#97;&#105;&#108;&#x74;&#111;&#x3a;&#x61;&#x6c;&#101;&#x63;&#x6a;&#x61;&#x63;&#111;&#98;&#115;&#111;&#110;&#64;&#103;&#109;&#x61;&#105;&#108;&#x2e;&#x63;&#x6f;&#x6d;&#44;&#x64;&#x61;&#110;&#105;&#101;&#x6c;&#101;&#x2e;&#x70;&#x61;&#110;&#x6f;&#122;&#x7a;&#x6f;&#64;&#x67;&#x6d;&#x61;&#x69;&#x6c;&#x2e;&#99;&#x6f;&#x6d;">&#99;&#x6f;&#x6e;&#116;&#x61;&#99;&#x74;
  92. &#117;&#115;</a> if you have
  93. questions or comments. We are happy to get feedback!</p>
  94. <p>If you&#8217;re using libigl in your projects, quickly <a href="&#x6d;&#x61;&#105;&#108;&#x74;&#x6f;&#58;&#97;&#x6c;&#101;&#99;&#106;&#x61;&#x63;&#111;&#x62;&#x73;&#x6f;&#110;&#64;&#103;&#x6d;&#x61;&#x69;&#x6c;&#46;&#99;&#x6f;&#x6d;&#x2c;&#100;&#x61;&#110;&#105;&#x65;&#108;&#x65;&#x2e;&#112;&#97;&#x6e;&#111;&#x7a;&#x7a;&#x6f;&#x40;&#103;&#109;&#x61;&#105;&#x6c;&#x2e;&#x63;&#111;&#109;">&#x64;&#x72;&#111;&#112; &#x75;&#x73; &#97;
  95. &#110;&#111;&#116;&#101;</a>. Tell us who you
  96. are and what you&#8217;re using it for. This helps us apply for funding and justify
  97. spending time maintaining this.</p>
  98. <p>If you find bugs or have problems please use our <a href="https://github.com/libigl/libigl/issues">github issue tracking
  99. page</a>.</p>
  100. <h3 id="copyright">Copyright</h3>
  101. <p>2014 Alec Jacobson, Daniele Panozzo, Olga Diamanti, Kenshi
  102. Takayama, Leo Sacht, Wenzel Jacob, Nico Pietroni, Amir Vaxman</p>
  103. <figure>
  104. <img src="tutorial/images/libigl-logo.jpg" alt="" />
  105. </figure>