Commit Graph
148 Commits
Author SHA1 Message Date
alecjacobson 5b7b50c026 cmake bugs 2020-12-28 13:30:58 -05:00
Alec Jacobson ad54f2dfe2 int->Index; depreacted pinv; trivial unit test 2020-12-21 19:53:56 -05:00
Alec Jacobson 723eb8d74d fix readMESH issues; add test (#1679) 2020-12-19 11:09:02 -08:00
Alec Jacobson b35d97472d fix mosek to work with 9.2; fix mosek dynamic link via cmake 2020-12-13 13:29:22 -05:00
Vladimir S. FONOV e6482a8a42 Fixed a bug in writePLY, when face properties were doubled and edge properties were dropped (#1673) 2020-12-13 10:02:31 -08:00
Alec JacobsonandJérémie Dumas 59b517a4a4 bump embree version; bump sse2 to avx2 (#1648)
* bump embree version; bump sse2 to avx2

* Use default ISA instead.

* better comments

* non degenerate tests

Co-authored-by: Jérémie Dumas <jeremie.dumas@ens-lyon.org>
2020-11-29 09:40:10 -08:00
Thomas Davies 249f37af52 Merge remote-tracking branch 'upstream/master' into master 2020-10-18 11:19:12 -04:00
Thomas Davies 63b3669a87 test update... 2020-10-18 10:56:56 -04:00
Jérémie Dumas 062e3823c3 Make file encoding option an enum. (#1619) 2020-10-04 00:18:25 -07:00
8c95d1044e Added improved .msh reader/writer + tests + example (#1578)
* Added improved .msh reader/writer + tests + example,
with fixes proposed by @qnzhou
put append_mat_to_vec into igl::internal

* Update tutorial number.

* Changed tutorial code to use example from https://github.com/libigl/libigl-tutorial-data/pull/1 and flat shading

* Remove commented code.

* Rename tutorial number + update tutorial data.

Co-authored-by: Jérémie Dumas <jdumas@users.noreply.github.com>
Co-authored-by: Jérémie Dumas <jeremie.dumas@ens-lyon.org>
2020-09-27 10:40:29 -07:00
Oded Stein 8ea0b8c6dc Added vector Dirichlet and curved Hessian functionality (#1560)
* Added vector Dirichlet and curved Hessian functionality, as well as tutorials.

* Applied jdumas changes

* added github actions for this branch

* more jdumas changes

* Changed int to appropriate scalar

* moved around Int definition

* forgot braces somewhere

* forgot braces

* Applied changes suggested by jdumas

* forgot braces

* remove custom github workflow
2020-09-26 20:06:26 -07:00
Thomas Davies ec24dccc29 add test case 2020-09-25 23:34:24 -04:00
Alec Jacobson 775f2354fa blkdiag function 2020-09-18 14:21:20 -04:00
Alec Jacobson 10d2f75572 merge 2020-09-16 22:16:51 -04:00
Michael TaoandJérémie Dumas 21acee15fe making knn and octree work on more types than double, allowing knn to do nearest neighbor searches between two different point clouds (#1313)
removing a capture issue with gcc 4.8.4 in knn

Co-authored-by: Jérémie Dumas <jeremie.dumas@ens-lyon.org>
2020-09-08 07:29:12 -07:00
Alec Jacobson 43da16bbd0 tighter test 2020-08-23 17:35:17 -04:00
Alec Jacobson 1de2627280 tests 2020-08-23 17:32:21 -04:00
Zhongshi 07e2b01a3c move scaf to triangle folder 2020-08-17 21:16:16 -04:00
Alec Jacobson 41454f823d fix decimate bug 2020-08-15 19:49:24 -04:00
Vladimir S. FONOVandJérémie Dumas abd9f0f365 Fixed writing PLY file, when coordinates are stored as floats (#1581)
* Fixed writing PLY file, when coordinates are stored as floats

* Fix compilation.

Co-authored-by: Jérémie Dumas <jeremie.dumas@ens-lyon.org>
2020-08-09 15:55:28 -07:00
Patrick SchmidtandPatrick Schmidt 015ac35cd1 SCAF: Expose linear system to be solved by user code (#1553)
* Add const qualifiers

* Add scaf_system() and expose scaf::compute_energy()

* Add test "scaf_system"

Co-authored-by: Patrick Schmidt <patrick.schmidt@cs.rwth-aachen.de>
2020-07-06 07:36:59 -07:00
Alec Jacobson a3c3ef1572 update test too 2020-06-30 10:42:50 -04:00
Dxyk 8268a3f33b direct delta mush build fix 2020-06-22 17:57:52 -04:00
Dxyk e4ab356031 direct delta mush review fix and unit test 2020-06-22 17:26:11 -04:00
teseoch 60ffe1b0dc Python (#1453)
fixing templates for python bindings.
2020-06-04 12:49:06 -04:00
Zhongshi f3a201f1e1 Update heat_geodesics.cpp (#1512)
* Update heat_geodesics.cpp

* heat geodesic upsampled cube unit test
2020-05-24 09:31:16 -07:00
Kenneth BlomqvistandJérémie Dumas 1df0987271 Fix issue with dijkstra algorithm (#1497)
* Use ::max vs ::infinity in dijkstra

* Add test case for discrete dijkstra distances

* Update dijkstra.cpp

* Explicit template instantiation for dijkstra test

Co-authored-by: Jérémie Dumas <jdumas@users.noreply.github.com>
2020-05-14 07:39:36 -07:00
Alec Jacobson 7ae4fb1fc1 Merge pull request #1487 from libigl/connected_components
Connected components
2020-04-19 15:36:07 -04:00
Alec Jacobson 1aa35de249 passing facet_components unit test 2020-04-18 20:25:24 -04:00
Alec Jacobson 18c5a9ddf0 Merge branch 'master' of https://github.com/libigl/libigl into bezier 2020-04-17 11:45:07 -04:00
Jérémie Dumas c47f1dab9b Comment FPE for now. (#1477) 2020-04-15 14:41:07 -07:00
Alec Jacobson 4ab389d462 bezier eval and fit cubic bezier splin 2020-04-11 19:54:29 -04:00
Alec JacobsonandJérémie Dumas faaae91419 Fix bug in signed_distance for 2D (#1400)
* Fix bug in signed_distance for 2D

* another bug fix

* missing templates

* overzealous no-op templating

* another bug... and a test.

* uncomment lines in test; templates

* Update per_edge_normals.cpp

* Update signed_distance.cpp

Co-authored-by: Jérémie Dumas <jdumas@users.noreply.github.com>
2020-04-11 12:14:12 -07:00
Kacper Pluta f029832904 Add extra exceptions for arithmetic and types operations (#1001)
* This PR allows for extra exceptions in the debug mode (GCC/LLVM) on Linux based OSes - it does not work on the other operating systems.
Relevant documentation: https://linux.die.net/man/3/feenableexcept
2020-04-11 11:16:51 -07:00
Alec Jacobson 10dc1fd9f8 Merge pull request #1422 from vfonov/tinyply_reader_writer
Replace .ply reader/writer with tinyply library
2020-04-11 13:43:54 -04:00
Alec Jacobson 62b3350271 Merge pull request #1389 from jdumas/jdumas/github-actions
Enable GitHub Actions for continuous integration
2020-04-08 17:48:13 -04:00
Vladimir S. FONOV 52c6f14ca6 Replace .ply reader/writer with tinyply library, supersedes libigl/libigl#1235
Updated SHA for libigl-tests-data
removed obsolete ply.h
updated tinyply to compile with and without LIBIGL_USE_STATIC_LIBRARY
fixed template instantiation signatures to work with gcc
fixed integer classes for visual studio
fixed igl::tynyply_type redefinition
added command to install ccache in .travis.yml
added test for writePLY
changed asserts inside writePLY code
fixed some bugs in writePLY code
made PLY reader/writer work with quad meshes
made PLY reader/writer work with tristrips
2020-03-24 18:15:36 -04:00
allo- 4ce917d424 Issue 521 (#1327)
* Added unit test for issue #521

Unit test adapted from https://github.com/qnzhou/libigl-unit-tests/blob/master/include/igl/delaunay_triangulation.cpp

* Fix iterator out of range error in lexicographic_triangulation (closes #521)

The iterator is now always decreased, so it points to the current left
side of the triangulation again after erasing the current item.
When the iterator is at the beginning of the boundary, it needs to point
to the last element (boundary.end()-1) after decreasing, so we have to
decrease the iterator in all cases.

In addition, the line
    if (itr == left_itr || itr == right_itr) continue;
is simplified to
    if (itr == left_itr) continue;

because the condition itr == right_itr will never be hit, because the
line before breaks the loop, when itr == right_itr:
    if (itr == right_itr) break;
2020-02-29 18:19:52 -05:00
Qingnan ZhouandJérémie Dumas 26053f696c Avoid involving Eigen/SparseExtra in slice. (#1370)
* Avoid involving Eigen/SparseExtra in slice.

* Undo merging error...

* Remove more deprecated DynamicSparseMatrix in slice.

* Typo.

* Avoid narrowing error in initializer list.

* Cleanup igl::slice, add igl::slice_sorted, add unit test and benchmarks + update Catch2.

* Missing template.

* Template for Windows.

Co-authored-by: Jérémie Dumas <jdumas@users.noreply.github.com>
2020-02-16 22:31:06 -05:00
Jérémie Dumas d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 2019-12-19 15:45:56 -05:00
Jérémie Dumas 252017af44 Add workflows for GitHub Actions + misc fixes.
- Fixes #1229 by defaulting to static MSVC runtime on Windows.
- CMake will now fail if LIBIGL_WITH_CGAL is ON but CGAL is not found
  (e.g. missing Boost or gmp/mpfr).
- Removed some duplicated template instantiations on Windows.
- Added IGL_DEBUG_OFF to disable slow unit test in Debug configuration
  by default.
- Do not FORCE options given to third-party libraries.
2019-12-19 15:19:32 -05:00
Alec Jacobson 3637cf3ca9 missed a colon 2019-11-29 19:24:28 -05:00
Alec Jacobson 46a8dd2fd4 rm load_matrix 2019-11-29 19:03:10 -05:00
Alec Jacobson 6a7428694f rm load_mesh 2019-11-29 18:58:45 -05:00
Alec Jacobson 472ee3e576 no load_obj... 2019-11-29 18:50:02 -05:00
Alec Jacobson 8507b929cd Update test_common.h 2019-11-29 09:08:13 -05:00
Alec Jacobson 6121d86961 Merge branch 'dev' into icp 2019-11-10 17:33:50 -05:00
Alec Jacobson 88e3dd1e3e iterative closest point alg, tutoiral, test 2019-11-10 17:20:59 -05:00
hanxiao 911124a37b Merge pull request #1332 from hankstag/pr_cut_mesh
cut mesh refactor
2019-11-08 10:31:49 -05:00
Alec Jacobson a8f978a42b test for fwn 2019-11-04 09:49:11 -05:00