Multires: Cleanup, clarify comments

This commit is contained in:
Sergey Sharybin 2020-05-12 15:23:58 +02:00
parent dbc13a37ca
commit c7651be1e1
2 changed files with 7 additions and 1 deletions

View File

@ -256,7 +256,11 @@ bool multires_reshape_assign_final_coords_from_vertcos(
* Functions specific to reshaping from CCG.
*/
/* NOTE: Displacement grids to be at least at a reshape level.
/* Store final object-space coordinates in the displacement grids.
* The reason why displacement grids are used for storage is based on memory
* footprint optimization.
*
* NOTE: Displacement grids to be at least at a reshape level.
*
* Return truth if all coordinates have been updated. */
bool multires_reshape_assign_final_coords_from_ccg(const MultiresReshapeContext *reshape_context,

View File

@ -118,6 +118,8 @@ typedef struct MultiresReshapeSmoothContext {
/* Subdivision surface created for geometry at a reshape level. */
Subdiv *reshape_subdiv;
/* Grids allocated at the top level storing state of the base mesh,
* Basically, lower memory footprint version of the base mesh limit surface. */
SurfaceGrid *base_surface_grids;
/* Defines how displacement is interpolated on the higher levels (for example, whether