mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-24 09:11:23 -06: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
49
src/libigl/igl/dfs.h
Normal file
49
src/libigl/igl/dfs.h
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
#ifndef IGL_DFS_H
|
||||
#define IGL_DFS_H
|
||||
#include "igl_inline.h"
|
||||
#include <Eigen/Core>
|
||||
#include <vector>
|
||||
namespace igl
|
||||
{
|
||||
// Traverse a **directed** graph represented by an adjacency list using
|
||||
// depth first search
|
||||
//
|
||||
// Inputs:
|
||||
// A #V list of adjacency lists
|
||||
// s starting node (index into A)
|
||||
// Outputs:
|
||||
// D #V list of indices into rows of A in the order in which graph nodes
|
||||
// are discovered.
|
||||
// P #V list of indices into rows of A of predecessor in resulting
|
||||
// spanning tree {-1 indicates root/not discovered), order corresponds to
|
||||
// V **not** D.
|
||||
// C #V list of indices into rows of A in order that nodes are "closed"
|
||||
// (all descendants have been discovered)
|
||||
template <
|
||||
typename AType,
|
||||
typename DerivedD,
|
||||
typename DerivedP,
|
||||
typename DerivedC>
|
||||
IGL_INLINE void dfs(
|
||||
const std::vector<std::vector<AType> > & A,
|
||||
const size_t s,
|
||||
Eigen::PlainObjectBase<DerivedD> & D,
|
||||
Eigen::PlainObjectBase<DerivedP> & P,
|
||||
Eigen::PlainObjectBase<DerivedC> & C);
|
||||
template <
|
||||
typename AType,
|
||||
typename DType,
|
||||
typename PType,
|
||||
typename CType>
|
||||
IGL_INLINE void dfs(
|
||||
const std::vector<std::vector<AType> > & A,
|
||||
const size_t s,
|
||||
std::vector<DType> & D,
|
||||
std::vector<PType> & P,
|
||||
std::vector<CType> & C);
|
||||
|
||||
}
|
||||
#ifndef IGL_STATIC_LIBRARY
|
||||
# include "dfs.cpp"
|
||||
#endif
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue