|
@@ -27,7 +27,7 @@ namespace igl
|
|
|
// 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].
|
|
|
+ // NOTE: the first edge of a triangle is [0,1] the second [1,2] and the third [2,0].
|
|
|
// this convention is DIFFERENT from cotmatrix_entries.h
|
|
|
// Known bug: this should not need to take V as input.
|
|
|
|
|
@@ -36,6 +36,7 @@ namespace igl
|
|
|
const Eigen::PlainObjectBase<Scalar>& V,
|
|
|
const Eigen::PlainObjectBase<Index>& F,
|
|
|
Eigen::PlainObjectBase<Index>& TT);
|
|
|
+
|
|
|
// Compute triangle-triangle adjacency with indices
|
|
|
template <typename Scalar, typename Index>
|
|
|
IGL_INLINE void triangle_triangle_adjacency(
|
|
@@ -84,8 +85,8 @@ namespace igl
|
|
|
// TT[i][c][0] is an edge-neighbor of face i incident on the edge of face
|
|
|
// TT[i][c][0] opposite corner j, and TT[i][c][1] " corner k, etc.
|
|
|
template <
|
|
|
- typename DerivedF,
|
|
|
- typename TTIndex,
|
|
|
+ typename DerivedF,
|
|
|
+ typename TTIndex,
|
|
|
typename TTiIndex>
|
|
|
IGL_INLINE void triangle_triangle_adjacency(
|
|
|
const Eigen::PlainObjectBase<DerivedF> & F,
|
|
@@ -98,8 +99,8 @@ namespace igl
|
|
|
// Wrapper with bool to choose whether to compute TTi (this prototype should
|
|
|
// be "hidden").
|
|
|
template <
|
|
|
- typename DerivedF,
|
|
|
- typename TTIndex,
|
|
|
+ typename DerivedF,
|
|
|
+ typename TTIndex,
|
|
|
typename TTiIndex>
|
|
|
IGL_INLINE void triangle_triangle_adjacency(
|
|
|
const Eigen::PlainObjectBase<DerivedF> & F,
|
|
@@ -113,10 +114,10 @@ namespace igl
|
|
|
// uE2E #uE list of lists of indices into E of coexisting edges
|
|
|
// See also: unique_edge_map, all_edges
|
|
|
template <
|
|
|
- typename DerivedE,
|
|
|
+ typename DerivedE,
|
|
|
typename DerivedEMAP,
|
|
|
typename uE2EType,
|
|
|
- typename TTIndex,
|
|
|
+ typename TTIndex,
|
|
|
typename TTiIndex>
|
|
|
IGL_INLINE void triangle_triangle_adjacency(
|
|
|
const Eigen::PlainObjectBase<DerivedE> & E,
|