mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-22 05:59:12 -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:
32
src/libigl/igl/setxor.cpp
Normal file
32
src/libigl/igl/setxor.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#include "setxor.h"
|
||||
#include "setdiff.h"
|
||||
#include "setunion.h"
|
||||
#include "slice.h"
|
||||
|
||||
template <
|
||||
typename DerivedA,
|
||||
typename DerivedB,
|
||||
typename DerivedC,
|
||||
typename DerivedIA,
|
||||
typename DerivedIB>
|
||||
IGL_INLINE void igl::setxor(
|
||||
const Eigen::DenseBase<DerivedA> & A,
|
||||
const Eigen::DenseBase<DerivedB> & B,
|
||||
Eigen::PlainObjectBase<DerivedC> & C,
|
||||
Eigen::PlainObjectBase<DerivedIA> & IA,
|
||||
Eigen::PlainObjectBase<DerivedIB> & IB)
|
||||
{
|
||||
DerivedC AB,BA;
|
||||
DerivedIA IAB,IBA;
|
||||
setdiff(A,B,AB,IAB);
|
||||
setdiff(B,A,BA,IBA);
|
||||
setunion(AB,BA,C,IA,IB);
|
||||
slice(IAB,DerivedIA(IA),IA);
|
||||
slice(IBA,DerivedIB(IB),IB);
|
||||
}
|
||||
|
||||
#ifdef IGL_STATIC_LIBRARY
|
||||
// Explicit template instantiation
|
||||
// generated by autoexplicit.sh
|
||||
template void igl::setxor<Eigen::Matrix<int, -1, 2, 0, -1, 2>, Eigen::Matrix<int, -1, 2, 0, -1, 2>, Eigen::Matrix<int, -1, 1, 0, -1, 1>, Eigen::Matrix<int, -1, 1, 0, -1, 1>, Eigen::Matrix<int, -1, 1, 0, -1, 1> >(Eigen::DenseBase<Eigen::Matrix<int, -1, 2, 0, -1, 2> > const&, Eigen::DenseBase<Eigen::Matrix<int, -1, 2, 0, -1, 2> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> >&);
|
||||
#endif
|
||||
Reference in New Issue
Block a user