Commit Graph
4755 Commits
Author SHA1 Message Date
Jérémie Dumas c47f1dab9b Comment FPE for now. (#1477) 2020-04-15 14:41:07 -07:00
Alec Jacobson a6ca070009 Merge pull request #1479 from libigl/jdumas/issues
Update issue templates
2020-04-13 10:12:03 -04:00
Alec Jacobson e8b2170dd3 Merge pull request #1480 from libigl/double-sided-lighting
Toggle double sided lighting
2020-04-12 20:23:10 -04:00
Jérémie Dumas b632972487 Make double_sided a bool option. 2020-04-12 14:16:09 -07:00
Alec Jacobson 9fa54a0398 double sided lighting 2020-04-12 16:01:29 -04:00
Jérémie Dumas 0c5bb13883 Update issue templates
Update templates.

Update templates.

Update templates.

Update templates.

Rename.

Copy.

Update.
2020-04-12 09:45:01 -07:00
tamasmeszaros 651fc234cd Fixes build with mingw-w64 (#1335) 2020-04-11 20:29:44 -07:00
Alec Jacobson 1ad57f019c Templates (#1475)
* templates, comments and templatefixes

* linux doesn't like __sFile

* more templates
2020-04-11 16:00:41 -07:00
Jérémie Dumas 698c316159 Merge pull request #1474 from libigl/jdumas/clone-depth
Update clone depth.
2020-04-11 12:49:49 -07: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
Janos95andJérémie Dumas 0f557400f9 dont use floating point values to index eigen types (#1361)
* dont use floating point values to index eigen types

* only cast doubles not the whole expression

* add remaining casts

* Update cast.

Co-authored-by: Jérémie Dumas <jeremie.dumas@ens-lyon.org>
2020-04-11 12:13:03 -07:00
Mathieu Lamarre df5b320f57 Fix compilation error in face_occurrences.cpp (#1402)
* Fix compilation error

When IntegerC is long long int with gcc 7.4
2020-04-11 11:48:07 -07:00
Jérémie Dumas a90a67bdf2 Update clone depth. 2020-04-11 11:44:23 -07:00
Jérémie Dumas a203de97aa Update pull_request_template.md (#1348)
* Update pull_request_template.md
2020-04-11 11:33:34 -07:00
Thomas Auzinger 4827b40640 Extended serialization functionality to Eigen::Array. (#1113)
* Extended serialization functionality to Eigen::Array.
2020-04-11 11:29:14 -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
Nico 7576c3b8ad fix align_camera_center in Viewer::init() for multiple cores (#1349)
* Iterate over viewer.core_list and viewer.data_list and align_camera_center per core with visible data.
2020-04-11 11:04:26 -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
AdithyaPediredla 546452da5a Bug fix in csvreads. (Bug #1423) (#1430)
* Bug fix in csvreads.
2020-04-11 10:24:12 -07:00
Raymond Yun Fei c1c88fd78b numeric_limits<double>::min() is the minimal positive number (#1438)
Fixes #1411
2020-04-11 10:22:27 -07:00
Vladimir S. FONOV c907add524 Fixes stack overwriting bug in gl::is_stl, when file have binary data (#1431)
* Fixes stack overwriting bug in gl::is_stl, when file have binary data
detected by running with ASAN in all_meshes test
2020-04-11 10:21:32 -07:00
Jérémie Dumas 726cd540c3 Delete .travis.yml 2020-04-11 10:08:56 -07:00
Christoffer Green b9093020ab Apply patch for 32-bit support (#1471)
Fixes #1095 and #1047
2020-04-11 10:00:44 -07:00
Jérémie Dumas 021ec6f946 Dot not build tutorials in Debug mode. (#1473)
* Dot not build tutorials in Debug mode.

Fix script.

Limit num of parallel jobs on Windows Nighlty.

Update job matrix.

Update job matrix.

Update job matrix.

Rename jobs.

* Limit branches that triggers a CI build.

* Restore original name.
2020-04-11 09:57:38 -07:00
Jérémie Dumas b550323ef0 Merge pull request #1441 from BruegelN/fix-average_onto_faces-namespace
Added igl namespace average_onto_faces.cpp
2020-04-11 09:27:41 -07:00
Nico Brügel 5c7298c2fc Added igl:: to average_onto_faces.
Might resolve https://github.com/libigl/libigl-python-bindings/issues/35
2020-04-09 00:29:56 +02:00
Jérémie Dumas 5239d12eb3 Update README.md (#1470) 2020-04-08 15:27:45 -07:00
Jérémie Dumas 01466e5bd6 Update README.md (#1469) 2020-04-08 15:23:05 -07:00
Alec Jacobson 3cb4894eaf Merge pull request #1468 from libigl/dev
Build / Linux (Release, OFF) (push) Waiting to run
Build / Linux (Release, ON) (push) Waiting to run
Build / macOS (Release, OFF) (push) Waiting to run
Build / macOS (Release, ON) (push) Waiting to run
Build / Windows (Release, OFF) (push) Waiting to run
Build / Windows (Release, ON) (push) Waiting to run
Release 2.2
v2.2.0
2020-04-08 17:57:08 -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
Alec Jacobson 92b25d30a8 Templates (mostly single-precision float types) (#1396)
* templates

* fix file template

* windows template

* more windows templates
2020-02-16 16:33:13 -05:00
teseoch 87bfaeeba8 Templates and other fixes for python bindings (#1379)
* face occurences fixed

* flipped_triangles templates

* templates

* extract_manifold_patches templates

* normal_derivative templates

* orient_outward snap_points
2020-02-16 16:27:52 -05:00
Alec Jacobson 79e7a05b16 Fix bug in https://github.com/libigl/libigl/issues/1204 2020-02-14 11:59:07 -05:00
Jérémie Dumas 56f129e440 Merge pull request #1399 from evouga/hsv
Allows hsv_to_rgb to work on negative hues
2020-01-03 19:53:30 -05:00
Etienne Vouga 5987ee483e Make hsv_to_rgb map the hue periodically to [0, 360] if the input hue is negative, rather than returning undefined rgb. 2020-01-03 14:34:47 -06:00
Alec Jacobson 87b54fc4dc Update voxel_grid.h 2020-01-01 19:53:08 -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
Jérémie Dumas ea0515088e Add CMake file to sort targets into folders (#1383)
* Add CMake file to sort targets into folders.

* Do not set FOLDER property on INTERFACE targets.
2019-12-14 14:59:10 -05:00
Jérémie Dumas 03528b295e Merge pull request #1376 from jiangzhongshi/patch-1
Update reference link in active_set
2019-12-14 11:11:14 -05:00
Jason Juang abdc6792d7 install hpp files (#1363) 2019-12-12 18:13:27 -05:00
Zhongshi 579385f107 Update reference link in active_set 2019-12-11 08:52:26 -05:00
Nico 5d9d9c8eff Make use of IGL_DEPRECATED (#1380)
* Make use of IGL_DEPRECATED() macro in igl::all_edges, igl::internal_angles and igl::is_border_vertex.
CTRL+F for "deprecated" find functions where the comment says that the functioin is deprecated.

* Removed #include deprecated.h for igl::nchoosek and igl::readOBJ because it looks like the functions which have been marked as deprecated are already gone.

* update IGL_DEPRECATED to make use of C++14 feature [[deprecated]].

* replace deprecated igl:is_border_vertex(V,F) with igl::is_border_vertex(F).

* fixed IGL_DEPRECATED: added prama message if the compiler is unknonw and fixed macro for MSVC.

* Add IGL_DEPRECATED to igl::remove_duplicates() to mark it as deprecated.
2019-12-10 23:14:57 +00:00
Jérémie Dumas d9b218f1f8 Thread-safe predicate initialization using singleton pattern. (#1377)
* Thread-safe predicate initialization using singleton pattern.

* Update predicates.

* Update predicates.
2019-12-08 03:10:00 +00:00
Jérémie Dumas 77ed6247cb Add colormap option to set_data + update jet implementation. (#1372)
* Add cmap option to set_data + fix jet colormap.

* Switch from jet to turbo.

* Add explicit turbo colormap.

* Add option for number of intervals in colormap.

* Switch to Viridis as default.
2019-12-02 10:54:02 +00:00
Alec Jacobson 05812f73a6 Merge pull request #1371 from libigl/alecjacobson-dev
Phong color mapping for scalar field data, refactor tutorials
2019-12-01 12:14:13 -05:00
Alec Jacobson 1f796d4d27 typo 2019-12-01 01:55:14 -05:00