diff options
Diffstat (limited to 'source/blender/blenkernel/intern/multires_reshape.h')
-rw-r--r-- | source/blender/blenkernel/intern/multires_reshape.h | 80 |
1 files changed, 50 insertions, 30 deletions
diff --git a/source/blender/blenkernel/intern/multires_reshape.h b/source/blender/blenkernel/intern/multires_reshape.h index 6a51c1112cb..ae14e565ac9 100644 --- a/source/blender/blenkernel/intern/multires_reshape.h +++ b/source/blender/blenkernel/intern/multires_reshape.h @@ -127,9 +127,9 @@ typedef struct ReshapeConstGridElement { float mask; } ReshapeConstGridElement; -/* ================================================================================================ - * Construct/destruct reshape context. - */ +/* -------------------------------------------------------------------- */ +/** \name Construct/destruct reshape context. + * \{ */ /* Create subdivision surface descriptor which is configured for surface evaluation at a given * multires modifier. */ @@ -154,9 +154,11 @@ bool multires_reshape_context_create_from_subdivide(MultiresReshapeContext *resh void multires_reshape_context_free(MultiresReshapeContext *reshape_context); -/* ================================================================================================ - * Helper accessors. - */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Helper accessors. + * \{ */ /* For the given grid index get index of face it was created for. */ int multires_reshape_grid_to_face_index(const MultiresReshapeContext *reshape_context, @@ -199,9 +201,11 @@ ReshapeGridElement multires_reshape_grid_element_for_ptex_coord( ReshapeConstGridElement multires_reshape_orig_grid_element_for_grid_coord( const MultiresReshapeContext *reshape_context, const GridCoord *grid_coord); -/* ================================================================================================ - * Sample limit surface of the base mesh. - */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Sample limit surface of the base mesh. + * \{ */ /* Evaluate limit surface created from base mesh. * This is the limit surface which defines tangent space for MDisps. */ @@ -210,16 +214,20 @@ void multires_reshape_evaluate_limit_at_grid(const MultiresReshapeContext *resha float r_P[3], float r_tangent_matrix[3][3]); -/* ================================================================================================ - * Custom data preparation. - */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Custom data preparation. + * \{ */ /* Make sure custom data is allocated for the given level. */ void multires_reshape_ensure_grids(struct Mesh *mesh, const int level); -/* ================================================================================================ - * Functions specific to reshaping from a set of vertices in a object position. - */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Functions specific to reshaping from a set of vertices in a object position. + * \{ */ /* Returns truth if all coordinates were assigned. * @@ -230,9 +238,11 @@ bool multires_reshape_assign_final_coords_from_vertcos( const float (*vert_coords)[3], const int num_vert_coords); -/* ================================================================================================ - * Functions specific to reshaping from CCG. - */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Functions specific to reshaping from CCG. + * \{ */ /* NOTE: Displacement grids to be at least at a reshape level. * @@ -240,9 +250,11 @@ bool multires_reshape_assign_final_coords_from_vertcos( bool multires_reshape_assign_final_coords_from_ccg(const MultiresReshapeContext *reshape_context, struct SubdivCCG *subdiv_ccg); -/* ================================================================================================ - * Functions specific to reshaping from MDISPS. - */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Functions specific to reshaping from MDISPS. + * \{ */ /* Reads and writes to the current mesh CD_MDISPS. */ void multires_reshape_assign_final_coords_from_mdisps( @@ -252,9 +264,11 @@ void multires_reshape_assign_final_coords_from_mdisps( void multires_reshape_assign_final_coords_from_orig_mdisps( const MultiresReshapeContext *reshape_context); -/* ================================================================================================ - * Displacement smooth. - */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Displacement smooth. + * \{ */ /* Operates on a displacement grids (CD_MDISPS) which contains object space coordinates stopred for * the reshape level. @@ -271,9 +285,11 @@ void multires_reshape_smooth_object_grids_with_details( */ void multires_reshape_smooth_object_grids(const MultiresReshapeContext *reshape_context); -/* ================================================================================================ - * Displacement, space conversion. - */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Displacement, space conversion. + * \{ */ /* Store original grid data, so then it's possible to calculate delta from it and add * high-frequency content on top of reshaped grids. */ @@ -282,9 +298,11 @@ void multires_reshape_store_original_grids(MultiresReshapeContext *reshape_conte void multires_reshape_object_grids_to_tangent_displacement( const MultiresReshapeContext *reshape_context); -/* ================================================================================================ - * Apply base. - */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Apply base. + * \{ */ /* 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. @@ -299,4 +317,6 @@ void multires_reshape_apply_base_refit_base_mesh(MultiresReshapeContext *reshape /* Refine subdivision surface to the new positions of the base mesh. */ void multires_reshape_apply_base_refine_subdiv(MultiresReshapeContext *reshape_context); +/** \} */ + #endif /* __BKE_INTERN_MULTIRES_RESHAPE_H__ */ |