mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-26 02:01:12 -06:00
Merged branch 'dev_native' into lm_sla_supports_auto
Added igl library files
This commit is contained in:
commit
7681d00ee5
2865 changed files with 142806 additions and 22325 deletions
41
src/igl/vector_area_matrix.h
Normal file
41
src/igl/vector_area_matrix.h
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
// This file is part of libigl, a simple c++ geometry processing library.
|
||||
//
|
||||
// Copyright (C) 2014 Daniele Panozzo <daniele.panozzo@gmail.com>
|
||||
//
|
||||
// This Source Code Form is subject to the terms of the Mozilla Public License
|
||||
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
|
||||
// obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#ifndef IGL_VECTOR_AREA_MATRIX_H
|
||||
#define IGL_VECTOR_AREA_MATRIX_H
|
||||
#include "igl_inline.h"
|
||||
|
||||
#include <Eigen/Dense>
|
||||
#include <Eigen/Sparse>
|
||||
|
||||
namespace igl
|
||||
{
|
||||
// Constructs the symmetric area matrix A, s.t. [V.col(0)' V.col(1)'] * A *
|
||||
// [V.col(0); V.col(1)] is the **vector area** of the mesh (V,F).
|
||||
//
|
||||
// Templates:
|
||||
// DerivedV derived type of eigen matrix for V (e.g. derived from
|
||||
// MatrixXd)
|
||||
// DerivedF derived type of eigen matrix for F (e.g. derived from
|
||||
// MatrixXi)
|
||||
// Scalar scalar type for eigen sparse matrix (e.g. double)
|
||||
// Inputs:
|
||||
// F #F by 3 list of mesh faces (must be triangles)
|
||||
// Outputs:
|
||||
// A #Vx2 by #Vx2 area matrix
|
||||
//
|
||||
template <typename DerivedF, typename Scalar>
|
||||
IGL_INLINE void vector_area_matrix(
|
||||
const Eigen::PlainObjectBase<DerivedF> & F,
|
||||
Eigen::SparseMatrix<Scalar>& A);
|
||||
}
|
||||
|
||||
#ifndef IGL_STATIC_LIBRARY
|
||||
# include "vector_area_matrix.cpp"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue