mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-22 12:09:26 -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:
34
src/libigl/igl/ears.cpp
Normal file
34
src/libigl/igl/ears.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "ears.h"
|
||||
#include "on_boundary.h"
|
||||
#include "find.h"
|
||||
#include "slice.h"
|
||||
#include "mat_min.h"
|
||||
#include <cassert>
|
||||
|
||||
template <
|
||||
typename DerivedF,
|
||||
typename Derivedear,
|
||||
typename Derivedear_opp>
|
||||
IGL_INLINE void igl::ears(
|
||||
const Eigen::MatrixBase<DerivedF> & F,
|
||||
Eigen::PlainObjectBase<Derivedear> & ear,
|
||||
Eigen::PlainObjectBase<Derivedear_opp> & ear_opp)
|
||||
{
|
||||
assert(F.cols() == 3 && "F should contain triangles");
|
||||
Eigen::Array<bool,Eigen::Dynamic,3> B;
|
||||
{
|
||||
Eigen::Array<bool,Eigen::Dynamic,1> I;
|
||||
on_boundary(F,I,B);
|
||||
}
|
||||
find(B.rowwise().count() == 2,ear);
|
||||
Eigen::Array<bool,Eigen::Dynamic,3> Bear;
|
||||
slice(B,ear,1,Bear);
|
||||
Eigen::Array<bool,Eigen::Dynamic,1> M;
|
||||
mat_min(Bear,2,M,ear_opp);
|
||||
}
|
||||
|
||||
#ifdef IGL_STATIC_LIBRARY
|
||||
// Explicit template instantiation
|
||||
// generated by autoexplicit.sh
|
||||
template void igl::ears<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::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, 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