浏览代码

Merge pull request #620 from luzpaz/misc-typos

Misc. typos

Former-commit-id: a630c8e27330c75767e40e821173878049b36458
Alec Jacobson 7 年之前
父节点
当前提交
036e5d9eb2
共有 100 个文件被更改,包括 144 次插入144 次删除
  1. 1 1
      RELEASE_HISTORY.md
  2. 2 2
      file-formats/dmat.html
  3. 2 2
      file-formats/index.html
  4. 1 1
      file-formats/tgf.html
  5. 1 1
      file-formats/xml.html
  6. 1 1
      include/igl/AABB.cpp
  7. 1 1
      include/igl/Camera.h
  8. 1 1
      include/igl/REDRUM.h
  9. 1 1
      include/igl/SortableRow.h
  10. 3 3
      include/igl/WindingNumberTree.h
  11. 3 3
      include/igl/arap_dof.cpp
  12. 1 1
      include/igl/arap_dof.h
  13. 1 1
      include/igl/bbw.h
  14. 4 4
      include/igl/bijective_composite_harmonic_mapping.h
  15. 1 1
      include/igl/boundary_conditions.cpp
  16. 1 1
      include/igl/cat.h
  17. 1 1
      include/igl/connect_boundary_to_infinity.h
  18. 1 1
      include/igl/copyleft/cgal/SelfIntersectMesh.h
  19. 1 1
      include/igl/copyleft/cgal/cell_adjacency.h
  20. 1 1
      include/igl/copyleft/cgal/closest_facet.cpp
  21. 2 2
      include/igl/copyleft/cgal/order_facets_around_edge.h
  22. 1 1
      include/igl/copyleft/cgal/outer_facet.h
  23. 1 1
      include/igl/copyleft/cgal/point_mesh_squared_distance.cpp
  24. 1 1
      include/igl/copyleft/cgal/points_inside_component.cpp
  25. 1 1
      include/igl/copyleft/cgal/remesh_intersections.cpp
  26. 1 1
      include/igl/copyleft/cgal/remesh_intersections.h
  27. 1 1
      include/igl/copyleft/cgal/trim_with_solid.cpp
  28. 1 1
      include/igl/copyleft/comiso/miq.h
  29. 1 1
      include/igl/copyleft/comiso/nrosy.h
  30. 1 1
      include/igl/copyleft/offset_surface.h
  31. 1 1
      include/igl/copyleft/opengl2/render_to_tga.h
  32. 1 1
      include/igl/copyleft/tetgen/cdt.h
  33. 2 2
      include/igl/copyleft/tetgen/read_into_tetgenio.h
  34. 1 1
      include/igl/cotmatrix.h
  35. 2 2
      include/igl/cotmatrix_entries.cpp
  36. 1 1
      include/igl/crouzeix_raviart_cotmatrix.cpp
  37. 1 1
      include/igl/crouzeix_raviart_massmatrix.cpp
  38. 3 3
      include/igl/cut_mesh.cpp
  39. 1 1
      include/igl/directed_edge_parents.h
  40. 4 4
      include/igl/embree/EmbreeIntersector.h
  41. 1 1
      include/igl/exterior_edges.cpp
  42. 1 1
      include/igl/exterior_edges.h
  43. 2 2
      include/igl/facet_components.h
  44. 1 1
      include/igl/hausdorff.h
  45. 1 1
      include/igl/histc.h
  46. 2 2
      include/igl/integrable_polyvector_fields.h
  47. 4 4
      include/igl/is_boundary_edge.cpp
  48. 1 1
      include/igl/is_planar.h
  49. 1 1
      include/igl/lim/lim.h
  50. 2 2
      include/igl/matlab/validate_arg.h
  51. 3 3
      include/igl/matlab_format.h
  52. 1 1
      include/igl/min_quad_with_fixed.cpp
  53. 1 1
      include/igl/mosek/bbw.h
  54. 2 2
      include/igl/mosek/mosek_quadprog.cpp
  55. 1 1
      include/igl/opengl/glfw/background_window.cpp
  56. 2 2
      include/igl/opengl2/MouseController.h
  57. 1 1
      include/igl/opengl2/lens_flare.cpp
  58. 1 1
      include/igl/opengl2/lens_flare.h
  59. 1 1
      include/igl/opengl2/unproject_to_zero_plane.h
  60. 2 2
      include/igl/parallel_for.h
  61. 1 1
      include/igl/pathinfo.cpp
  62. 1 1
      include/igl/per_edge_normals.cpp
  63. 1 1
      include/igl/ply.h.REMOVED.git-id
  64. 1 1
      include/igl/png/render_to_png.h
  65. 1 1
      include/igl/png/render_to_png_async.h
  66. 1 1
      include/igl/png/writePNG.cpp
  67. 1 1
      include/igl/polyvector_field_matchings.cpp
  68. 1 1
      include/igl/principal_curvature.h
  69. 1 1
      include/igl/project_to_line.h
  70. 1 1
      include/igl/project_to_line_segment.h
  71. 3 3
      include/igl/raytri.c
  72. 2 2
      include/igl/readOBJ.cpp
  73. 1 1
      include/igl/readTGF.h
  74. 1 1
      include/igl/setdiff.cpp
  75. 1 1
      include/igl/sort_angles.cpp
  76. 1 1
      include/igl/sort_triangles.cpp
  77. 2 2
      include/igl/triangle_fan.h
  78. 1 1
      include/igl/unique_edge_map.cpp
  79. 2 2
      include/igl/viewer/Viewer.cpp
  80. 1 1
      include/igl/viewer/ViewerCore.h
  81. 1 1
      include/igl/viewer/ViewerData.h
  82. 1 1
      include/igl/xml/writeDAE.cpp
  83. 2 2
      optional/README.md
  84. 2 2
      optional/index.html
  85. 2 2
      python/README.md
  86. 1 1
      python/modules/py_vector.cpp
  87. 7 7
      python/py_doc.cpp
  88. 2 2
      python/tutorial/301_Slice.py
  89. 1 1
      python/tutorial/403_BoundedBiharmonicWeights.py
  90. 1 1
      python/tutorial/404_DualQuaternionSkinning.py
  91. 1 1
      python/tutorial/505_MIQ.py
  92. 1 1
      scripts/clone-and-build.sh
  93. 1 1
      scripts/h2pair.sh
  94. 1 1
      scripts/pre-commit.sh
  95. 1 1
      shared/cmake/CXXFeatures.cmake
  96. 1 1
      style-guidelines.html
  97. 1 1
      style-guidelines.md
  98. 2 2
      tutorial/301_Slice/main.cpp
  99. 1 1
      tutorial/403_BoundedBiharmonicWeights/main.cpp
  100. 1 1
      tutorial/404_DualQuaternionSkinning/main.cpp

+ 1 - 1
RELEASE_HISTORY.md

@@ -37,7 +37,7 @@ Version | Short description
 0.3.1   | Linearly dependent constraints in min_quad_with_fixed, SparseQR buggy
 0.3.1   | Linearly dependent constraints in min_quad_with_fixed, SparseQR buggy
 0.3.0   | Better active set method support
 0.3.0   | Better active set method support
 0.2.3   | More explicits, active set method, opengl/anttweakbar guards
 0.2.3   | More explicits, active set method, opengl/anttweakbar guards
-0.2.2   | More explicit instanciations, faster sorts and uniques
+0.2.2   | More explicit instantiations, faster sorts and uniques
 0.2.1   | Bug fixes in barycenter and doublearea found by Martin Bisson
 0.2.1   | Bug fixes in barycenter and doublearea found by Martin Bisson
 0.2.0   | XML serializer more stable and fixed bug in remove_duplicate_vertices
 0.2.0   | XML serializer more stable and fixed bug in remove_duplicate_vertices
 0.1.8   | Embree and xml (windows only) extras
 0.1.8   | Embree and xml (windows only) extras

+ 2 - 2
file-formats/dmat.html

@@ -12,7 +12,7 @@
     <p>
     <p>
 A .dmat file contains a dense matrix in column major order. It can contain
 A .dmat file contains a dense matrix in column major order. It can contain
 ASCII or binary data. Note that it is uncompressed so binary only reduces the
 ASCII or binary data. Note that it is uncompressed so binary only reduces the
-file size by 50%. But writing and reading binary is usualy faster. In MATLAB,
+file size by 50%. But writing and reading binary is usually faster. In MATLAB,
 binary is almost 100x faster.
 binary is almost 100x faster.
     </p>
     </p>
     <h2>ASCII</h2>
     <h2>ASCII</h2>
@@ -33,7 +33,7 @@ Then there should be another header containing the size of the binary part:
     </p>
     </p>
     <pre><code>[#cols] [#rows]</code></pre>
     <pre><code>[#cols] [#rows]</code></pre>
     <p>
     <p>
-Then coefficents are written in column-major order in Little-endian 8-byte
+Then coefficients are written in column-major order in Little-endian 8-byte
 double precision IEEE floating point format.
 double precision IEEE floating point format.
     </p>
     </p>
     <p><strong>Note:</strong> Line endings must be <code>'\n'</code> aka char(10) aka line feeds.</p>
     <p><strong>Note:</strong> Line endings must be <code>'\n'</code> aka char(10) aka line feeds.</p>

+ 2 - 2
file-formats/index.html

@@ -20,7 +20,7 @@
     <li><a href=http://tetgen.berlios.de/fformats.face.html
     <li><a href=http://tetgen.berlios.de/fformats.face.html
     class=missing>.face</a> TetGen's file format for simplicial facets.</li>
     class=missing>.face</a> TetGen's file format for simplicial facets.</li>
     <li><a href="http://www.ann.jussieu.fr/frey/publications/RT-0253.pdf#page=33">.mesh</a> Medit's triangle surface mesh + tetrahedral volume mesh file format, see page 33, section 7.2.1</li>
     <li><a href="http://www.ann.jussieu.fr/frey/publications/RT-0253.pdf#page=33">.mesh</a> Medit's triangle surface mesh + tetrahedral volume mesh file format, see page 33, section 7.2.1</li>
-    <li><i>.node</i> List of points (vertices). Described indentically (upto
+    <li><i>.node</i> List of points (vertices). Described identically (upto
         accepted dimensions, use of attributes and boundary markers) by <a
         accepted dimensions, use of attributes and boundary markers) by <a
     href="https://www.cs.cmu.edu/~quake/triangle.node.html">Triangle</a>, <a
     href="https://www.cs.cmu.edu/~quake/triangle.node.html">Triangle</a>, <a
     href=http://tetgen.berlios.de/fformats.node.html>TetGen</a>, and <a
     href=http://tetgen.berlios.de/fformats.node.html>TetGen</a>, and <a
@@ -37,7 +37,7 @@
     href=https://en.wikipedia.org/wiki/Portable_Network_Graphics>.png</a>
     href=https://en.wikipedia.org/wiki/Portable_Network_Graphics>.png</a>
     Portable Network Graphics image file. IGLLIB (in the libiglpng extra)
     Portable Network Graphics image file. IGLLIB (in the libiglpng extra)
   supports png image files via the <a href=https://github.com/yig/yimg>yimg</a>
   supports png image files via the <a href=https://github.com/yig/yimg>yimg</a>
-  library. Alpha channels and compression are suppported.</li>
+  library. Alpha channels and compression are supported.</li>
     <li><i>.poly</i> Piecewise-linear complex. This format comes in many similar but importantly different flavors: 
     <li><i>.poly</i> Piecewise-linear complex. This format comes in many similar but importantly different flavors: 
       <a href="https://www.cs.cmu.edu/~quake/triangle.poly.html">triangle's</a>, <a href="http://tetgen.berlios.de/fformats.poly.html">tetgen's</a>, <a href="http://sparse-meshing.com/svr/0.2.1/format-poly.html">pyramid/SVR's</a></li>
       <a href="https://www.cs.cmu.edu/~quake/triangle.poly.html">triangle's</a>, <a href="http://tetgen.berlios.de/fformats.poly.html">tetgen's</a>, <a href="http://sparse-meshing.com/svr/0.2.1/format-poly.html">pyramid/SVR's</a></li>
     <li><a href=./rbr.html>.rbr</a> ASCII files for saving state of ReAntTweakBar</li>
     <li><a href=./rbr.html>.rbr</a> ASCII files for saving state of ReAntTweakBar</li>

+ 1 - 1
file-formats/tgf.html

@@ -11,7 +11,7 @@
     <hr>
     <hr>
     <p>
     <p>
 A .tgf file contains a graph of describing a set of control handles/structures:
 A .tgf file contains a graph of describing a set of control handles/structures:
-point controls, bones of a skelton and cages made of "cage edges".
+point controls, bones of a skeleton and cages made of "cage edges".
     </p>
     </p>
     <p>
     <p>
 The first part of the file consists of lines regarding each vertex of the graph. Each line reads:
 The first part of the file consists of lines regarding each vertex of the graph. Each line reads:

+ 1 - 1
file-formats/xml.html

@@ -31,7 +31,7 @@ STL containers: <b>std::array, std::vector, std::pair</b><br/>
 Eigen types: <b>Eigen::Matrix, Eigen::SparseMatrix</b><br/>
 Eigen types: <b>Eigen::Matrix, Eigen::SparseMatrix</b><br/>
 User defined types: <b>XMLSerializable*.</b><br/>
 User defined types: <b>XMLSerializable*.</b><br/>
 <br/>
 <br/>
-There can also be a hierachical structure like vector&lt;int&gt;, this will result in the following serialization:
+There can also be a hierarchical structure like vector&lt;int&gt;, this will result in the following serialization:
     </p>
     </p>
     <pre><code>&lt;group&gt;
     <pre><code>&lt;group&gt;
   &lt;vector size="3"&gt;
   &lt;vector size="3"&gt;

+ 1 - 1
include/igl/AABB.cpp

@@ -584,7 +584,7 @@ IGL_INLINE typename igl::AABB<DerivedV,DIM>::Scalar
     return sqr_d;
     return sqr_d;
   }
   }
 
 
-  //// Exact minimum squared distance between arbitary primitives inside this and
+  //// Exact minimum squared distance between arbitrary primitives inside this and
   //// othre's bounding boxes
   //// othre's bounding boxes
   //const auto & min_squared_distance = [&](
   //const auto & min_squared_distance = [&](
   //  const AABB<DerivedV,DIM> * A,
   //  const AABB<DerivedV,DIM> * A,

+ 1 - 1
include/igl/Camera.h

@@ -23,7 +23,7 @@ namespace igl
 
 
   // A simple camera class. The camera stores projection parameters (field of
   // A simple camera class. The camera stores projection parameters (field of
   // view angle, aspect ratio, near and far clips) as well as a rigid
   // view angle, aspect ratio, near and far clips) as well as a rigid
-  // tranformation *of the camera as if it were also a scene object*. Thus, the
+  // transformation *of the camera as if it were also a scene object*. Thus, the
   // **inverse** of this rigid transformation is the modelview transformation.
   // **inverse** of this rigid transformation is the modelview transformation.
   class Camera
   class Camera
   {
   {

+ 1 - 1
include/igl/REDRUM.h

@@ -13,7 +13,7 @@
 // A: I guess the right way is to not use a macro but a proper function with
 // A: I guess the right way is to not use a macro but a proper function with
 // streams as input and output.
 // streams as input and output.
 
 
-// ANSI color codes for formating iostream style output
+// ANSI color codes for formatting iostream style output
 
 
 #ifdef IGL_REDRUM_NOOP
 #ifdef IGL_REDRUM_NOOP
 
 

+ 1 - 1
include/igl/SortableRow.h

@@ -15,7 +15,7 @@
 namespace igl
 namespace igl
 {
 {
   // Templates:
   // Templates:
-  //   T  should be a matrix that implments .size(), and operator(int i)
+  //   T  should be a matrix that implements .size(), and operator(int i)
   template <typename T>
   template <typename T>
   class SortableRow
   class SortableRow
   {
   {

+ 3 - 3
include/igl/WindingNumberTree.h

@@ -52,7 +52,7 @@ namespace igl
       MatrixXS SV;
       MatrixXS SV;
       // Facets in this bounding volume
       // Facets in this bounding volume
       MatrixXF F;
       MatrixXF F;
-      // Tesselated boundary curve
+      // Tessellated boundary curve
       MatrixXF cap;
       MatrixXF cap;
       // Upper Bound on radius of enclosing ball
       // Upper Bound on radius of enclosing ball
       typename DerivedV::Scalar radius;
       typename DerivedV::Scalar radius;
@@ -97,7 +97,7 @@ namespace igl
       // Same as above, but always computes winding number using exact method
       // Same as above, but always computes winding number using exact method
       // (sum over every facet)
       // (sum over every facet)
       inline typename DerivedV::Scalar winding_number_all(const Point & p) const;
       inline typename DerivedV::Scalar winding_number_all(const Point & p) const;
-      // Same as above, but always computes using sum over tesslated boundary
+      // Same as above, but always computes using sum over tessllated boundary
       inline typename DerivedV::Scalar winding_number_boundary(const Point & p) const;
       inline typename DerivedV::Scalar winding_number_boundary(const Point & p) const;
       //// Same as winding_number above, but if max_simple_abs_winding_number is
       //// Same as winding_number above, but if max_simple_abs_winding_number is
       //// less than some threshold min_max_w just return 0 (colloquially the "fast
       //// less than some threshold min_max_w just return 0 (colloquially the "fast
@@ -493,7 +493,7 @@ igl::WindingNumberTree<Point,DerivedV,DerivedF>::cached_winding_number(
   return 0;
   return 0;
 }
 }
 
 
-// Explicit instanciation of static variable
+// Explicit instantiation of static variable
 template <
 template <
   typename Point,
   typename Point,
   typename DerivedV, 
   typename DerivedV, 

+ 3 - 3
include/igl/arap_dof.cpp

@@ -34,7 +34,7 @@
 // defined if no early exit is supported, i.e., always take a fixed number of iterations
 // defined if no early exit is supported, i.e., always take a fixed number of iterations
 #define IGL_ARAP_DOF_FIXED_ITERATIONS_COUNT
 #define IGL_ARAP_DOF_FIXED_ITERATIONS_COUNT
 
 
-// A carefull derivation of this implementation is given in the corresponding
+// A careful derivation of this implementation is given in the corresponding
 // matlab function arap_dof.m
 // matlab function arap_dof.m
 template <typename LbsMatrixType, typename SSCALAR>
 template <typename LbsMatrixType, typename SSCALAR>
 IGL_INLINE bool igl::arap_dof_precomputation(
 IGL_INLINE bool igl::arap_dof_precomputation(
@@ -339,7 +339,7 @@ namespace igl
   }
   }
   
   
   // converts CSM_M_SSCALAR[0], CSM_M_SSCALAR[1], CSM_M_SSCALAR[2] into one
   // converts CSM_M_SSCALAR[0], CSM_M_SSCALAR[1], CSM_M_SSCALAR[2] into one
-  // "condensed" matrix CSM while checking we're not loosing any information by
+  // "condensed" matrix CSM while checking we're not losing any information by
   // this process; specifically, returns maximal difference from scaled 3x3
   // this process; specifically, returns maximal difference from scaled 3x3
   // identity blocks, which should be pretty small number
   // identity blocks, which should be pretty small number
   template <typename MatrixXS>
   template <typename MatrixXS>
@@ -449,7 +449,7 @@ namespace igl
   }
   }
   
   
   // converts "Solve1" the "rotations" part of FullSolve matrix (the first part)
   // converts "Solve1" the "rotations" part of FullSolve matrix (the first part)
-  // into one "condensed" matrix CSolve1 while checking we're not loosing any
+  // into one "condensed" matrix CSolve1 while checking we're not losing any
   // information by this process; specifically, returns maximal difference from
   // information by this process; specifically, returns maximal difference from
   // scaled 3x3 identity blocks, which should be pretty small number
   // scaled 3x3 identity blocks, which should be pretty small number
   template <typename MatrixXS>
   template <typename MatrixXS>

+ 1 - 1
include/igl/arap_dof.h

@@ -127,7 +127,7 @@ namespace igl
   //   L0  #handles * dim * dim+1 list of initial guess transformation entries,
   //   L0  #handles * dim * dim+1 list of initial guess transformation entries,
   //     also holds fixed transformation entries for fixed handles
   //     also holds fixed transformation entries for fixed handles
   //   max_iters  maximum number of iterations
   //   max_iters  maximum number of iterations
-  //   tol  stopping critera parameter. If variables (linear transformation
+  //   tol  stopping criteria parameter. If variables (linear transformation
   //     matrix entries) change by less than 'tol' the optimization terminates,
   //     matrix entries) change by less than 'tol' the optimization terminates,
   //       0.75 (weak tolerance)
   //       0.75 (weak tolerance)
   //       0.0 (extreme tolerance)
   //       0.0 (extreme tolerance)

+ 1 - 1
include/igl/bbw.h

@@ -49,7 +49,7 @@ namespace igl
   //   Ele  #Elements by simplex-size list of element indices
   //   Ele  #Elements by simplex-size list of element indices
   //   b  #b boundary indices into V
   //   b  #b boundary indices into V
   //   bc #b by #W list of boundary values
   //   bc #b by #W list of boundary values
-  //   data  object containing options, intial guess --> solution and results
+  //   data  object containing options, initial guess --> solution and results
   // Outputs:
   // Outputs:
   //   W  #V by #W list of *unnormalized* weights to normalize use
   //   W  #V by #W list of *unnormalized* weights to normalize use
   //    igl::normalize_row_sums(W,W);
   //    igl::normalize_row_sums(W,W);

+ 4 - 4
include/igl/bijective_composite_harmonic_mapping.h

@@ -29,7 +29,7 @@ namespace igl
   //   bc  #b by 2 list of boundary conditions corresponding to b
   //   bc  #b by 2 list of boundary conditions corresponding to b
   // Outputs:
   // Outputs:
   //   U  #V by 2 list of output mesh vertex locations
   //   U  #V by 2 list of output mesh vertex locations
-  // Returns true if and only if U contains a successfull bijectie mapping
+  // Returns true if and only if U contains a successful bijectie mapping
   //
   //
   // 
   // 
   template <
   template <
@@ -46,12 +46,12 @@ namespace igl
     Eigen::PlainObjectBase<DerivedU> & U);
     Eigen::PlainObjectBase<DerivedU> & U);
   //
   //
   // Inputs:
   // Inputs:
-  //   min_steps  mininum number of steps to take from V(b,:) to bc
-  //   max_steps  mininum number of steps to take from V(b,:) to bc (if
+  //   min_steps  minimum number of steps to take from V(b,:) to bc
+  //   max_steps  minimum number of steps to take from V(b,:) to bc (if
   //     max_steps == min_steps then no further number of steps will be tried)
   //     max_steps == min_steps then no further number of steps will be tried)
   //   num_inner_iters  number of iterations of harmonic solves to run after
   //   num_inner_iters  number of iterations of harmonic solves to run after
   //     for each morph step (to try to push flips back in)
   //     for each morph step (to try to push flips back in)
-  //   test_for_flips  wether to check if flips occured (and trigger more
+  //   test_for_flips  whether to check if flips occurred (and trigger more
   //     steps). if test_for_flips = false then this function always returns
   //     steps). if test_for_flips = false then this function always returns
   //     true
   //     true
   // 
   // 

+ 1 - 1
include/igl/boundary_conditions.cpp

@@ -146,7 +146,7 @@ IGL_INLINE bool igl::boundary_conditions(
     bc(bim[bci[i]],bcj[i]) = bcv[i];
     bc(bim[bci[i]],bcj[i]) = bcv[i];
   }
   }
 
 
-  // Normalize accross rows so that conditions sum to one
+  // Normalize across rows so that conditions sum to one
   for(i = 0;i<bc.rows();i++)
   for(i = 0;i<bc.rows();i++)
   {
   {
     double sum = bc.row(i).sum();
     double sum = bc.row(i).sum();

+ 1 - 1
include/igl/cat.h

@@ -25,7 +25,7 @@ namespace igl
   // Template:
   // Template:
   //   Scalar  scalar data type for sparse matrices like double or int
   //   Scalar  scalar data type for sparse matrices like double or int
   //   Mat  matrix type for all matrices (e.g. MatrixXd, SparseMatrix)
   //   Mat  matrix type for all matrices (e.g. MatrixXd, SparseMatrix)
-  //   MatC  matrix type for ouput matrix (e.g. MatrixXd) needs to support
+  //   MatC  matrix type for output matrix (e.g. MatrixXd) needs to support
   //     resize
   //     resize
   // Inputs:
   // Inputs:
   //   A  first input matrix
   //   A  first input matrix

+ 1 - 1
include/igl/connect_boundary_to_infinity.h

@@ -11,7 +11,7 @@
 #include <Eigen/Core>
 #include <Eigen/Core>
 namespace igl
 namespace igl
 {
 {
-  // Connect all boundary edges to a ficticious point at infinity.
+  // Connect all boundary edges to a fictitious point at infinity.
   //
   //
   // Inputs:
   // Inputs:
   //   F  #F by 3 list of face indices into some V
   //   F  #F by 3 list of face indices into some V

+ 1 - 1
include/igl/copyleft/cgal/SelfIntersectMesh.h

@@ -236,7 +236,7 @@ namespace igl
 // a 2-manifold.
 // a 2-manifold.
 // A: But! It seems we could use CGAL::Triangulation_3. Though it won't be easy
 // A: But! It seems we could use CGAL::Triangulation_3. Though it won't be easy
 // to take advantage of functions like insert_in_facet because we want to
 // to take advantage of functions like insert_in_facet because we want to
-// constrain segments. Hmmm. Actualy Triangulation_3 doesn't look right...
+// constrain segments. Hmmm. Actually Triangulation_3 doesn't look right...
 
 
 // CGAL's box_self_intersection_d uses C-style function callbacks without
 // CGAL's box_self_intersection_d uses C-style function callbacks without
 // userdata. This is a leapfrog method for calling a member function. It should
 // userdata. This is a leapfrog method for calling a member function. It should

+ 1 - 1
include/igl/copyleft/cgal/cell_adjacency.h

@@ -27,7 +27,7 @@ namespace igl
       //   num_cells        number of cells.
       //   num_cells        number of cells.
       //
       //
       // Outputs:
       // Outputs:
-      //   adjacency_list  #C array of list of adjcent cell informations.  If
+      //   adjacency_list  #C array of list of adjcent cell information.  If
       //                   cell i and cell j are adjacent via patch x, where i
       //                   cell i and cell j are adjacent via patch x, where i
       //                   is on the positive side of x, and j is on the
       //                   is on the positive side of x, and j is on the
       //                   negative side.  Then,
       //                   negative side.  Then,

+ 1 - 1
include/igl/copyleft/cgal/closest_facet.cpp

@@ -124,7 +124,7 @@ IGL_INLINE void igl::copyleft::cgal::closest_facet(
       case CGAL::COPLANAR:
       case CGAL::COPLANAR:
         // Warning:
         // Warning:
         // This can only happen if fid contains a boundary edge.
         // This can only happen if fid contains a boundary edge.
-        // Catergorized this ambiguous case as negative side.
+        // Categorized this ambiguous case as negative side.
         return false;
         return false;
       default:
       default:
         throw std::runtime_error("Unknown CGAL state.");
         throw std::runtime_error("Unknown CGAL state.");

+ 2 - 2
include/igl/copyleft/cgal/order_facets_around_edge.h

@@ -31,7 +31,7 @@ namespace igl
       //   V  #V by 3 list of vertices.
       //   V  #V by 3 list of vertices.
       //   F  #F by 3 list of faces
       //   F  #F by 3 list of faces
       //   s  Index of source vertex.
       //   s  Index of source vertex.
-      //   d  Index of desination vertex.
+      //   d  Index of destination vertex.
       //   adj_faces  List of adjacent face signed indices.
       //   adj_faces  List of adjacent face signed indices.
       // Output:
       // Output:
       //   order  List of face indices that orders adjacent faces around edge
       //   order  List of face indices that orders adjacent faces around edge
@@ -50,7 +50,7 @@ namespace igl
           Eigen::PlainObjectBase<DerivedI>& order,
           Eigen::PlainObjectBase<DerivedI>& order,
           bool debug=false);
           bool debug=false);
 
 
-      // This funciton is a wrapper around the one above.  Since the ordering
+      // This function is a wrapper around the one above.  Since the ordering
       // is circular, the pivot point is used to define a starting point.  So
       // is circular, the pivot point is used to define a starting point.  So
       // order[0] is the index into adj_face that is immediately after the
       // order[0] is the index into adj_face that is immediately after the
       // pivot face (s, d, pivot point) in clockwise order.
       // pivot face (s, d, pivot point) in clockwise order.

+ 1 - 1
include/igl/copyleft/cgal/outer_facet.h

@@ -26,7 +26,7 @@ namespace igl
         // See cgal::remesh_self_intersections.h for how to obtain such input.
         // See cgal::remesh_self_intersections.h for how to obtain such input.
         //
         //
         // This function differ from igl::outer_facet() in the fact this
         // This function differ from igl::outer_facet() in the fact this
-        // funciton is more robust because it does not rely on facet normals.
+        // function is more robust because it does not rely on facet normals.
         //
         //
         // Inputs:
         // Inputs:
         //   V  #V by 3 list of vertex positions
         //   V  #V by 3 list of vertex positions

+ 1 - 1
include/igl/copyleft/cgal/point_mesh_squared_distance.cpp

@@ -81,7 +81,7 @@ IGL_INLINE void igl::copyleft::cgal::point_mesh_squared_distance_precompute(
   // accelerate_distance_queries doesn't seem actually to do _all_ of the
   // accelerate_distance_queries doesn't seem actually to do _all_ of the
   // precomputation. the tree (despite being const) will still do more
   // precomputation. the tree (despite being const) will still do more
   // precomputation and reorganizing on the first call of `closest_point` or
   // precomputation and reorganizing on the first call of `closest_point` or
-  // `closest_point_and_primitive`. Therefor, call it once here.
+  // `closest_point_and_primitive`. Therefore, call it once here.
   tree.closest_point_and_primitive(Point_3(0,0,0));
   tree.closest_point_and_primitive(Point_3(0,0,0));
 }
 }
 
 

+ 1 - 1
include/igl/copyleft/cgal/points_inside_component.cpp

@@ -321,7 +321,7 @@ IGL_INLINE void igl::copyleft::cgal::points_inside_component(
                 inside(i,0) = determine_point_face_orientation(V, F, I, query, fid);
                 inside(i,0) = determine_point_face_orientation(V, F, I, query, fid);
                 break;
                 break;
             default:
             default:
-                throw "Unknow closest element type!";
+                throw "Unknown closest element type!";
         }
         }
     }
     }
 }
 }

+ 1 - 1
include/igl/copyleft/cgal/remesh_intersections.cpp

@@ -449,7 +449,7 @@ IGL_INLINE void igl::copyleft::cgal::remesh_intersections(
           FF.data(), [&vv_to_unique](const typename DerivedFF::Scalar& a)
           FF.data(), [&vv_to_unique](const typename DerivedFF::Scalar& a)
           { return vv_to_unique[a]; });
           { return vv_to_unique[a]; });
       IM.resize(unique_vv.rows());
       IM.resize(unique_vv.rows());
-      // Have to use << instead of = becasue Eigen's PlainObjectBase is annoying
+      // Have to use << instead of = because Eigen's PlainObjectBase is annoying
       IM << igl::LinSpaced<
       IM << igl::LinSpaced<
         Eigen::Matrix<typename DerivedIM::Scalar, Eigen::Dynamic,1 >
         Eigen::Matrix<typename DerivedIM::Scalar, Eigen::Dynamic,1 >
         >(unique_vv.rows(), 0, unique_vv.rows()-1);
         >(unique_vv.rows(), 0, unique_vv.rows()-1);

+ 1 - 1
include/igl/copyleft/cgal/remesh_intersections.h

@@ -30,7 +30,7 @@ namespace igl
       //   offending #offending map taking face indices into F to pairs of order
       //   offending #offending map taking face indices into F to pairs of order
       //     of first finding and list of intersection objects from all
       //     of first finding and list of intersection objects from all
       //     intersections
       //     intersections
-      //   stitch_all  if true, merge all vertices with thte same coordiante.
+      //   stitch_all  if true, merge all vertices with the same coordinate.
       // Outputs:
       // Outputs:
       //   VV  #VV by 3 list of vertex positions, if stitch_all = false then
       //   VV  #VV by 3 list of vertex positions, if stitch_all = false then
       //     first #V vertices will always be V
       //     first #V vertices will always be V

+ 1 - 1
include/igl/copyleft/cgal/trim_with_solid.cpp

@@ -56,7 +56,7 @@ IGL_INLINE void igl::copyleft::cgal::trim_with_solid(
   igl::slice_mask(Eigen::MatrixXi(F),A,1,F);
   igl::slice_mask(Eigen::MatrixXi(F),A,1,F);
   igl::slice_mask(Eigen::VectorXi(P),A,1,P);
   igl::slice_mask(Eigen::VectorXi(P),A,1,P);
   igl::slice_mask(Eigen::VectorXi(J),A,1,J);
   igl::slice_mask(Eigen::VectorXi(J),A,1,J);
-  // Agregate representative query points for each patch
+  // Aggregate representative query points for each patch
   std::vector<bool> flag(num_patches);
   std::vector<bool> flag(num_patches);
   std::vector<std::vector<CGAL::Epeck::FT> > vQ;
   std::vector<std::vector<CGAL::Epeck::FT> > vQ;
   Eigen::VectorXi P2Q(num_patches);
   Eigen::VectorXi P2Q(num_patches);

+ 1 - 1
include/igl/copyleft/comiso/miq.h

@@ -43,7 +43,7 @@ namespace igl
     //   UV             #UV by 2 list of vertices in 2D
     //   UV             #UV by 2 list of vertices in 2D
     //   FUV            #FUV by 3 list of face indices in UV
     //   FUV            #FUV by 3 list of face indices in UV
     //
     //
-    // TODO: rename the parameters name in the cpp consistenly
+    // TODO: rename the parameters name in the cpp consistently
     //       improve the handling of hard_features, right now it might fail in difficult cases
     //       improve the handling of hard_features, right now it might fail in difficult cases
 
 
     template <typename DerivedV, typename DerivedF, typename DerivedU>
     template <typename DerivedV, typename DerivedF, typename DerivedU>

+ 1 - 1
include/igl/copyleft/comiso/nrosy.h

@@ -32,7 +32,7 @@ namespace igl
     //   w_soft  #S by 1 weight for the soft constraints (0-1)
     //   w_soft  #S by 1 weight for the soft constraints (0-1)
     //   bc_soft #S by 3 bc for soft constraints
     //   bc_soft #S by 3 bc for soft constraints
     //   N       the degree of the N-RoSy vector field
     //   N       the degree of the N-RoSy vector field
-    //   soft    the strenght of the soft contraints w.r.t. smoothness
+    //   soft    the strength of the soft constraints w.r.t. smoothness
     //           (0 -> smoothness only, 1->constraints only)
     //           (0 -> smoothness only, 1->constraints only)
     // Outputs:
     // Outputs:
     //   R       #F by 3 the representative vectors of the interpolated field
     //   R       #F by 3 the representative vectors of the interpolated field

+ 1 - 1
include/igl/copyleft/offset_surface.h

@@ -8,7 +8,7 @@ namespace igl
 {
 {
   namespace copyleft
   namespace copyleft
   {
   {
-    // Compute a triangulated offset surface using maching cubes on a gride of
+    // Compute a triangulated offset surface using matching cubes on a grid of
     // signed distance values from the input triangle mesh.
     // signed distance values from the input triangle mesh.
     //
     //
     // Inputs:
     // Inputs:

+ 1 - 1
include/igl/copyleft/opengl2/render_to_tga.h

@@ -20,7 +20,7 @@ namespace igl
     //   width  width of scene and resulting image
     //   width  width of scene and resulting image
     //   height height of scene and resulting image
     //   height height of scene and resulting image
     ///  alpha  whether to include alpha channel
     ///  alpha  whether to include alpha channel
-    // Returns true only if no errors occured
+    // Returns true only if no errors occurred
     //
     //
     // See also: png/render_to_png which is slower but writes .png files
     // See also: png/render_to_png which is slower but writes .png files
     IGL_INLINE bool render_to_tga(
     IGL_INLINE bool render_to_tga(

+ 1 - 1
include/igl/copyleft/tetgen/cdt.h

@@ -34,7 +34,7 @@ namespace igl
         // Flags to tetgen. Do not include the "c" flag here! {"Y"}
         // Flags to tetgen. Do not include the "c" flag here! {"Y"}
         std::string flags = "Y";
         std::string flags = "Y";
       };
       };
-      // Create a constrained delaunay tesselation containing convex hull of the
+      // Create a constrained delaunay tessellation containing convex hull of the
       // given **non-selfintersecting** mesh.
       // given **non-selfintersecting** mesh.
       //
       //
       // Inputs:
       // Inputs:

+ 2 - 2
include/igl/copyleft/tetgen/read_into_tetgenio.h

@@ -30,8 +30,8 @@ namespace igl
       //   .medit
       //   .medit
       //   .vtk
       //   .vtk
       //   etc.
       //   etc.
-      // Noteably it does not support .obj which is loaded by hand here (also
-      // demonstrating how to load points/faces programatically)
+      // Notably it does not support .obj which is loaded by hand here (also
+      // demonstrating how to load points/faces programmatically)
       //
       //
       // If the file extension is not recognized the filename is assumed to be
       // If the file extension is not recognized the filename is assumed to be
       // the basename of a collection describe a tetmesh, (of which at least
       // the basename of a collection describe a tetmesh, (of which at least

+ 1 - 1
include/igl/cotmatrix.h

@@ -16,7 +16,7 @@
 //  Used const references rather than copying the entire mesh 
 //  Used const references rather than copying the entire mesh 
 //    Alec 9 October 2011
 //    Alec 9 October 2011
 //  removed cotan (uniform weights) optional parameter it was building a buggy
 //  removed cotan (uniform weights) optional parameter it was building a buggy
-//    half of the uniform laplacian, please see adjacency_matrix istead 
+//    half of the uniform laplacian, please see adjacency_matrix instead 
 //    Alec 9 October 2011
 //    Alec 9 October 2011
 
 
 namespace igl 
 namespace igl 

+ 2 - 2
include/igl/cotmatrix_entries.cpp

@@ -35,10 +35,10 @@ IGL_INLINE void igl::cotmatrix_entries(
     case 3:
     case 3:
     {
     {
       // Triangles
       // Triangles
-      //Compute Squared Edge lenghts 
+      //Compute Squared Edge lengths 
       Matrix<typename DerivedC::Scalar,Dynamic,3> l2;
       Matrix<typename DerivedC::Scalar,Dynamic,3> l2;
       igl::squared_edge_lengths(V,F,l2);
       igl::squared_edge_lengths(V,F,l2);
-      //Compute Edge lenghts 
+      //Compute Edge lengths 
       Matrix<typename DerivedC::Scalar,Dynamic,3> l;
       Matrix<typename DerivedC::Scalar,Dynamic,3> l;
       l = l2.array().sqrt();
       l = l2.array().sqrt();
       
       

+ 1 - 1
include/igl/crouzeix_raviart_cotmatrix.cpp

@@ -19,7 +19,7 @@ void igl::crouzeix_raviart_cotmatrix(
   Eigen::PlainObjectBase<DerivedE> & E,
   Eigen::PlainObjectBase<DerivedE> & E,
   Eigen::PlainObjectBase<DerivedEMAP> & EMAP)
   Eigen::PlainObjectBase<DerivedEMAP> & EMAP)
 {
 {
-  // All occurances of directed "facets"
+  // All occurrences of directed "facets"
   Eigen::MatrixXi allE;
   Eigen::MatrixXi allE;
   oriented_facets(F,allE);
   oriented_facets(F,allE);
   Eigen::VectorXi _1;
   Eigen::VectorXi _1;

+ 1 - 1
include/igl/crouzeix_raviart_massmatrix.cpp

@@ -24,7 +24,7 @@ void igl::crouzeix_raviart_massmatrix(
     Eigen::PlainObjectBase<DerivedE> & E,
     Eigen::PlainObjectBase<DerivedE> & E,
     Eigen::PlainObjectBase<DerivedEMAP> & EMAP)
     Eigen::PlainObjectBase<DerivedEMAP> & EMAP)
 {
 {
-  // All occurances of directed "facets"
+  // All occurrences of directed "facets"
   Eigen::MatrixXi allE;
   Eigen::MatrixXi allE;
   oriented_facets(F,allE);
   oriented_facets(F,allE);
   Eigen::VectorXi _1;
   Eigen::VectorXi _1;

+ 3 - 3
include/igl/cut_mesh.cpp

@@ -70,11 +70,11 @@ namespace igl {
     IGL_INLINE void FindInitialPos(const int vert, int &edge, int &face);
     IGL_INLINE void FindInitialPos(const int vert, int &edge, int &face);
 
 
 
 
-    // intialize the mapping given an initial pos
+    // initialize the mapping given an initial pos
     // whih must be initialized with FindInitialPos
     // whih must be initialized with FindInitialPos
     IGL_INLINE void MapIndexes(const int  vert, const int edge_init, const int f_init);
     IGL_INLINE void MapIndexes(const int  vert, const int edge_init, const int f_init);
 
 
-    // intialize the mapping for a given vertex
+    // initialize the mapping for a given vertex
     IGL_INLINE void InitMappingSeam(const int vert);
     IGL_INLINE void InitMappingSeam(const int vert);
 
 
   };
   };
@@ -187,7 +187,7 @@ FindInitialPos(const int vert,
 
 
 
 
 
 
-///intialize the mapping given an initial pos
+///initialize the mapping given an initial pos
 ///whih must be initialized with FindInitialPos
 ///whih must be initialized with FindInitialPos
 template <typename DerivedV, typename DerivedF, typename VFType, typename DerivedTT, typename DerivedC>
 template <typename DerivedV, typename DerivedF, typename VFType, typename DerivedTT, typename DerivedC>
 IGL_INLINE void igl::MeshCutterMini<DerivedV, DerivedF, VFType, DerivedTT, DerivedC>::
 IGL_INLINE void igl::MeshCutterMini<DerivedV, DerivedF, VFType, DerivedTT, DerivedC>::

+ 1 - 1
include/igl/directed_edge_parents.h

@@ -13,7 +13,7 @@
 
 
 namespace igl
 namespace igl
 {
 {
-  // Recover "parents" (preceeding edges) in a tree given just directed edges.
+  // Recover "parents" (preceding edges) in a tree given just directed edges.
   //
   //
   // Inputs:
   // Inputs:
   //   E  #E by 2 list of directed edges
   //   E  #E by 2 list of directed edges

+ 4 - 4
include/igl/embree/EmbreeIntersector.h

@@ -209,7 +209,7 @@ inline void igl::embree::EmbreeIntersector::global_init()
   {
   {
     rtcInit();
     rtcInit();
     if(rtcGetError() != RTC_NO_ERROR)
     if(rtcGetError() != RTC_NO_ERROR)
-      std::cerr << "Embree: An error occured while initialiting embree core!" << std::endl;
+      std::cerr << "Embree: An error occurred while initializing embree core!" << std::endl;
 #ifdef IGL_VERBOSE
 #ifdef IGL_VERBOSE
     else
     else
       std::cerr << "Embree: core initialized." << std::endl;
       std::cerr << "Embree: core initialized." << std::endl;
@@ -324,7 +324,7 @@ inline void igl::embree::EmbreeIntersector::init(
   rtcCommit(scene);
   rtcCommit(scene);
 
 
   if(rtcGetError() != RTC_NO_ERROR)
   if(rtcGetError() != RTC_NO_ERROR)
-      std::cerr << "Embree: An error occured while initializing the provided geometry!" << endl;
+      std::cerr << "Embree: An error occurred while initializing the provided geometry!" << endl;
 #ifdef IGL_VERBOSE
 #ifdef IGL_VERBOSE
   else
   else
     std::cerr << "Embree: geometry added." << endl;
     std::cerr << "Embree: geometry added." << endl;
@@ -348,7 +348,7 @@ void igl::embree::EmbreeIntersector::deinit()
 
 
     if(rtcGetError() != RTC_NO_ERROR)
     if(rtcGetError() != RTC_NO_ERROR)
     {
     {
-        std::cerr << "Embree: An error occured while resetting!" << std::endl;
+        std::cerr << "Embree: An error occurred while resetting!" << std::endl;
     }
     }
 #ifdef IGL_VERBOSE
 #ifdef IGL_VERBOSE
     else
     else
@@ -374,7 +374,7 @@ inline bool igl::embree::EmbreeIntersector::intersectRay(
   rtcIntersect(scene,ray);
   rtcIntersect(scene,ray);
 #ifdef IGL_VERBOSE
 #ifdef IGL_VERBOSE
   if(rtcGetError() != RTC_NO_ERROR)
   if(rtcGetError() != RTC_NO_ERROR)
-      std::cerr << "Embree: An error occured while resetting!" << std::endl;
+      std::cerr << "Embree: An error occurred while resetting!" << std::endl;
 #endif
 #endif
 
 
   if((unsigned)ray.geomID != RTC_INVALID_GEOMETRY_ID)
   if((unsigned)ray.geomID != RTC_INVALID_GEOMETRY_ID)

+ 1 - 1
include/igl/exterior_edges.cpp

@@ -67,7 +67,7 @@ IGL_INLINE void igl::exterior_edges(
   {
   {
     int e = 0;
     int e = 0;
     const size_t nue = uE.rows();
     const size_t nue = uE.rows();
-    // Append each unique edge with a non-zero amount of signed occurances
+    // Append each unique edge with a non-zero amount of signed occurrences
     for(size_t ue = 0; ue<nue; ue++)
     for(size_t ue = 0; ue<nue; ue++)
     {
     {
       const int count = counts(ue);
       const int count = counts(ue);

+ 1 - 1
include/igl/exterior_edges.h

@@ -12,7 +12,7 @@
 namespace igl
 namespace igl
 {
 {
   // EXTERIOR_EDGES Determines boundary "edges" and also edges with an
   // EXTERIOR_EDGES Determines boundary "edges" and also edges with an
-  // odd number of occurances where seeing edge (i,j) counts as +1 and seeing
+  // odd number of occurrences where seeing edge (i,j) counts as +1 and seeing
   // the opposite edge (j,i) counts as -1
   // the opposite edge (j,i) counts as -1
   //
   //
   // Inputs:
   // Inputs:

+ 2 - 2
include/igl/facet_components.h

@@ -16,7 +16,7 @@ namespace igl
   //
   //
   // Inputs:
   // Inputs:
   //   F  #F by 3 list of triangle indices
   //   F  #F by 3 list of triangle indices
-  // Ouputs:
+  // Outputs:
   //   C  #F list of connected component ids
   //   C  #F list of connected component ids
   template <typename DerivedF, typename DerivedC>
   template <typename DerivedF, typename DerivedC>
   IGL_INLINE void facet_components(
   IGL_INLINE void facet_components(
@@ -25,7 +25,7 @@ namespace igl
   // Inputs:
   // Inputs:
   //   TT  #TT by 3 list of list of adjacency triangles (see
   //   TT  #TT by 3 list of list of adjacency triangles (see
   //   triangle_triangle_adjacency.h)
   //   triangle_triangle_adjacency.h)
-  // Ouputs:
+  // Outputs:
   //   C  #F list of connected component ids
   //   C  #F list of connected component ids
   //   counts #C list of number of facets in each components
   //   counts #C list of number of facets in each components
   template <
   template <

+ 1 - 1
include/igl/hausdorff.h

@@ -59,7 +59,7 @@ namespace igl
   //   V   3 by 3 list of corner positions so that V.row(i) is the position of the
   //   V   3 by 3 list of corner positions so that V.row(i) is the position of the
   //     ith corner
   //     ith corner
   //   dist_to_B  function taking the x,y,z coordinate of a query position and
   //   dist_to_B  function taking the x,y,z coordinate of a query position and
-  //     outputing the closest-point distance to some point-set B
+  //     outputting the closest-point distance to some point-set B
   // Outputs:
   // Outputs:
   //   l  lower bound on Hausdorff distance 
   //   l  lower bound on Hausdorff distance 
   //   u  upper bound on Hausdorff distance
   //   u  upper bound on Hausdorff distance

+ 1 - 1
include/igl/histc.h

@@ -13,7 +13,7 @@
 
 
 namespace igl
 namespace igl
 {
 {
-  // Like matlab's histc. Count occurances of values in X between consecutive
+  // Like matlab's histc. Count occurrences of values in X between consecutive
   // entries in E
   // entries in E
   //
   //
   // Inputs:
   // Inputs:

+ 2 - 2
include/igl/integrable_polyvector_fields.h

@@ -15,7 +15,7 @@
 
 
 namespace igl {
 namespace igl {
   // Compute a curl-free frame field from user constraints, optionally starting
   // Compute a curl-free frame field from user constraints, optionally starting
-  // from a gived frame field (assumed to be interpolating the constraints).
+  // from a given frame field (assumed to be interpolating the constraints).
   // Implementation of the paper "Integrable PolyVector Fields", SIGGRAPH 2015.
   // Implementation of the paper "Integrable PolyVector Fields", SIGGRAPH 2015.
 
 
   // Set of parameters used during solve
   // Set of parameters used during solve
@@ -51,7 +51,7 @@ namespace igl {
                                                     igl::IntegrableFieldSolverData<DerivedV, DerivedF, DerivedFF, DerivedC> &data);
                                                     igl::IntegrableFieldSolverData<DerivedV, DerivedF, DerivedFF, DerivedC> &data);
 
 
 
 
-  // Given the current estimate of the field, performes one round of optimization
+  // Given the current estimate of the field, performs one round of optimization
   // iterations and updates the current estimate. The intermediate data is saved
   // iterations and updates the current estimate. The intermediate data is saved
   // and returned for the next iteration.
   // and returned for the next iteration.
   // Inputs:
   // Inputs:

+ 4 - 4
include/igl/is_boundary_edge.cpp

@@ -47,14 +47,14 @@ void igl::is_boundary_edge(
   MatrixXi uE;
   MatrixXi uE;
   VectorXi EMAP;
   VectorXi EMAP;
   unique_rows(sorted_EallE,uE,_,EMAP);
   unique_rows(sorted_EallE,uE,_,EMAP);
-  // Counts of occurances
+  // Counts of occurrences
   VectorXi N = VectorXi::Zero(uE.rows());
   VectorXi N = VectorXi::Zero(uE.rows());
   for(int e = 0;e<EMAP.rows();e++)
   for(int e = 0;e<EMAP.rows();e++)
   {
   {
     N(EMAP(e))++;
     N(EMAP(e))++;
   }
   }
   B.resize(E.rows());
   B.resize(E.rows());
-  // Look of occurances of 2: one for original and another for boundary
+  // Look of occurrences of 2: one for original and another for boundary
   for(int e = 0;e<E.rows();e++)
   for(int e = 0;e<E.rows();e++)
   {
   {
     B(e) = (N(EMAP(e)) == 2);
     B(e) = (N(EMAP(e)) == 2);
@@ -97,14 +97,14 @@ void igl::is_boundary_edge(
   sort(allE,2,true,sorted_allE,_);
   sort(allE,2,true,sorted_allE,_);
   // Determine unique undirected edges E and map to directed edges EMAP
   // Determine unique undirected edges E and map to directed edges EMAP
   unique_rows(sorted_allE,E,_,EMAP);
   unique_rows(sorted_allE,E,_,EMAP);
-  // Counts of occurances
+  // Counts of occurrences
   VectorXi N = VectorXi::Zero(E.rows());
   VectorXi N = VectorXi::Zero(E.rows());
   for(int e = 0;e<EMAP.rows();e++)
   for(int e = 0;e<EMAP.rows();e++)
   {
   {
     N(EMAP(e))++;
     N(EMAP(e))++;
   }
   }
   B.resize(E.rows());
   B.resize(E.rows());
-  // Look of occurances of 1
+  // Look of occurrences of 1
   for(int e = 0;e<E.rows();e++)
   for(int e = 0;e<E.rows();e++)
   {
   {
     B(e) = N(e) == 1;
     B(e) = N(e) == 1;

+ 1 - 1
include/igl/is_planar.h

@@ -13,7 +13,7 @@
 
 
 namespace igl
 namespace igl
 {
 {
-  // Determin if a set of points lies on the XY plane
+  // Determine if a set of points lies on the XY plane
   //
   //
   // Inputs:
   // Inputs:
   //   V  #V by dim list of vertex positions
   //   V  #V by dim list of vertex positions

+ 1 - 1
include/igl/lim/lim.h

@@ -59,7 +59,7 @@ namespace igl
     //--------------------------------------------------------------------------
     //--------------------------------------------------------------------------
     // Return values:
     // Return values:
     //  Succeeded : Successful optimization with fulfilled tolerance
     //  Succeeded : Successful optimization with fulfilled tolerance
-    //  LocalMinima : Convergenged to a local minima / tolerance not fullfilled
+    //  LocalMinima : Convergenged to a local minima / tolerance not fulfilled
     //  IterationLimit : Max iteration reached before tolerance was fulfilled
     //  IterationLimit : Max iteration reached before tolerance was fulfilled
     //  Infeasible : not feasible -> has inverted elements (decrease eps?)
     //  Infeasible : not feasible -> has inverted elements (decrease eps?)
   
   

+ 2 - 2
include/igl/matlab/validate_arg.h

@@ -16,9 +16,9 @@ namespace igl
     // Throw an error if arg i+1 is not a scalar
     // Throw an error if arg i+1 is not a scalar
     //
     //
     // Inputs:
     // Inputs:
-    //   i  index of current arguement
+    //   i  index of current argument
     //   nrhs  total number of arguments
     //   nrhs  total number of arguments
-    //   prhs  pointer to arguements array
+    //   prhs  pointer to arguments array
     //   name   name of current argument
     //   name   name of current argument
     IGL_INLINE void validate_arg_scalar(
     IGL_INLINE void validate_arg_scalar(
       const int i, const int nrhs, const mxArray * prhs[], const char * name);
       const int i, const int nrhs, const mxArray * prhs[], const char * name);

+ 3 - 3
include/igl/matlab_format.h

@@ -22,9 +22,9 @@ namespace igl
   // Templates:
   // Templates:
   //   DerivedM  e.g. derived from MatrixXd
   //   DerivedM  e.g. derived from MatrixXd
   // Input:
   // Input:
-  //   input  some matrix to be formated
+  //   input  some matrix to be formatted
   //   name  name of matrix
   //   name  name of matrix
-  // Returns  Formated matrix
+  // Returns  Formatted matrix
   //
   //
   // Example:
   // Example:
   // // M := [1 2 3;4 5 6];
   // // M := [1 2 3;4 5 6];
@@ -44,7 +44,7 @@ namespace igl
   IGL_INLINE const Eigen::WithFormat< DerivedM > matlab_format(
   IGL_INLINE const Eigen::WithFormat< DerivedM > matlab_format(
     const Eigen::DenseBase<DerivedM> & M,
     const Eigen::DenseBase<DerivedM> & M,
     const std::string name = "");
     const std::string name = "");
-  // Same but for sparse matrices. Print IJV format into an auxillary variable
+  // Same but for sparse matrices. Print IJV format into an auxiliary variable
   // and then print a call to sparse which will construct the sparse matrix
   // and then print a call to sparse which will construct the sparse matrix
   // Example:
   // Example:
   // // S := [0 2 3;4 5 0];
   // // S := [0 2 3;4 5 0];

+ 1 - 1
include/igl/min_quad_with_fixed.cpp

@@ -204,7 +204,7 @@ IGL_INLINE bool igl::min_quad_with_fixed_precompute(
       data.preY.resize(data.unknown_lagrange.size(),0);
       data.preY.resize(data.unknown_lagrange.size(),0);
     }
     }
 
 
-    // Positive definite and no equality constraints (Postive definiteness
+    // Positive definite and no equality constraints (Positive definiteness
     // implies symmetric)
     // implies symmetric)
 #ifdef MIN_QUAD_WITH_FIXED_CPP_DEBUG
 #ifdef MIN_QUAD_WITH_FIXED_CPP_DEBUG
     cout<<"    factorize"<<endl;
     cout<<"    factorize"<<endl;

+ 1 - 1
include/igl/mosek/bbw.h

@@ -30,7 +30,7 @@ namespace igl
     //   Ele  #Elements by simplex-size list of element indices
     //   Ele  #Elements by simplex-size list of element indices
     //   b  #b boundary indices into V
     //   b  #b boundary indices into V
     //   bc #b by #W list of boundary values
     //   bc #b by #W list of boundary values
-    //   data  object containing options, intial guess --> solution and results
+    //   data  object containing options, initial guess --> solution and results
     //   mosek_data  object containing mosek options
     //   mosek_data  object containing mosek options
     // Outputs:
     // Outputs:
     //   W  #V by #W list of *unnormalized* weights to normalize use
     //   W  #V by #W list of *unnormalized* weights to normalize use

+ 2 - 2
include/igl/mosek/mosek_quadprog.cpp

@@ -31,7 +31,7 @@ igl::mosek::MosekData::MosekData()
 #if MSK_VERSION_MAJOR >= 8
 #if MSK_VERSION_MAJOR >= 8
   douparam[MSK_DPAR_INTPNT_QO_TOL_REL_GAP]=1e-12;
   douparam[MSK_DPAR_INTPNT_QO_TOL_REL_GAP]=1e-12;
 #endif
 #endif
-  // Force using multiple threads, not sure if MOSEK is properly destorying
+  // Force using multiple threads, not sure if MOSEK is properly destroying
   //extra threads...
   //extra threads...
 #if MSK_VERSION_MAJOR >= 7
 #if MSK_VERSION_MAJOR >= 7
   intparam[MSK_IPAR_NUM_THREADS] = 6;
   intparam[MSK_IPAR_NUM_THREADS] = 6;
@@ -53,7 +53,7 @@ igl::mosek::MosekData::MosekData()
   //   choose the right ordering method when really any of them are
   //   choose the right ordering method when really any of them are
   //   instantaneous
   //   instantaneous
   intparam[MSK_IPAR_INTPNT_ORDER_METHOD] = MSK_ORDER_METHOD_NONE;
   intparam[MSK_IPAR_INTPNT_ORDER_METHOD] = MSK_ORDER_METHOD_NONE;
-  // 1.0 means optimizer is very leniant about declaring model infeasible
+  // 1.0 means optimizer is very lenient about declaring model infeasible
   douparam[MSK_DPAR_INTPNT_TOL_INFEAS] = 1e-8;
   douparam[MSK_DPAR_INTPNT_TOL_INFEAS] = 1e-8;
   // Hard to say if this is doing anything, probably nothing dramatic
   // Hard to say if this is doing anything, probably nothing dramatic
   douparam[MSK_DPAR_INTPNT_TOL_PSAFE]= 1e2;
   douparam[MSK_DPAR_INTPNT_TOL_PSAFE]= 1e2;

+ 1 - 1
include/igl/opengl/glfw/background_window.cpp

@@ -25,7 +25,7 @@ IGL_INLINE bool igl::opengl::glfw::background_window(GLFWwindow* & window)
       /* Problem: glewInit failed, something is seriously wrong. */
       /* Problem: glewInit failed, something is seriously wrong. */
      fprintf(stderr, "Error: %s\n", glewGetErrorString(err));
      fprintf(stderr, "Error: %s\n", glewGetErrorString(err));
     }
     }
-    glGetError(); // pull and savely ignonre unhandled errors like GL_INVALID_ENUM
+    glGetError(); // pull and safely ignore unhandled errors like GL_INVALID_ENUM
   #endif
   #endif
   return true;
   return true;
 }
 }

+ 2 - 2
include/igl/opengl2/MouseController.h

@@ -24,7 +24,7 @@ namespace igl
     {
     {
       public:
       public:
         typedef Eigen::VectorXi VectorXb;
         typedef Eigen::VectorXi VectorXb;
-        // Propogate selection to descendants so that selected bones and their
+        // Propagate selection to descendants so that selected bones and their
         // subtrees are all selected.
         // subtrees are all selected.
         //
         //
         // Input:
         // Input:
@@ -495,7 +495,7 @@ inline void igl::opengl2::MouseController::set_selection(
   // Combine upward, group rigid parts, repeat
   // Combine upward, group rigid parts, repeat
   while(true)
   while(true)
   {
   {
-    // Spread selection accross rigid pieces
+    // Spread selection across rigid pieces
     VectorXb SRP(VectorXb::Zero(RP.maxCoeff()+1));
     VectorXb SRP(VectorXb::Zero(RP.maxCoeff()+1));
     for(int e = 0;e<BE.rows();e++)
     for(int e = 0;e<BE.rows();e++)
     {
     {

+ 1 - 1
include/igl/opengl2/lens_flare.cpp

@@ -115,7 +115,7 @@ IGL_INLINE void igl::opengl2::lens_flare_draw(
   using namespace Eigen;
   using namespace Eigen;
   using namespace std;
   using namespace std;
 
 
-  //// view_dir  direction from eye to position is is looking at
+  //// view_dir  direction from eye to position it is looking at
   //const Vector3f view_dir =  (at - from).normalized();
   //const Vector3f view_dir =  (at - from).normalized();
 
 
   //// near_clip  distance from eye to near clipping plane along view_dir
   //// near_clip  distance from eye to near clipping plane along view_dir

+ 1 - 1
include/igl/opengl2/lens_flare.h

@@ -21,7 +21,7 @@ namespace igl
     struct Flare{
     struct Flare{
       int type;             /* flare texture index, 0..5 */
       int type;             /* flare texture index, 0..5 */
       float scale;
       float scale;
-      float loc;            /* postion on axis */
+      float loc;            /* position on axis */
       float color[3];
       float color[3];
       Flare():
       Flare():
         type(-1),
         type(-1),

+ 1 - 1
include/igl/opengl2/unproject_to_zero_plane.h

@@ -14,7 +14,7 @@ namespace igl
   namespace opengl2
   namespace opengl2
   {
   {
   // Wrapper for gluUnproject that uses the current GL_MODELVIEW_MATRIX,
   // Wrapper for gluUnproject that uses the current GL_MODELVIEW_MATRIX,
-    // GL_PROJECTION_MATRIX, and GL_VIEWPORT to unproject a screen postion
+    // GL_PROJECTION_MATRIX, and GL_VIEWPORT to unproject a screen position
     // (winX,winY) to a 3d location at same depth as the current origin.
     // (winX,winY) to a 3d location at same depth as the current origin.
     // Inputs:
     // Inputs:
     //   win*  screen space x, y, and z coordinates respectively
     //   win*  screen space x, y, and z coordinates respectively

+ 2 - 2
include/igl/parallel_for.h

@@ -31,7 +31,7 @@ namespace igl
   //
   //
   // Inputs:
   // Inputs:
   //   loop_size  number of iterations. I.e. for(int i = 0;i<loop_size;i++) ...
   //   loop_size  number of iterations. I.e. for(int i = 0;i<loop_size;i++) ...
-  //   func  function handle taking iteration index as only arguement to compute
+  //   func  function handle taking iteration index as only argument to compute
   //     inner block of for loop I.e. for(int i ...){ func(i); }
   //     inner block of for loop I.e. for(int i ...){ func(i); }
   //   min_parallel  min size of loop_size such that parallel (non-serial)
   //   min_parallel  min size of loop_size such that parallel (non-serial)
   //     thread pooling should be attempted {0}
   //     thread pooling should be attempted {0}
@@ -65,7 +65,7 @@ namespace igl
   //   prep_func function handle taking n >= number of threads as only
   //   prep_func function handle taking n >= number of threads as only
   //     argument 
   //     argument 
   //   func  function handle taking iteration index i and thread id t as only
   //   func  function handle taking iteration index i and thread id t as only
-  //     arguements to compute inner block of for loop I.e. 
+  //     arguments to compute inner block of for loop I.e. 
   //     for(int i ...){ func(i,t); }
   //     for(int i ...){ func(i,t); }
   //   accum_func  function handle taking thread index as only argument, to be
   //   accum_func  function handle taking thread index as only argument, to be
   //     called after all calls of func, e.g., for serial accumulation across
   //     called after all calls of func, e.g., for serial accumulation across

+ 1 - 1
include/igl/pathinfo.cpp

@@ -9,7 +9,7 @@
 
 
 #include "dirname.h"
 #include "dirname.h"
 #include "basename.h"
 #include "basename.h"
-// Verbose should be removed once everythings working correctly
+// Verbose should be removed once everything working correctly
 #include "verbose.h"
 #include "verbose.h"
 #include <algorithm>
 #include <algorithm>
 
 

+ 1 - 1
include/igl/per_edge_normals.cpp

@@ -35,7 +35,7 @@ IGL_INLINE void igl::per_edge_normals(
   assert(F.cols() == 3 && "Faces must be triangles");
   assert(F.cols() == 3 && "Faces must be triangles");
   // number of faces
   // number of faces
   const int m = F.rows();
   const int m = F.rows();
-  // All occurances of directed edges
+  // All occurrences of directed edges
   MatrixXi allE;
   MatrixXi allE;
   oriented_facets(F,allE);
   oriented_facets(F,allE);
   // Find unique undirected edges and mapping
   // Find unique undirected edges and mapping

+ 1 - 1
include/igl/ply.h.REMOVED.git-id

@@ -1 +1 @@
-e4826d12221d5fca54d3cc95e6a30cbb50fc7fe9
+75a3bab471417c278eec124122f42d7a6f8cfee2

+ 1 - 1
include/igl/png/render_to_png.h

@@ -22,7 +22,7 @@ namespace igl
     //   height height of scene and resulting image
     //   height height of scene and resulting image
     //   alpha  whether to include alpha channel
     //   alpha  whether to include alpha channel
     //   fast  sacrifice compression ratio for speed
     //   fast  sacrifice compression ratio for speed
-    // Returns true only if no errors occured
+    // Returns true only if no errors occurred
     //
     //
     // See also: igl/render_to_tga which is faster but writes .tga files
     // See also: igl/render_to_tga which is faster but writes .tga files
     IGL_INLINE bool render_to_png(
     IGL_INLINE bool render_to_png(

+ 1 - 1
include/igl/png/render_to_png_async.h

@@ -26,7 +26,7 @@ namespace igl
     //   height height of scene and resulting image
     //   height height of scene and resulting image
     //   alpha  whether to include alpha channel
     //   alpha  whether to include alpha channel
     //   fast  sacrifice compression ratio for speed
     //   fast  sacrifice compression ratio for speed
-    // Returns true only if no errors occured
+    // Returns true only if no errors occurred
     //
     //
     // See also: igl/render_to_tga which is faster but writes .tga files
     // See also: igl/render_to_tga which is faster but writes .tga files
     IGL_INLINE std::thread render_to_png_async(
     IGL_INLINE std::thread render_to_png_async(

+ 1 - 1
include/igl/png/writePNG.cpp

@@ -21,7 +21,7 @@ IGL_INLINE bool igl::png::writePNG(
   assert((R.cols() == G.cols()) && (G.cols() == B.cols()) && (B.cols() == A.cols()));
   assert((R.cols() == G.cols()) && (G.cols() == B.cols()) && (B.cols() == A.cols()));
 
 
   const int comp = 4;                                  // 4 Channels Red, Green, Blue, Alpha
   const int comp = 4;                                  // 4 Channels Red, Green, Blue, Alpha
-  const int stride_in_bytes = R.rows()*comp;           // Lenght of one row in bytes
+  const int stride_in_bytes = R.rows()*comp;           // Length of one row in bytes
   std::vector<unsigned char> data(R.size()*comp,0);     // The image itself;
   std::vector<unsigned char> data(R.size()*comp,0);     // The image itself;
 
 
   for (unsigned i = 0; i<R.rows();++i)
   for (unsigned i = 0; i<R.rows();++i)

+ 1 - 1
include/igl/polyvector_field_matchings.cpp

@@ -26,7 +26,7 @@ IGL_INLINE void igl::polyvector_field_matching(
   // make sure the matching preserve ccw order of the vectors across the edge
   // make sure the matching preserve ccw order of the vectors across the edge
   // 1) order vectors in a, ccw  e.g. (0,1,2,3)_a not ccw --> (0,3,2,1)_a ccw
   // 1) order vectors in a, ccw  e.g. (0,1,2,3)_a not ccw --> (0,3,2,1)_a ccw
   // 2) order vectors in b, ccw  e.g. (0,1,2,3)_b not ccw --> (0,2,1,3)_b ccw
   // 2) order vectors in b, ccw  e.g. (0,1,2,3)_b not ccw --> (0,2,1,3)_b ccw
-  // 3) the vectors in b that match the ordered vectors in a (in this case  (0,3,2,1)_a ) must be a circular shift of the ccw ordered vectors in b  - so we need to explicitely check only these matchings to find the best ccw one, there are N of them
+  // 3) the vectors in b that match the ordered vectors in a (in this case  (0,3,2,1)_a ) must be a circular shift of the ccw ordered vectors in b  - so we need to explicitly check only these matchings to find the best ccw one, there are N of them
   int hN = _ua.cols()/3;
   int hN = _ua.cols()/3;
   int N;
   int N;
   if (is_symmetric)
   if (is_symmetric)

+ 1 - 1
include/igl/principal_curvature.h

@@ -27,7 +27,7 @@ namespace igl
   // Inputs:
   // Inputs:
   //   V       eigen matrix #V by 3
   //   V       eigen matrix #V by 3
   //   F       #F by 3 list of mesh faces (must be triangles)
   //   F       #F by 3 list of mesh faces (must be triangles)
-  //   radius  controls the size of the neighbourhood used, 1 = average edge lenght
+  //   radius  controls the size of the neighbourhood used, 1 = average edge length
   //
   //
   // Outputs:
   // Outputs:
   //   PD1 #V by 3 maximal curvature direction for each vertex.
   //   PD1 #V by 3 maximal curvature direction for each vertex.

+ 1 - 1
include/igl/project_to_line.h

@@ -12,7 +12,7 @@
 
 
 namespace igl
 namespace igl
 {
 {
-  // PROJECT_TO_LINE  project points onto vectors, that is find the paramter
+  // PROJECT_TO_LINE  project points onto vectors, that is find the parameter
   // t for a point p such that proj_p = (y-x).*t, additionally compute the
   // t for a point p such that proj_p = (y-x).*t, additionally compute the
   // squared distance from p to the line of the vector, such that 
   // squared distance from p to the line of the vector, such that 
   // |p - proj_p|² = sqr_d
   // |p - proj_p|² = sqr_d

+ 1 - 1
include/igl/project_to_line_segment.h

@@ -12,7 +12,7 @@
 
 
 namespace igl
 namespace igl
 {
 {
-  // PROJECT_TO_LINE_SEGMENT project points onto vectors, that is find the paramter
+  // PROJECT_TO_LINE_SEGMENT project points onto vectors, that is find the parameter
   // t for a point p such that proj_p = (y-x).*t, additionally compute the
   // t for a point p such that proj_p = (y-x).*t, additionally compute the
   // squared distance from p to the line of the vector, such that 
   // squared distance from p to the line of the vector, such that 
   // |p - proj_p|² = sqr_d
   // |p - proj_p|² = sqr_d

+ 3 - 3
include/igl/raytri.c

@@ -129,7 +129,7 @@ inline int intersect_triangle1(double orig[3], double dir[3],
       if (*v > 0.0 || *u + *v < det)
       if (*v > 0.0 || *u + *v < det)
 	 return 0;
 	 return 0;
    }
    }
-   else return 0;  /* ray is parallell to the plane of the triangle */
+   else return 0;  /* ray is parallel to the plane of the triangle */
 
 
 
 
    inv_det = 1.0 / det;
    inv_det = 1.0 / det;
@@ -196,7 +196,7 @@ inline int intersect_triangle2(double orig[3], double dir[3],
       if (*v > 0.0 || *u + *v < det)
       if (*v > 0.0 || *u + *v < det)
 	 return 0;
 	 return 0;
    }
    }
-   else return 0;  /* ray is parallell to the plane of the triangle */
+   else return 0;  /* ray is parallel to the plane of the triangle */
 
 
    /* calculate t, ray intersects triangle */
    /* calculate t, ray intersects triangle */
    *t = IGL_RAY_TRI_DOT(edge2, qvec) * inv_det;
    *t = IGL_RAY_TRI_DOT(edge2, qvec) * inv_det;
@@ -256,7 +256,7 @@ inline int intersect_triangle3(double orig[3], double dir[3],
       if (*v > 0.0 || *u + *v < det)
       if (*v > 0.0 || *u + *v < det)
 	 return 0;
 	 return 0;
    }
    }
-   else return 0;  /* ray is parallell to the plane of the triangle */
+   else return 0;  /* ray is parallel to the plane of the triangle */
 
 
    *t = IGL_RAY_TRI_DOT(edge2, qvec) * inv_det;
    *t = IGL_RAY_TRI_DOT(edge2, qvec) * inv_det;
    (*u) *= inv_det;
    (*u) *= inv_det;

+ 2 - 2
include/igl/readOBJ.cpp

@@ -48,7 +48,7 @@ IGL_INLINE bool igl::readOBJ(
   std::vector<std::vector<Index > > & FTC,
   std::vector<std::vector<Index > > & FTC,
   std::vector<std::vector<Index > > & FN)
   std::vector<std::vector<Index > > & FN)
 {
 {
-  // File open was succesfull so clear outputs
+  // File open was successful so clear outputs
   V.clear();
   V.clear();
   TC.clear();
   TC.clear();
   N.clear();
   N.clear();
@@ -56,7 +56,7 @@ IGL_INLINE bool igl::readOBJ(
   FTC.clear();
   FTC.clear();
   FN.clear();
   FN.clear();
 
 
-  // variables an constants to assist parsing the .obj file
+  // variables and constants to assist parsing the .obj file
   // Constant strings to compare against
   // Constant strings to compare against
   std::string v("v");
   std::string v("v");
   std::string vn("vn");
   std::string vn("vn");

+ 1 - 1
include/igl/readTGF.h

@@ -25,7 +25,7 @@ namespace igl
   //
   //
   // Input:
   // Input:
   //  filename  .tgf file name
   //  filename  .tgf file name
-  // Ouput:
+  // Output:
   //  V  # vertices by 3 list of vertex positions
   //  V  # vertices by 3 list of vertex positions
   //  E  # edges by 2 list of edge indices
   //  E  # edges by 2 list of edge indices
   //  P  # point-handles list of point handle indices
   //  P  # point-handles list of point handle indices

+ 1 - 1
include/igl/setdiff.cpp

@@ -42,7 +42,7 @@ IGL_INLINE void igl::setdiff(
       }
       }
     }
     }
     assert(k == C.size());
     assert(k == C.size());
-    // Have to use << instead of = becasue Eigen's PlainObjectBase is annoying
+    // Have to use << instead of = because Eigen's PlainObjectBase is annoying
     IA << igl::LinSpaced<Eigen::Matrix<typename DerivedIA::Scalar,Eigen::Dynamic,1> >(
     IA << igl::LinSpaced<Eigen::Matrix<typename DerivedIA::Scalar,Eigen::Dynamic,1> >(
       C.size(),0,C.size()-1);
       C.size(),0,C.size()-1);
   }
   }

+ 1 - 1
include/igl/sort_angles.cpp

@@ -18,7 +18,7 @@ IGL_INLINE void igl::sort_angles(
     assert(num_cols >= 2);
     assert(num_cols >= 2);
 
 
     R.resize(num_rows);
     R.resize(num_rows);
-    // Have to use << instead of = becasue Eigen's PlainObjectBase is annoying
+    // Have to use << instead of = because Eigen's PlainObjectBase is annoying
     R << igl::LinSpaced<
     R << igl::LinSpaced<
       Eigen::Matrix<typename DerivedR::Scalar, Eigen::Dynamic, 1> >
       Eigen::Matrix<typename DerivedR::Scalar, Eigen::Dynamic, 1> >
       (num_rows, 0, num_rows-1);
       (num_rows, 0, num_rows-1);

+ 1 - 1
include/igl/sort_triangles.cpp

@@ -390,7 +390,7 @@ IGL_INLINE void igl::sort_triangles(
 //  assert(false && 
 //  assert(false && 
 //    "THIS WILL NEVER WORK because depth sorting is not a numerical sort where"
 //    "THIS WILL NEVER WORK because depth sorting is not a numerical sort where"
 //    "pairwise comparisons of triangles are transitive.  Rather it is a"
 //    "pairwise comparisons of triangles are transitive.  Rather it is a"
-//    "topological sort on a dependecy graph. Dependency encodes 'This triangle"
+//    "topological sort on a dependency graph. Dependency encodes 'This triangle"
 //    "must be drawn before that one'");
 //    "must be drawn before that one'");
 //  using namespace std;
 //  using namespace std;
 //  using namespace Eigen;
 //  using namespace Eigen;

+ 2 - 2
include/igl/triangle_fan.h

@@ -11,13 +11,13 @@
 #include <Eigen/Dense>
 #include <Eigen/Dense>
 namespace igl
 namespace igl
 {
 {
-  // Given a list of faces tesselate all of the "exterior" edges forming another
+  // Given a list of faces tessellate all of the "exterior" edges forming another
   // list of 
   // list of 
   //
   //
   // Inputs:
   // Inputs:
   //   E  #E by simplex_size-1  list of exterior edges (see exterior_edges.h)
   //   E  #E by simplex_size-1  list of exterior edges (see exterior_edges.h)
   // Outputs:
   // Outputs:
-  //   cap  #cap by simplex_size  list of "faces" tessleating the boundary edges
+  //   cap  #cap by simplex_size  list of "faces" tessellating the boundary edges
   IGL_INLINE void triangle_fan(
   IGL_INLINE void triangle_fan(
     const Eigen::MatrixXi & E,
     const Eigen::MatrixXi & E,
     Eigen::MatrixXi & cap);
     Eigen::MatrixXi & cap);

+ 1 - 1
include/igl/unique_edge_map.cpp

@@ -25,7 +25,7 @@ IGL_INLINE void igl::unique_edge_map(
 {
 {
   using namespace Eigen;
   using namespace Eigen;
   using namespace std;
   using namespace std;
-  // All occurances of directed edges
+  // All occurrences of directed edges
   oriented_facets(F,E);
   oriented_facets(F,E);
   const size_t ne = E.rows();
   const size_t ne = E.rows();
   // This is 2x faster to create than a map from pairs to lists of edges and 5x
   // This is 2x faster to create than a map from pairs to lists of edges and 5x

+ 2 - 2
include/igl/viewer/Viewer.cpp

@@ -937,7 +937,7 @@ namespace viewer
         /* Problem: glewInit failed, something is seriously wrong. */
         /* Problem: glewInit failed, something is seriously wrong. */
        fprintf(stderr, "Error: %s\n", glewGetErrorString(err));
        fprintf(stderr, "Error: %s\n", glewGetErrorString(err));
       }
       }
-      glGetError(); // pull and savely ignonre unhandled errors like GL_INVALID_ENUM
+      glGetError(); // pull and safely ignore unhandled errors like GL_INVALID_ENUM
       fprintf(stdout, "Status: Using GLEW %s\n", glewGetString(GLEW_VERSION));
       fprintf(stdout, "Status: Using GLEW %s\n", glewGetString(GLEW_VERSION));
     #endif
     #endif
 
 
@@ -946,7 +946,7 @@ namespace viewer
       major = glfwGetWindowAttrib(window, GLFW_CONTEXT_VERSION_MAJOR);
       major = glfwGetWindowAttrib(window, GLFW_CONTEXT_VERSION_MAJOR);
       minor = glfwGetWindowAttrib(window, GLFW_CONTEXT_VERSION_MINOR);
       minor = glfwGetWindowAttrib(window, GLFW_CONTEXT_VERSION_MINOR);
       rev = glfwGetWindowAttrib(window, GLFW_CONTEXT_REVISION);
       rev = glfwGetWindowAttrib(window, GLFW_CONTEXT_REVISION);
-      printf("OpenGL version recieved: %d.%d.%d\n", major, minor, rev);
+      printf("OpenGL version received: %d.%d.%d\n", major, minor, rev);
       printf("Supported OpenGL is %s\n", (const char*)glGetString(GL_VERSION));
       printf("Supported OpenGL is %s\n", (const char*)glGetString(GL_VERSION));
       printf("Supported GLSL is %s\n", (const char*)glGetString(GL_SHADING_LANGUAGE_VERSION));
       printf("Supported GLSL is %s\n", (const char*)glGetString(GL_SHADING_LANGUAGE_VERSION));
     #endif
     #endif

+ 1 - 1
include/igl/viewer/ViewerCore.h

@@ -119,7 +119,7 @@ public:
   float model_zoom;
   float model_zoom;
   Eigen::Vector3f model_translation;
   Eigen::Vector3f model_translation;
 
 
-  // Model viewing paramters (uv coordinates)
+  // Model viewing parameters (uv coordinates)
   float model_zoom_uv;
   float model_zoom_uv;
   Eigen::Vector3f model_translation_uv;
   Eigen::Vector3f model_translation_uv;
 
 

+ 1 - 1
include/igl/viewer/ViewerData.h

@@ -44,7 +44,7 @@ public:
     DIRTY_ALL            = 0x03FF
     DIRTY_ALL            = 0x03FF
   };
   };
 
 
-  // Empy all fields
+  // Empty all fields
   IGL_INLINE void clear();
   IGL_INLINE void clear();
 
 
   // Change the visualization mode, invalidating the cache if necessary
   // Change the visualization mode, invalidating the cache if necessary

+ 1 - 1
include/igl/xml/writeDAE.cpp

@@ -25,7 +25,7 @@ IGL_INLINE bool igl::xml::writeDAE(
 
 
   const auto & ele = [&doc](
   const auto & ele = [&doc](
     const std::string tag,
     const std::string tag,
-    // Can't just use `{}` as the default arguement because of a clang-bug
+    // Can't just use `{}` as the default argument because of a clang-bug
     // http://stackoverflow.com/questions/17264067/
     // http://stackoverflow.com/questions/17264067/
     const std::map<std::string,std::string> attribs =
     const std::map<std::string,std::string> attribs =
       std::map<std::string,std::string>(),
       std::map<std::string,std::string>(),

+ 2 - 2
optional/README.md

@@ -232,7 +232,7 @@ Alternatively, you can also compress everything into a single header file:
 
 
 * **Hard to debug/edit**: The compressed files are
 * **Hard to debug/edit**: The compressed files are
   automatically generated. They're huge and should not be edited. Thus
   automatically generated. They're huge and should not be edited. Thus
-  debugging and editting are near impossible.
+  debugging and editing are near impossible.
 
 
 * **Compounded dependencies**:
 * **Compounded dependencies**:
   An immediate disadvantage of this
   An immediate disadvantage of this
@@ -241,7 +241,7 @@ Alternatively, you can also compress everything into a single header file:
   `igl.cpp` will require linking to all of `libigl`'s
   `igl.cpp` will require linking to all of `libigl`'s
   dependencies (`OpenGL`, `GLUT`,
   dependencies (`OpenGL`, `GLUT`,
   `AntTweakBar`, `BLAS`). However, because all
   `AntTweakBar`, `BLAS`). However, because all
-  depencies other than Eigen should be encapsulated between
+  dependencies other than Eigen should be encapsulated between
   `#ifndef` guards (e.g. `#ifndef IGL_NO_OPENGL`, it
   `#ifndef` guards (e.g. `#ifndef IGL_NO_OPENGL`, it
   is possible to ignore certain functions that have such dependencies.
   is possible to ignore certain functions that have such dependencies.
 
 

+ 2 - 2
optional/index.html

@@ -283,7 +283,7 @@ exposing templated functions.</li>
 <ul>
 <ul>
 <li><p><strong>Hard to debug/edit</strong>: The compressed files are
 <li><p><strong>Hard to debug/edit</strong>: The compressed files are
  automatically generated. They&#8217;re huge and should not be edited. Thus
  automatically generated. They&#8217;re huge and should not be edited. Thus
- debugging and editting are near impossible.</p></li>
+ debugging and editing are near impossible.</p></li>
 <li><p><strong>Compounded dependencies</strong>:
 <li><p><strong>Compounded dependencies</strong>:
  An immediate disadvantage of this
  An immediate disadvantage of this
  seems to be that even to use a single function (e.g.
  seems to be that even to use a single function (e.g.
@@ -291,7 +291,7 @@ exposing templated functions.</li>
  <code>igl.cpp</code> will require linking to all of <code>libigl</code>&#8217;s
  <code>igl.cpp</code> will require linking to all of <code>libigl</code>&#8217;s
  dependencies (<code>OpenGL</code>, <code>GLUT</code>,
  dependencies (<code>OpenGL</code>, <code>GLUT</code>,
  <code>AntTweakBar</code>, <code>BLAS</code>). However, because all
  <code>AntTweakBar</code>, <code>BLAS</code>). However, because all
- depencies other than Eigen should be encapsulated between
+ dependencies other than Eigen should be encapsulated between
  <code>#ifndef</code> guards (e.g. <code>#ifndef IGL_NO_OPENGL</code>, it
  <code>#ifndef</code> guards (e.g. <code>#ifndef IGL_NO_OPENGL</code>, it
  is possible to ignore certain functions that have such dependencies.</p></li>
  is possible to ignore certain functions that have such dependencies.</p></li>
 <li><p><strong>Long compile</strong>:
 <li><p><strong>Long compile</strong>:

+ 2 - 2
python/README.md

@@ -122,11 +122,11 @@ viewer.launch()
 
 
 ### Remote viewer
 ### Remote viewer
 
 
-Whe using the viewer from an interactive python shell (iPython), it is
+When using the viewer from an interactive python shell (iPython), it is
 inconvenient to let the viewer take control of the main thread for rendering
 inconvenient to let the viewer take control of the main thread for rendering
 purposes. We provide a simple wrapper for the viewer that allows to launch
 purposes. We provide a simple wrapper for the viewer that allows to launch
 a remote process and send meshes to it via a TCP/IP socket. For more
 a remote process and send meshes to it via a TCP/IP socket. For more
-informations on how to use it see the documentation in [tcpviewer.py](tcpviewer.py)
+information on how to use it see the documentation in [tcpviewer.py](tcpviewer.py)
 
 
 ## Matlab
 ## Matlab
 
 

+ 1 - 1
python/modules/py_vector.cpp

@@ -100,7 +100,7 @@ py::class_<Type> bind_eigen_2(py::module &m, const char *name) {
         .def("rows", [](const Type &m) { return m.rows(); })
         .def("rows", [](const Type &m) { return m.rows(); })
         .def("shape", [](const Type &m) { return std::tuple<int,int>(m.rows(), m.cols()); })
         .def("shape", [](const Type &m) { return std::tuple<int,int>(m.rows(), m.cols()); })
 
 
-        /* Extract rows and colums */
+        /* Extract rows and columns */
         .def("col", [](const Type &m, int i) {
         .def("col", [](const Type &m, int i) {
             if (i<0 || i>=m.cols())
             if (i<0 || i>=m.cols())
               throw std::runtime_error("Column index out of bound.");
               throw std::runtime_error("Column index out of bound.");

+ 7 - 7
python/py_doc.cpp

@@ -126,7 +126,7 @@ const char *__doc_igl_bbw = R"igl_Qu8mg5v7(// Compute Bounded Biharmonic Weights
   //   Ele  #Elements by simplex-size list of element indices
   //   Ele  #Elements by simplex-size list of element indices
   //   b  #b boundary indices into V
   //   b  #b boundary indices into V
   //   bc #b by #W list of boundary values
   //   bc #b by #W list of boundary values
-  //   data  object containing options, intial guess --> solution and results
+  //   data  object containing options, initial guess --> solution and results
   // Outputs:
   // Outputs:
   //   W  #V by #W list of *unnormalized* weights to normalize use
   //   W  #V by #W list of *unnormalized* weights to normalize use
   //    igl::normalize_row_sums(W,W);
   //    igl::normalize_row_sums(W,W);
@@ -182,7 +182,7 @@ const char *__doc_igl_cat = R"igl_Qu8mg5v7(// Perform concatenation of a two mat
   // Template:
   // Template:
   //   Scalar  scalar data type for sparse matrices like double or int
   //   Scalar  scalar data type for sparse matrices like double or int
   //   Mat  matrix type for all matrices (e.g. MatrixXd, SparseMatrix)
   //   Mat  matrix type for all matrices (e.g. MatrixXd, SparseMatrix)
-  //   MatC  matrix type for ouput matrix (e.g. MatrixXd) needs to support
+  //   MatC  matrix type for output matrix (e.g. MatrixXd) needs to support
   //     resize
   //     resize
   // Inputs:
   // Inputs:
   //   A  first input matrix
   //   A  first input matrix
@@ -322,7 +322,7 @@ const char *__doc_igl_copyleft_comiso_miq = R"igl_Qu8mg5v7(// Inputs:
     //   UV             #UV by 2 list of vertices in 2D
     //   UV             #UV by 2 list of vertices in 2D
     //   FUV            #FUV by 3 list of face indices in UV
     //   FUV            #FUV by 3 list of face indices in UV
     //
     //
-    // TODO: rename the parameters name in the cpp consistenly
+    // TODO: rename the parameters name in the cpp consistently
     //       improve the handling of hard_features, right now it might fail in difficult cases)igl_Qu8mg5v7";
     //       improve the handling of hard_features, right now it might fail in difficult cases)igl_Qu8mg5v7";
 const char *__doc_igl_copyleft_comiso_nrosy = R"igl_Qu8mg5v7(// Generate a N-RoSy field from a sparse set of constraints
 const char *__doc_igl_copyleft_comiso_nrosy = R"igl_Qu8mg5v7(// Generate a N-RoSy field from a sparse set of constraints
     //
     //
@@ -336,7 +336,7 @@ const char *__doc_igl_copyleft_comiso_nrosy = R"igl_Qu8mg5v7(// Generate a N-RoS
     //   w_soft  #S by 1 weight for the soft constraints (0-1)
     //   w_soft  #S by 1 weight for the soft constraints (0-1)
     //   bc_soft #S by 3 bc for soft constraints
     //   bc_soft #S by 3 bc for soft constraints
     //   N       the degree of the N-RoSy vector field
     //   N       the degree of the N-RoSy vector field
-    //   soft    the strenght of the soft contraints w.r.t. smoothness
+    //   soft    the strength of the soft constraints w.r.t. smoothness
     //           (0 -> smoothness only, 1->constraints only)
     //           (0 -> smoothness only, 1->constraints only)
     // Outputs:
     // Outputs:
     //   R       #F by 3 the representative vectors of the interpolated field
     //   R       #F by 3 the representative vectors of the interpolated field
@@ -473,7 +473,7 @@ const char *__doc_igl_directed_edge_orientations = R"igl_Qu8mg5v7(// Determine r
   // Outputs:
   // Outputs:
   //   Q  #E list of quaternions 
   //   Q  #E list of quaternions 
   //)igl_Qu8mg5v7";
   //)igl_Qu8mg5v7";
-const char *__doc_igl_directed_edge_parents = R"igl_Qu8mg5v7(// Recover "parents" (preceeding edges) in a tree given just directed edges.
+const char *__doc_igl_directed_edge_parents = R"igl_Qu8mg5v7(// Recover "parents" (preceding edges) in a tree given just directed edges.
   //
   //
   // Inputs:
   // Inputs:
   //   E  #E by 2 list of directed edges
   //   E  #E by 2 list of directed edges
@@ -1040,7 +1040,7 @@ const char *__doc_igl_principal_curvature = R"igl_Qu8mg5v7(// Compute the princi
   // Inputs:
   // Inputs:
   //   V       eigen matrix #V by 3
   //   V       eigen matrix #V by 3
   //   F       #F by 3 list of mesh faces (must be triangles)
   //   F       #F by 3 list of mesh faces (must be triangles)
-  //   radius  controls the size of the neighbourhood used, 1 = average edge lenght
+  //   radius  controls the size of the neighbourhood used, 1 = average edge length
   //
   //
   // Outputs:
   // Outputs:
   //   PD1 #V by 3 maximal curvature direction for each vertex.
   //   PD1 #V by 3 maximal curvature direction for each vertex.
@@ -1123,7 +1123,7 @@ const char *__doc_igl_readTGF = R"igl_Qu8mg5v7(// READTGF
   //
   //
   // Input:
   // Input:
   //  filename  .tgf file name
   //  filename  .tgf file name
-  // Ouput:
+  // Output:
   //  V  # vertices by 3 list of vertex positions
   //  V  # vertices by 3 list of vertex positions
   //  E  # edges by 2 list of edge indices
   //  E  # edges by 2 list of edge indices
   //  P  # point-handles list of point handle indices
   //  P  # point-handles list of point handle indices

+ 2 - 2
python/tutorial/301_Slice.py

@@ -22,11 +22,11 @@ F = igl.eigen.MatrixXi()
 
 
 igl.readOFF(TUTORIAL_SHARED_PATH + "decimated-knight.off", V, F)
 igl.readOFF(TUTORIAL_SHARED_PATH + "decimated-knight.off", V, F)
 
 
-# 100 random indicies into rows of F
+# 100 random indices into rows of F
 I = igl.eigen.MatrixXi()
 I = igl.eigen.MatrixXi()
 igl.floor((0.5 * (igl.eigen.MatrixXd.Random(100, 1) + 1.) * F.rows()), I)
 igl.floor((0.5 * (igl.eigen.MatrixXd.Random(100, 1) + 1.) * F.rows()), I)
 
 
-# 50 random indicies into rows of I
+# 50 random indices into rows of I
 J = igl.eigen.MatrixXi()
 J = igl.eigen.MatrixXi()
 igl.floor((0.5 * (igl.eigen.MatrixXd.Random(50, 1) + 1.) * I.rows()), J)
 igl.floor((0.5 * (igl.eigen.MatrixXd.Random(50, 1) + 1.) * I.rows()), J)
 
 

+ 1 - 1
python/tutorial/403_BoundedBiharmonicWeights.py

@@ -27,7 +27,7 @@ def pre_draw(viewer):
         for e in range(len(pose)):
         for e in range(len(pose)):
             anim_pose[e] = pose[e].slerp(anim_t, igl.eigen.Quaterniond.Identity())
             anim_pose[e] = pose[e].slerp(anim_t, igl.eigen.Quaterniond.Identity())
 
 
-        # Propogate relative rotations via FK to retrieve absolute transformations
+        # Propagate relative rotations via FK to retrieve absolute transformations
         vQ = igl.RotationList()
         vQ = igl.RotationList()
         vT = []
         vT = []
         igl.forward_kinematics(C, BE, P, anim_pose, vQ, vT)
         igl.forward_kinematics(C, BE, P, anim_pose, vQ, vT)

+ 1 - 1
python/tutorial/404_DualQuaternionSkinning.py

@@ -34,7 +34,7 @@ def pre_draw(viewer):
         for e in range(len(poses[begin])):
         for e in range(len(poses[begin])):
             anim_pose.append(poses[begin][e].slerp(t, poses[end][e]))
             anim_pose.append(poses[begin][e].slerp(t, poses[end][e]))
 
 
-        # Propogate relative rotations via FK to retrieve absolute transformations
+        # Propagate relative rotations via FK to retrieve absolute transformations
         vQ = igl.RotationList()
         vQ = igl.RotationList()
         vT = []
         vT = []
         igl.forward_kinematics(C, BE, P, anim_pose, vQ, vT)
         igl.forward_kinematics(C, BE, P, anim_pose, vQ, vT)

+ 1 - 1
python/tutorial/505_MIQ.py

@@ -226,7 +226,7 @@ S = igl.eigen.MatrixXd()
 
 
 igl.comiso.nrosy(V, F, b, bc, igl.eigen.MatrixXi(), igl.eigen.MatrixXd(), igl.eigen.MatrixXd(), 4, 0.5, X1, S)
 igl.comiso.nrosy(V, F, b, bc, igl.eigen.MatrixXi(), igl.eigen.MatrixXd(), igl.eigen.MatrixXd(), 4, 0.5, X1, S)
 
 
-# Find the the orthogonal vector
+# Find the orthogonal vector
 B1 = igl.eigen.MatrixXd()
 B1 = igl.eigen.MatrixXd()
 B2 = igl.eigen.MatrixXd()
 B2 = igl.eigen.MatrixXd()
 B3 = igl.eigen.MatrixXd()
 B3 = igl.eigen.MatrixXd()

+ 1 - 1
scripts/clone-and-build.sh

@@ -64,7 +64,7 @@ The command produced the following standard output/error before failing:
   echo -e "$html_content" | mail -s "$subject" $recipients
   echo -e "$html_content" | mail -s "$subject" $recipients
 } 
 } 
 
 
-# Runs the arguements as a command as usual, but if the command fails send an
+# Runs the arguments as a command as usual, but if the command fails send an
 # email using `report_error` and exit without continuing
 # email using `report_error` and exit without continuing
 #
 #
 #     guard command arg1 arg2 ...
 #     guard command arg1 arg2 ...

+ 1 - 1
scripts/h2pair.sh

@@ -37,7 +37,7 @@ do
 
 
   if [[ `grep -c "^\#endif" "$i"` > 1 ]];
   if [[ `grep -c "^\#endif" "$i"` > 1 ]];
   then
   then
-    echo "Warning $i contains multple matches to ^#endif"
+    echo "Warning $i contains multiple matches to ^#endif"
   fi
   fi
 
 
   before=`sed -n '/^\/\/ Implementation$/q;p' "$i"`;
   before=`sed -n '/^\/\/ Implementation$/q;p' "$i"`;

+ 1 - 1
scripts/pre-commit.sh

@@ -23,7 +23,7 @@ The following files contain the offensive \"std::__1\" namespace:
 
 
 ${RED}$STD1${NC}
 ${RED}$STD1${NC}
 
 
-Consider issueing:
+Consider issuing:
 
 
     sed -i '' -e \"s/std::__1/std/g\"" $STD1
     sed -i '' -e \"s/std::__1/std/g\"" $STD1
 
 

+ 1 - 1
shared/cmake/CXXFeatures.cmake

@@ -76,7 +76,7 @@ set(CXX17_FEATURES
 # cxx_thread_local                      Thread-local variables, as defined in N2659.
 # cxx_thread_local                      Thread-local variables, as defined in N2659.
 # cxx_trailing_return_types             Automatic function return type, as defined in N2541.
 # cxx_trailing_return_types             Automatic function return type, as defined in N2541.
 # cxx_unicode_literals                  Unicode string literals, as defined in N2442.
 # cxx_unicode_literals                  Unicode string literals, as defined in N2442.
-# cxx_uniform_initialization            Uniform intialization, as defined in N2640.
+# cxx_uniform_initialization            Uniform initialization, as defined in N2640.
 # cxx_unrestricted_unions               Unrestricted unions, as defined in N2544.
 # cxx_unrestricted_unions               Unrestricted unions, as defined in N2544.
 # cxx_user_literals                     User-defined literals, as defined in N2765.
 # cxx_user_literals                     User-defined literals, as defined in N2765.
 # cxx_variable_templates                Variable templates, as defined in N3651.
 # cxx_variable_templates                Variable templates, as defined in N3651.

+ 1 - 1
style-guidelines.html

@@ -274,7 +274,7 @@ to mean a list of faces/triangles.</p>
 <p>Classes should be avoided. When naming a class use CamelCase (e.g.
 <p>Classes should be avoided. When naming a class use CamelCase (e.g.
 SortableRow.h).</p>
 SortableRow.h).</p>
 
 
-<h2 id="enumnamingconvertion">Enum naming convertion</h2>
+<h2 id="enumnamingconvertion">Enum naming conversion</h2>
 
 
 <p>Enums types should be placed in the appropriate <code>igl::</code> namespace and should be
 <p>Enums types should be placed in the appropriate <code>igl::</code> namespace and should be
 named in CamelCase (e.g. <code>igl::SolverStatus</code>) and instances should be named in
 named in CamelCase (e.g. <code>igl::SolverStatus</code>) and instances should be named in

+ 1 - 1
style-guidelines.md

@@ -270,7 +270,7 @@ to mean a list of faces/triangles.
 Classes should be avoided. When naming a class use CamelCase (e.g.
 Classes should be avoided. When naming a class use CamelCase (e.g.
 SortableRow.h).
 SortableRow.h).
 
 
-## Enum naming convertion
+## Enum naming conversion
 
 
 Enums types should be placed in the appropriate `igl::` namespace and should be
 Enums types should be placed in the appropriate `igl::` namespace and should be
 named in CamelCase (e.g. `igl::SolverStatus`) and instances should be named in
 named in CamelCase (e.g. `igl::SolverStatus`) and instances should be named in

+ 2 - 2
tutorial/301_Slice/main.cpp

@@ -14,11 +14,11 @@ int main(int argc, char *argv[])
   MatrixXi F;
   MatrixXi F;
   igl::readOFF(TUTORIAL_SHARED_PATH "/decimated-knight.off",V,F);
   igl::readOFF(TUTORIAL_SHARED_PATH "/decimated-knight.off",V,F);
 
 
-  // 100 random indicies into rows of F
+  // 100 random indices into rows of F
   VectorXi I;
   VectorXi I;
   igl::floor((0.5*(VectorXd::Random(100,1).array()+1.)*F.rows()).eval(),I);
   igl::floor((0.5*(VectorXd::Random(100,1).array()+1.)*F.rows()).eval(),I);
   
   
-  // 50 random indicies into rows of I
+  // 50 random indices into rows of I
   VectorXi J;
   VectorXi J;
   igl::floor((0.5*(VectorXd::Random(50,1).array()+1.)*I.rows()).eval(),J);
   igl::floor((0.5*(VectorXd::Random(50,1).array()+1.)*I.rows()).eval(),J);
   
   

+ 1 - 1
tutorial/403_BoundedBiharmonicWeights/main.cpp

@@ -54,7 +54,7 @@ bool pre_draw(igl::viewer::Viewer & viewer)
     {
     {
       anim_pose[e] = pose[e].slerp(anim_t,Quaterniond::Identity());
       anim_pose[e] = pose[e].slerp(anim_t,Quaterniond::Identity());
     }
     }
-    // Propogate relative rotations via FK to retrieve absolute transformations
+    // Propagate relative rotations via FK to retrieve absolute transformations
     RotationList vQ;
     RotationList vQ;
     vector<Vector3d> vT;
     vector<Vector3d> vT;
     igl::forward_kinematics(C,BE,P,anim_pose,vQ,vT);
     igl::forward_kinematics(C,BE,P,anim_pose,vQ,vT);

+ 1 - 1
tutorial/404_DualQuaternionSkinning/main.cpp

@@ -49,7 +49,7 @@ bool pre_draw(igl::viewer::Viewer & viewer)
     {
     {
       anim_pose[e] = poses[begin][e].slerp(t,poses[end][e]);
       anim_pose[e] = poses[begin][e].slerp(t,poses[end][e]);
     }
     }
-    // Propogate relative rotations via FK to retrieve absolute transformations
+    // Propagate relative rotations via FK to retrieve absolute transformations
     RotationList vQ;
     RotationList vQ;
     vector<Vector3d> vT;
     vector<Vector3d> vT;
     igl::forward_kinematics(C,BE,P,anim_pose,vQ,vT);
     igl::forward_kinematics(C,BE,P,anim_pose,vQ,vT);

部分文件因为文件数量过多而无法显示