Commit Graph
84 Commits
Author SHA1 Message Date
Lawson Fulton 450935874f Extending igl::cat to work with std::vectors AND Allowing N-gons in writeOBJ (#1108)
* templates

* Extending igl::cat to work with a std::vector of matrices

* Small fix

* Fixing std::vector version of adjacency_list

* Change MatrixBase -> PlainObjectBase to fix compile error in boundary_loop

* Fixing function definition for adjacency_list

* Added test for cat

* Extending writeOBJ to work with mixed tri/quad meshes

* Code review feedback

* Writing lines instead of faces

* Adding template for test compile

* Fixing brace style and switching to trigraph

* Fixing braces

* another brace

* PlainObjectBase -> MatrixBase

* Sneaking in a few more template instantiations

* PlainObjectBase for outputs

* adding template to fix appveyor windows link error
2019-04-27 09:03:47 -04:00
Qingnan Zhou e38ee99766 Fix https://github.com/libigl/libigl/issues/1168 (#1173)
* Replicate linking error described in https://github.com/libigl/libigl/issues/1168

* Fix https://github.com/libigl/libigl/issues/1168.

* Ensure header-only mode works.

* Disambiguate exactinit call in unit test.
2019-04-22 22:24:03 -04:00
Qingnan Zhou 6ad790f846 Update predicates and avoid heap allocations. 2019-04-19 13:10:31 -04:00
Qingnan Zhou 01a18ac2ed Add unit tests for predicates. 2019-04-18 23:09:18 -04:00
Alec Jacobson 16ce83c381 rename test 2019-03-28 10:38:25 -04:00
Francis Williams 5e2d8ddebe Merge pull request #1096 from jdumas/fix-randperm
Fix logic error for URNG in igl::randperm
2019-03-19 18:34:05 -04:00
Jérémie Dumas c7c06e3735 Merge pull request #1107 from ThomasAuzinger/dev
Ensured use of internally defined constants.
2019-03-06 22:12:40 -05:00
Thomas AUZINGER c85ee4ef79 Ensured use of internally defined constants. 2019-03-06 14:33:17 +01:00
Jérémie Dumas 843438eab9 Fix logic error for URNG in igl::randperm 2019-02-26 19:37:42 -05:00
Alec Jacobson 77eb3f88fd Merge pull request #1067 from libigl/boundary-faces-extend
Extend boundary_facets with outputs revealing which element facet comes from
2019-02-24 13:41:51 -04:00
Jérémie Dumas 4575cbd670 Merge pull request #1062 from ycjungSubhuman/master
Use std::shuffle instead of std::random_shuffle in igl/randperm
2019-02-23 15:55:45 -05:00
Alec Jacobson 1deb471727 extra boundary_facets outputs; better sort prototypes; templates; cleanup 2018-12-28 14:16:20 -06:00
Alec Jacobson 67257e8ed0 fix test 2018-12-28 14:12:20 -06:00
Jérémie Dumas 607148cf72 Misc compilation fixes for Eigen 3.3 compatibility. 2018-12-28 15:02:21 +01:00
ycjungSubhuman 217b838df2 Make randperm take URBG using func overloading 2018-12-27 20:34:58 +08:00
Alec Jacobson 72b6464f7e compiles on mac 2018-12-26 14:54:46 -06:00
Alec Jacobson 0751e904b0 Merge branch 'dev' into boundary-faces-extend 2018-12-26 14:38:56 -06:00
Alec Jacobson 418d48ead3 boundary facets test 2018-12-26 13:53:47 -06:00
Jérémie Dumas cec2f07c0b Merge branch 'dev' into PR_fix_mesh_to_polyhedron 2018-12-26 00:48:38 +01:00
Alec Jacobson 48c7fa98c1 Merge branch 'jdumas-fix-cgal' into dev 2018-12-24 17:42:26 -06:00
Alec Jacobson b5875d5ea1 accumarray implementation 2018-12-24 17:20:08 -06:00
Alec Jacobson 85b93826a2 merge 2018-12-24 16:41:35 -06:00
Alec Jacobson 0b1f0b2009 mesh_to_polyhedron compiles (but not tested since CGAL tests are broken) 2018-12-24 16:35:56 -06:00
Alec Jacobson bce6685db0 formatting 2018-12-24 16:03:40 -06:00
Qingnan Zhou 626aeba4bd Add cut to disk unittest (#1007)
* Add failing unit test for https://github.com/libigl/libigl/pull/984.

* Update test data repo.

* Remove check on number of cuts since boundary may also be reported as cut.

* Update unittest tag.

* Update LibiglDownloadExternal.cmake
2018-12-08 16:29:49 +09:00
Yucheol Jung 0b6f488f28 Make igl/randperm to receive UniformRandomBitGenerator as argument
The reason behind this change is UniformRandomBitGenerator that
std::shuffle takes require max() and min() to be accessible
in compile-time. Therefore, template specializations for igl::randperm
will require max() and min() values as template variables, which is not
desirable. Instead, we declare template specializations for
pre-defined UniformRandomBitGenerator specified in c++11 standard.
2018-11-24 18:48:54 +09:00
Yucheol Jung e686604f4f Make igl/randperm accept random number generator as argument 2018-11-24 17:32:50 +09:00
teseoch 1225b8d5a9 Merge pull request #994 from xarthurx/dev
fix segments_intersection bug.
2018-11-12 14:47:34 -05:00
x.ZM de180a073f fix: move return value downwards + change tabs to 2-space. 2018-11-10 14:48:57 +01:00
Jérémie Dumas a3f240620a Fix cgal dll problem. 2018-11-05 21:37:11 -05:00
Jérémie Dumas b7db5a8ee0 Stupid template should compile now. 2018-11-05 18:04:07 -05:00
Jérémie Dumas 8bebcf827e Grrr. 2018-11-04 21:49:09 -05:00
Jérémie Dumas 470f03dc41 Stupid tests. 2018-11-04 18:36:29 -05:00
Jérémie Dumas ac8b269300 More test fixing. 2018-11-04 18:02:18 -05:00
Jérémie Dumas 3dd8e3e0e6 Fix boolean test. 2018-11-04 17:18:23 -05:00
Jérémie Dumas 67edc94c8a Fix CGAL tests + try Travis without python. 2018-11-04 14:41:49 -05:00
ikoruk b7124f179f add unit tests for embree (#952)
* add unit tests for embree

* discovered bug with intersect beam and wrote unit test for the fix

* Update EmbreeIntersector.cpp

updated test to catch2

* Update CMakeLists.txt

removed tab to rerun CI

* Update CMakeLists.txt

* Update CMakeLists.txt

* caching value of BUILD_TESTING before resetting it

* Try to build embree statically on Windows.

* Try to enable testing early on.

* Update Catch2 version.

* Set CMake build type.

* Trying to build embree statically.

* Fix static compilation of embree on Windows.

* Cleanup.
2018-11-04 11:00:35 -05:00
x.ZM 33510d9f1b fix: segments intersection bug.
Unit test also added.
2018-11-03 16:44:22 +01:00
Teseo Schneider 1c3c7c7b6f ported new tests to catch2 2018-10-29 16:39:58 -04:00
teseoch 6f41773f47 Merge branch 'dev' into catch2 2018-10-29 15:59:34 -04:00
Alec Jacobson 788f0bc2f2 Merge branch 'dev-intrinsic-delaunay' of https://github.com/libigl/libigl into dev-intrinsic-delaunay 2018-10-28 22:11:32 -04:00
Alec Jacobson ce2eaf8fc9 don't consider i==j 2018-10-28 22:08:03 -04:00
Alec Jacobson 3593e5ca8b fix reverse sort order on linux 2018-10-28 21:56:24 -04:00
Alec Jacobson 894a51f132 sorts may differ 2018-10-28 21:48:22 -04:00
Alec Jacobson 44f93fa0d9 intrinsic gradient operator + test 2018-10-28 19:58:38 -04:00
Alec Jacobson b5a0619ae2 clean up grad and add test 2018-10-28 19:30:16 -04:00
Alec Jacobson e5c78841a8 grad test 2018-10-28 19:11:09 -04:00
Alec Jacobson fbd4eb8457 Merge branch 'dev-delaunay-tests-attempt-2' of https://github.com/libigl/libigl into dev-intrinsic-delaunay 2018-10-28 15:47:07 -04:00
Alec Jacobson 918061f1dc revert accidental change to cgal unit test 2018-10-28 15:43:05 -04:00
Alec Jacobson 3edbcc8662 merge 2018-10-28 15:41:17 -04:00