mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-10 15:28:45 -07:00
Building igl statically and moving to the dep scripts
Fixing dep build script on Windows and removing some warnings. Use bundled igl by default. Not building with the dependency scripts if not explicitly stated. This way, it will stay in Fix the libigl patch to include C source files in header only mode.
This commit is contained in:
parent
89e39e3895
commit
2ae2672ee9
1095 changed files with 181 additions and 5 deletions
28
src/libigl/igl/find_zero.h
Normal file
28
src/libigl/igl/find_zero.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef IGL_FIND_ZERO_H
|
||||
#define IGL_FIND_ZERO_H
|
||||
#include "igl_inline.h"
|
||||
#include <Eigen/Core>
|
||||
#include <Eigen/Sparse>
|
||||
namespace igl
|
||||
{
|
||||
// Find the first zero (whether implicit or explicitly stored) in the
|
||||
// rows/columns of a matrix.
|
||||
// Inputs:
|
||||
// A m by n sparse matrix
|
||||
// dim dimension along which to check for any (1 or 2)
|
||||
// Output:
|
||||
// I n-long vector (if dim == 1) {m means no zeros found}
|
||||
// or
|
||||
// I m-long vector (if dim == 2) {n means no zeros found}
|
||||
//
|
||||
template <typename AType, typename DerivedI>
|
||||
IGL_INLINE void find_zero(
|
||||
const Eigen::SparseMatrix<AType> & A,
|
||||
const int dim,
|
||||
Eigen::PlainObjectBase<DerivedI> & I);
|
||||
}
|
||||
#ifndef IGL_STATIC_LIBRARY
|
||||
# include "find_zero.cpp"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue