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:
tamasmeszaros 2019-06-19 14:52:55 +02:00
parent 89e39e3895
commit 2ae2672ee9
1095 changed files with 181 additions and 5 deletions

View file

@ -0,0 +1,36 @@
#ifndef IGL_EDGES_TO_PATH_H
#define IGL_EDGES_TO_PATH_H
#include "igl_inline.h"
#include <Eigen/Core>
namespace igl
{
// EDGES_TO_PATH Given a set of undirected, unique edges such that all form a
// single connected compoent with exactly 0 or 2 nodes with valence =1,
// determine the/a path visiting all nodes.
//
// Inputs:
// E #E by 2 list of undirected edges
// Outputs:
// I #E+1 list of nodes in order tracing the chain (loop), if the output
// is a loop then I(1) == I(end)
// J #I-1 list of indices into E of edges tracing I
// K #I-1 list of indices into columns of E {1,2} so that K(i) means that
// E(i,K(i)) comes before the other (i.e., E(i,3-K(i)) ). This means that
// I(i) == E(J(i),K(i)) for i<#I, or
// I == E(sub2ind(size(E),J([1:end end]),[K;3-K(end)]))))
//
template <
typename DerivedE,
typename DerivedI,
typename DerivedJ,
typename DerivedK>
IGL_INLINE void edges_to_path(
const Eigen::MatrixBase<DerivedE> & E,
Eigen::PlainObjectBase<DerivedI> & I,
Eigen::PlainObjectBase<DerivedJ> & J,
Eigen::PlainObjectBase<DerivedK> & K);
}
#ifndef IGL_STATIC_LIBRARY
# include "edges_to_path.cpp"
#endif
#endif