libigl v2.5.0
Loading...
Searching...
No Matches
edge_vectors.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2020 Oded Stein <oded.stein@columbia.edu>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_EDGE_VECTORS_H
9#define IGL_EDGE_VECTORS_H
10#include "igl_inline.h"
11
12#include <Eigen/Dense>
13namespace igl
14{
26 template<bool computePerpendicular=true,
27 typename DerivedV,typename DerivedF,typename DerivedE,
28 typename DerivedoE, typename DerivedvecParallel,
29 typename DerivedvecPerpendicular>
31 const Eigen::MatrixBase<DerivedV> &V,
32 const Eigen::MatrixBase<DerivedF> &F,
33 const Eigen::MatrixBase<DerivedE> &E,
34 const Eigen::MatrixBase<DerivedoE> &oE,
35 Eigen::PlainObjectBase<DerivedvecParallel> &vecParallel,
36 Eigen::PlainObjectBase<DerivedvecPerpendicular> &vecPerpendicular);
38 template<typename DerivedV,typename DerivedF,typename DerivedE,
39 typename DerivedoE, typename Derivedvec>
41 const Eigen::MatrixBase<DerivedV> &V,
42 const Eigen::MatrixBase<DerivedF> &F,
43 const Eigen::MatrixBase<DerivedE> &E,
44 const Eigen::MatrixBase<DerivedoE> &oE,
45 Eigen::PlainObjectBase<Derivedvec> &vec);
46}
47
48#ifndef IGL_STATIC_LIBRARY
49# include "edge_vectors.cpp"
50#endif
51
52#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void edge_vectors(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const Eigen::MatrixBase< DerivedE > &E, const Eigen::MatrixBase< DerivedoE > &oE, Eigen::PlainObjectBase< DerivedvecParallel > &vecParallel, Eigen::PlainObjectBase< DerivedvecPerpendicular > &vecPerpendicular)
Computes the normalized edge vectors for edges in a triangle mesh.