Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_multires.h
| Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | struct MultiresModifierData *get_multires_modifier(struct Scene *scene, | ||||
| bool use_first); | bool use_first); | ||||
| int multires_get_level(const struct Scene *scene, | int multires_get_level(const struct Scene *scene, | ||||
| const struct Object *ob, | const struct Object *ob, | ||||
| const struct MultiresModifierData *mmd, | const struct MultiresModifierData *mmd, | ||||
| bool render, | bool render, | ||||
| bool ignore_simplify); | bool ignore_simplify); | ||||
| /* Creates mesh with multires modifier applied on current object's deform mesh. */ | /* Creates mesh with multires modifier applied on current object's deform mesh. */ | ||||
| struct Mesh *BKE_multires_create_mesh(struct Depsgraph *depsgraph, | struct Mesh *BKE_multires_create_mesh_from_deform(struct Depsgraph *depsgraph, | ||||
| struct Object *object, | |||||
| struct MultiresModifierData *mmd); | |||||
| /* Creates mesh with multires modifier applied on current object's base mesh. */ | |||||
sergey: Base mesh is an input for multires/subdivision surface modifier. So from terminology point of… | |||||
Done Inline ActionsWhat naming and description would you suggest for these functions? pablodp606: What naming and description would you suggest for these functions? | |||||
| struct Mesh *BKE_multires_create_mesh_from_base(struct Depsgraph *depsgraph, | |||||
| struct Object *object, | struct Object *object, | ||||
| struct MultiresModifierData *mmd); | struct MultiresModifierData *mmd); | ||||
Not Done Inline ActionsState that deform state of the mesh is acquired from the current evaluated state of the object, and, hence, the caller might need to ensure depsgraph is fully evaluated. Also, do it in a separate commit, which will not be intended to have any functional changes. sergey: State that deform state of the mesh is acquired from the current evaluated state of the object… | |||||
| /* Get coordinates of a deformed base mesh which is an input to the given multires modifier. | /* Get coordinates of a deformed base mesh which is an input to the given multires modifier. | ||||
| * NOTE: The modifiers will be re-evaluated. */ | * NOTE: The modifiers will be re-evaluated. */ | ||||
| float (*BKE_multires_create_deformed_base_mesh_vert_coords(struct Depsgraph *depsgraph, | float (*BKE_multires_create_deformed_base_mesh_vert_coords(struct Depsgraph *depsgraph, | ||||
| struct Object *object, | struct Object *object, | ||||
| struct MultiresModifierData *mmd, | struct MultiresModifierData *mmd, | ||||
| int *r_num_deformed_verts))[3]; | int *r_num_deformed_verts))[3]; | ||||
| void multiresModifier_del_levels(struct MultiresModifierData *mmd, | void multiresModifier_delete_levels_higher(struct MultiresModifierData *mmd, | ||||
| struct Scene *scene, | struct Scene *scene, | ||||
| struct Object *object, | struct Object *object); | ||||
| int direction); | |||||
| void multiresModifier_delete_levels_lower(struct Depsgraph *depsgraph, | |||||
| struct MultiresModifierData *mmd, | |||||
| struct Scene *scene, | |||||
| struct Object *object); | |||||
| void multiresModifier_base_apply(struct Depsgraph *depsgraph, | void multiresModifier_base_apply(struct Depsgraph *depsgraph, | ||||
| struct Object *object, | struct Object *object, | ||||
| struct MultiresModifierData *mmd); | struct MultiresModifierData *mmd); | ||||
| int multiresModifier_rebuild_subdiv(struct Depsgraph *depsgraph, | int multiresModifier_rebuild_subdiv(struct Depsgraph *depsgraph, | ||||
| struct Object *object, | struct Object *object, | ||||
| struct MultiresModifierData *mmd, | struct MultiresModifierData *mmd, | ||||
| int rebuild_limit, | int rebuild_limit, | ||||
| bool switch_view_to_lower_level); | bool switch_view_to_lower_level); | ||||
| ▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines | |||||
Base mesh is an input for multires/subdivision surface modifier. So from terminology point of view function description and naming does not do what one would expect it to.