diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-04-05 03:00:50 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-04-14 22:00:14 +0300 |
commit | 7dd8c889f18e9df5c86356fedb063e5ff9261577 (patch) | |
tree | d9e510368ade84a75a2013f54379ac2a464c577b /source/blender/editors/sculpt_paint/sculpt_intern.h | |
parent | f881ff129f785ed9491be04bc3dad6645903ddaa (diff) |
Sculpt: Sharpen Mesh Filter
This mesh filter sharpens and smooths the mesh based on its curvature,
resulting in pinching hard edges and polishing flat surfaces. It fixes
most of the artifacts of the voxel remesher and those produced when
sculpting hard surfaces and stylized models with creasing and flattening
brushes.
It needs and accumulate_displacement step before each filter iteration which
can't be multithreaded in an easy way (it would need something to sync the
threads when modifying the data of neighbors in a different node), but this
does not affect performance in a significant way.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D7335
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_intern.h')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_intern.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.h b/source/blender/editors/sculpt_paint/sculpt_intern.h index b379c1ab8af..8189ca8c551 100644 --- a/source/blender/editors/sculpt_paint/sculpt_intern.h +++ b/source/blender/editors/sculpt_paint/sculpt_intern.h @@ -818,6 +818,11 @@ typedef struct FilterCache { float surface_smooth_shape_preservation; float surface_smooth_current_vertex; + /* Sharpen mesh filter. */ + float sharpen_smooth_ratio; + float *sharpen_factor; + float (*accum_disp)[3]; + /* unmasked nodes */ PBVHNode **nodes; int totnode; |