瀏覽代碼

documentation

Former-commit-id: 0f8eda311b0164436be81d01ec50f374c81c1a70
Alec Jacobson 8 年之前
父節點
當前提交
52eabdec3e
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      include/igl/random_points_on_mesh.h

+ 4 - 2
include/igl/random_points_on_mesh.h

@@ -21,8 +21,8 @@ namespace igl
   //   V  #V by dim list of mesh vertex positions
   //   F  #F by 3 list of mesh triangle indices
   // Outputs:
-  //   B  n by #V list of barycentric coordinates such that each row i has
-  //     three nonzero entries hoding barycentric corridinates of the point.
+  //   B  n by 3 list of barycentric coordinates, ith row are coordinates of
+  //     ith sampled point in face FI(i)
   //   FI  n list of indices into F 
   //
   template <typename DerivedV, typename DerivedF, typename DerivedB, typename DerivedFI>
@@ -32,6 +32,8 @@ namespace igl
     const Eigen::PlainObjectBase<DerivedF > & F,
     Eigen::PlainObjectBase<DerivedB > & B,
     Eigen::PlainObjectBase<DerivedFI > & FI);
+  // Outputs:
+  //   B n by #V sparse matrix so that  B*V produces a list of sample points
   template <typename DerivedV, typename DerivedF, typename ScalarB, typename DerivedFI>
   IGL_INLINE void random_points_on_mesh(
     const int n,