diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-14 07:34:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-14 07:43:21 +0300 |
commit | f0b0524c5fa7d4b8cc857000d8fdfba5170a980f (patch) | |
tree | 28ef3b49abdabd6a7f49b9ae8c5a67dfa1ce2f61 /source/blender/blenkernel/intern | |
parent | 117ccb56ad7a7047b335de9bb5d6ea6e0acf3133 (diff) |
Cleanup: spelling
Diffstat (limited to 'source/blender/blenkernel/intern')
3 files changed, 19 insertions, 13 deletions
diff --git a/source/blender/blenkernel/intern/multires_reshape.h b/source/blender/blenkernel/intern/multires_reshape.h index ae14e565ac9..9029d19ae88 100644 --- a/source/blender/blenkernel/intern/multires_reshape.h +++ b/source/blender/blenkernel/intern/multires_reshape.h @@ -101,22 +101,27 @@ typedef struct MultiresReshapeContext { int *face_ptex_offset; } MultiresReshapeContext; -/* Coordinate which identifies element of a grid. - * This is directly related on how CD_MDISPS stores dispalcement. +/** + * Coordinate which identifies element of a grid. + * This is directly related on how #CD_MDISPS stores displacement. */ typedef struct GridCoord { int grid_index; float u, v; } GridCoord; -/* COordinate within ptex, which is what OpenSubdiv API operates on. */ +/** + * Coordinate within ptex, which is what OpenSubdiv API operates on. + */ typedef struct PTexCoord { int ptex_face_index; float u, v; } PTexCoord; -/* Element of a grid data stored in the destination mesh. - * This is where reshaped coordinates and mask values will be written to. */ +/** + * Element of a grid data stored in the destination mesh. + * This is where reshaped coordinates and mask values will be written to. + */ typedef struct ReshapeGridElement { float *displacement; float *mask; @@ -270,7 +275,7 @@ void multires_reshape_assign_final_coords_from_orig_mdisps( /** \name Displacement smooth. * \{ */ -/* Operates on a displacement grids (CD_MDISPS) which contains object space coordinates stopred for +/* Operates on a displacement grids (CD_MDISPS) which contains object space coordinates stored for * the reshape level. * * The result is grids which are defining mesh with a smooth surface and details starting from @@ -278,7 +283,7 @@ void multires_reshape_assign_final_coords_from_orig_mdisps( void multires_reshape_smooth_object_grids_with_details( const MultiresReshapeContext *reshape_context); -/* Operates on a displacement grids (CD_MDISPS) which contains object spacecoordinates stopred for +/* Operates on a displacement grids (CD_MDISPS) which contains object space-coordinates stored for * the reshape level. * * Makes it so surface on top level looks smooth. Details are not preserved @@ -305,9 +310,9 @@ void multires_reshape_object_grids_to_tangent_displacement( * \{ */ /* Update mesh coordinates to the final positions of displacement in object space. - * This is effectively desired position of base mesh vertices after caneling out displacement. + * This is effectively desired position of base mesh vertices after canceling out displacement. * - * NOTE: Expects that mesh's CD_MDISPS has been set ot object space positions. */ + * NOTE: Expects that mesh's CD_MDISPS has been set to object space positions. */ void multires_reshape_apply_base_update_mesh_coords(MultiresReshapeContext *reshape_context); /* Perform better fitting of the base mesh so its subdivided version brings vertices to their diff --git a/source/blender/blenkernel/intern/multires_reshape_util.c b/source/blender/blenkernel/intern/multires_reshape_util.c index 814501996c8..f9271e37672 100644 --- a/source/blender/blenkernel/intern/multires_reshape_util.c +++ b/source/blender/blenkernel/intern/multires_reshape_util.c @@ -379,8 +379,7 @@ void multires_reshape_tangent_matrix_for_corner(const MultiresReshapeContext *re float r_tangent_matrix[3][3]) { /* For a quad faces we would need to flip the tangent, since they will use - * use different coordinates within displacement grid comparent to ptex - * face. */ + * use different coordinates within displacement grid compared to the ptex face. */ const bool is_quad = multires_reshape_is_quad_face(reshape_context, face_index); const int tangent_corner = is_quad ? corner : 0; BKE_multires_construct_tangent_matrix(r_tangent_matrix, dPdu, dPdv, tangent_corner); diff --git a/source/blender/blenkernel/intern/multires_reshape_vertcos.c b/source/blender/blenkernel/intern/multires_reshape_vertcos.c index c47b50faa03..5aff0b3caa2 100644 --- a/source/blender/blenkernel/intern/multires_reshape_vertcos.c +++ b/source/blender/blenkernel/intern/multires_reshape_vertcos.c @@ -38,8 +38,10 @@ typedef struct MultiresReshapeAssignVertcosContext { const int num_vert_coords; } MultiresReshapeAssignVertcosContext; -/* Set single displacement grid value at a reshape level to a correspnding vertex coordinate. - * This function will be called for every side of a boundary grid points for inner coordinates. */ +/** + * Set single displacement grid value at a reshape level to a corresponding vertex coordinate. + * This function will be called for every side of a boundary grid points for inner coordinates. + */ static void multires_reshape_vertcos_foreach_single_vertex( const SubdivForeachContext *foreach_context, const GridCoord *grid_coord, |