Former-commit-id: 95c6b1d0cf9efaedb42219ec74ba5cc100525ddb
@@ -84,17 +84,17 @@ IGL_INLINE int igl::copyleft::tetgen::tetrahedralize(
bool TV_rect = list_to_matrix(vTV,TV);
if(!TV_rect)
{
- return false;
+ return 3;
}
bool TT_rect = list_to_matrix(vTT,TT);
if(!TT_rect)
bool TF_rect = list_to_matrix(vTF,TF);
if(!TF_rect)
return e;
@@ -94,7 +94,7 @@ IGL_INLINE bool igl::min_quad_with_fixed_precompute(
SparseMatrix<T> Auu;
slice(A,data.unknown,data.unknown,Auu);
- assert(Auu.size() > 0 && "There should be at least one unknown.");
+ assert(Auu.size() != 0 && Auu.rows() > 0 && "There should be at least one unknown.");
// Positive definiteness is *not* determined, rather it is given as a
// parameter
@@ -261,6 +261,7 @@ namespace viewer
ngui->addVariable("Show vertex labels", core.show_vertid);
ngui->addVariable("Show faces labels", core.show_faceid);
+ screen->setVisible(true);
screen->performLayout();
#endif
@@ -340,6 +340,9 @@ endif()
### Compile the png parts ###
if(LIBIGL_WITH_PNG)
+ if(LIBIGL_WITH_NANOGUI)
+ set(STBI_LOAD OFF CACHE BOOL " " FORCE)
+ endif()
set(STB_IMAGE_DIR "${LIBIGL_EXTERNAL}/stb_image")
add_subdirectory("${STB_IMAGE_DIR}" "stb_image")
list(APPEND LIBIGL_INCLUDE_DIRS ${STB_IMAGE_DIR})