|
@@ -16,19 +16,16 @@ namespace igl
|
|
|
// Constructs the triangle-triangle adjacency matrix for a given
|
|
|
// mesh (V,F).
|
|
|
//
|
|
|
- // Templates:
|
|
|
- // Scalar derived type of eigen matrix for V (e.g. derived from
|
|
|
- // MatrixXd)
|
|
|
- // Index derived type of eigen matrix for F (e.g. derived from
|
|
|
- // MatrixXi)
|
|
|
// Inputs:
|
|
|
// F #F by simplex_size list of mesh faces (must be triangles)
|
|
|
// Outputs:
|
|
|
- // TT #F by #3 adjacent matrix, the element i,j is the id of the triangle adjacent to the j edge of triangle i
|
|
|
- // TTi #F by #3 adjacent matrix, the element i,j is the id of edge of the triangle TT(i,j) that is adjacent with triangle i
|
|
|
- // NOTE: the first edge of a triangle is [0,1] the second [1,2] and the third [2,3].
|
|
|
- // this convention is DIFFERENT from cotmatrix_entries.h
|
|
|
- // Known bug: this should not need to take V as input.
|
|
|
+ // TT #F by #3 adjacent matrix, the element i,j is the id of the triangle
|
|
|
+ // adjacent to the j edge of triangle i
|
|
|
+ // TTi #F by #3 adjacent matrix, the element i,j is the id of edge of the
|
|
|
+ // triangle TT(i,j) that is adjacent with triangle i
|
|
|
+ //
|
|
|
+ // NOTE: the first edge of a triangle is [0,1] the second [1,2] and the third
|
|
|
+ // [2,3]. this convention is DIFFERENT from cotmatrix_entries.h
|
|
|
template <typename DerivedF, typename DerivedTT, typename DerivedTTi>
|
|
|
IGL_INLINE void triangle_triangle_adjacency(
|
|
|
const Eigen::PlainObjectBase<DerivedF>& F,
|