Jérémie Dumas
de91fdd9d0
Merge pull request #1258 from v1kko/dev
...
Avoid reading beyond boundaries of arrays in readSTL.cpp
2019-07-28 11:22:30 -07:00
Lawson Fulton
a03d1a2d56
Path to edges + various template instantiations ( #1259 )
...
* templates
* templates
* Templates
* templates
* Adding path_to_edges function and unit test
* Fixes and more tests
* Making index more general
* syntax error
* Fixing test and better name
2019-07-28 10:16:35 -07:00
Jérémie Dumas
b79e8374a8
Merge pull request #1251 from BruegelN/fix-dirty-flag-ViewerData.set_color
...
set dirty flags for specular and ambient too inside igl::opengl::ViewerData::set_colors().
2019-07-28 10:04:07 -07:00
Victor Azizi
734ff706a9
Avoid reading beyond boundaries of arrays in readSTL.cpp
2019-07-17 09:35:24 +02:00
BruegelN
0dfaf2a32c
set dirty flags for specular and ambient too inside igl::opengl::ViewerData::set_colors().
2019-07-09 19:19:54 +02:00
Rahul Sheth
84c886b482
Hunterize libigl, attempt 2 ( #1242 )
...
* Add HunterGate module
* HunterGate with URL/SHA1
* Hunterize
2019-07-05 17:26:58 -04:00
Jérémie Dumas
ed98693ff8
Merge pull request #1247 from BruegelN/fix-is_irregular_vertex
...
Fix igl::is_irregular_vertex()
2019-07-05 13:55:21 -04:00
Nico Brügel
40db7208d0
use std::any_of to check result in is_irregular_vertex test.
2019-07-05 10:55:08 +02:00
Nico Brügel
7361a30ecb
Merge branch 'dev' of https://github.com/libigl/libigl into fix-is_irregular_vertex
2019-07-04 08:31:41 +02:00
Jérémie Dumas
31c4eb24d2
Merge pull request #1244 from BruegelN/update-IGL_DEPRECATED-for-clang
...
update IGL_DEPRECATED to handle clang (e.g. on macOS) as well.
2019-06-28 15:46:15 -04:00
Nico Brügel
87a50b8a39
update IGL_DEPRECATED to handle clang (e.g. on macOS) as well.
2019-06-27 08:59:38 +02:00
Jérémie Dumas
7c784ab905
Add conda environment file for boost (helpful for Windows users). ( #1239 )
...
* Add conda environment file for boost (helpful for Windows users).
* Try to update Travis image for macOS.
2019-06-26 17:48:38 -04:00
BruegelN
287ae99d3d
fixed 'igl::is_irregular_vertex()' exception if CMAKE_BUILD_TYPE=Debug.
2019-06-25 23:48:34 +02:00
Jérémie Dumas
b856635ba7
Try to update Travis image for macOS.
2019-06-25 23:44:01 +02:00
BruegelN
263b29b021
added thes for igl::is_irregular_vertex to showcase that it segfaults with CMAKE_BUILD_TYPE=Debug due to a missing F.maxCoeff()+1 in https://github.com/libigl/libigl/blob/master/include/igl/is_irregular_vertex.cpp#L16
2019-06-25 23:02:50 +02:00
X.ZhaoMa
cdd8971d1d
Add a function to set labels collectively, and clear function for points/lines. ( #1196 )
...
* fix issue for octree.
For translating centre, the distance should be the half of width of the sub cell instead of the width h.
* add collective label set method and point/edge clear function.
2019-06-23 18:24:00 -04:00
Jérémie Dumas
1f7605ea7c
Merge pull request #1231 from dpshamonin/vs-2015-error-C2131
...
fix compiler (VS 2015 error C2131) issue #1226
2019-06-17 08:23:03 -04:00
Denis Shamonin
4228447e3c
fix compiler (VS 2015 error C2131) issue #1226
2019-06-17 11:57:29 +02:00
Jérémie Dumas
119f3bdc41
Merge pull request #1210 from evouga/dialogfixes
...
file_dialog_open/save fixes
2019-06-16 14:29:42 -04:00
Jérémie Dumas
779af8fb48
Merge pull request #1227 from BruegelN/python_fix-viewer-core
...
Python: igl.glfw.Viewer().core => igl.glfw.Viewer().core() with default arg unsigned core_id = 0
2019-06-14 08:21:34 -04:00
Jérémie Dumas
8a448d4af4
Merge pull request #1185 from txstc55/master
...
Added more comments to 407 and 604
2019-06-13 10:55:21 -04:00
Jérémie Dumas
473edba1d7
Update file dialog check.
2019-06-13 09:29:34 -04:00
Jérémie Dumas
15b87c6e84
Merge pull request #1197 from BruegelN/fix-on-linux-path_to_executable
...
Fix on linux path_to_executable()
2019-06-13 09:12:23 -04:00
Jérémie Dumas
d56ab01cfb
Merge pull request #1220 from BruegelN/python_fix-viewer-data
...
Default arg for igl.glfw.Viewer().data() => mesh_id -1
2019-06-13 09:07:50 -04:00
Jérémie Dumas
790dd4d3eb
Merge pull request #1224 from nTopology/dev/ig/warningimprovements
...
Dealing with MSVC warnings a little bit more elegantly
2019-06-13 09:07:23 -04:00
Nico Brügel
6787393cd1
replace 'viewer.core' with 'viewer.core()' in python tutorials. Use same API style like in C++ however other methods for multiple viewport support still do not have python bindings.
2019-06-13 14:58:05 +02:00
Nico Brügel
7162dbe428
expose igl.glfw.Viewer.core() the same way as in C++ and adding default argument.
2019-06-13 14:54:03 +02:00
Ignacio Fraga
3bb73fbdd7
Dealing with MSVC warnings a little bit more elegantly
2019-06-12 18:26:35 -04:00
BruegelN
ea48d38056
Due to the changes in glfw::Viewer one should pass a parameter when calling data() to select a mesh. In C++ mesh_id=-1 by default ( the last element). This commit adds this behaviour for the python bindings.
2019-06-10 19:51:26 +02:00
Alec Jacobson
16b8ab326c
Merge pull request #1205 from rodyo/dev
...
✨ Enable OpenMP for MSVC users (#1147 )
2019-06-10 08:47:25 -04:00
Alec Jacobson
c27e57e85e
Merge pull request #1217 from libigl/sort-triangles
...
Fix templating in sort_triangles
2019-06-10 08:44:58 -04:00
Alec Jacobson
67e99976f1
Merge pull request #1216 from libigl/marching-cubes-redux
...
Bug fix and feature improvement for marching cubes
2019-06-10 08:43:51 -04:00
evouga
5b32edbddf
Update file_dialog_save.cpp
...
Also handle the case that the second fgets() fails due to an error rather than reaching EOF
2019-06-08 15:07:49 -05:00
evouga
3be6b6c4b4
Update file_dialog_open.cpp
...
Also handle case that the second fgets() call fails rather than reads EOF.
2019-06-08 15:06:53 -05:00
Jérémie Dumas
241187bbe3
Merge pull request #1213 from lawsonfulton/origin/dev
...
Fixing missing symbol error for python
2019-06-08 14:18:55 -04:00
Alec Jacobson
36eb913385
fix brackets
2019-06-07 18:29:52 -04:00
Alec Jacobson
de74c292ee
merge
2019-06-07 18:20:01 -04:00
Alec Jacobson
da7a3eb70b
fix templating
2019-06-07 18:14:03 -04:00
Alec Jacobson
bbfc88926e
rm lingering test code
2019-06-07 18:09:28 -04:00
Alec Jacobson
19bfe1a203
clean up and add root finding interface
2019-06-07 18:03:23 -04:00
Alec Jacobson
7e0e6a87e0
Update libigl.cmake
...
fix matlab options
2019-06-07 17:23:46 -04:00
Lawson Fulton
ab6bfb7e9f
Fixing missing symbol error for python
2019-06-07 13:19:11 -04:00
Etienne Vouga
9839ca1ffb
Attempt to fix several issues with the libigl file dialogs, so that they
...
correctly return an empty string rather than garbage when:
- the user cancels the dialog
- the user selects a file somehow longer than the 1024-character limit
- the file selection using zenity etc. fails for any other reason.
There is a strange erasure of the last character in the Linux version
(presumably to remove some trailing newline?) that I did not touch.
2019-06-03 14:49:17 -05:00
Rody Oldenhuis
b407970ecd
Changed size_t → std::ptrdiff_t for OpenMP2.0 compatibility
2019-05-31 14:00:28 +12:00
Nico Brügel
1408bd36b0
fix unit test for path_to_executable() on windows by taking into account that it has a '.exe' suffix.
2019-05-15 11:33:20 +02:00
BruegelN
d32e71784e
path_to_executable: only include unistd.h if not on windows.
2019-05-15 01:19:17 +02:00
BruegelN
49f4b7cfc8
Add unit test for path_to_executable()
2019-05-15 00:40:05 +02:00
Nico Brügel
d7925be2e4
Added symboles to check for in path_to_executable() because capital case UNIX is not defined under Linux (i.e. Ubuntu).
...
Lowercase unix is defined however. See: https://stackoverflow.com/questions/142508/how-do-i-check-os-with-a-preprocessor-directive
Also added missing include for readlink().
readlink() does not append a null byte, thus use information about the written byted when building the resulting string.
2019-05-14 16:57:20 +02:00
Jérémie Dumas
fac1d57ee5
Update main.cpp
2019-05-11 18:33:14 +02:00
Jérémie Dumas
10e04cbef5
Update GLFW to 3.3 ( #1153 )
...
* Update GLFW and Embree + use git urls (fixes #1019 ).
* Simplify Embree build.
* More robust top-level project detection.
2019-05-07 07:48:25 -04:00