Blender V4.3
sculpt_filter_mask.cc File Reference
#include "BLI_array_utils.hh"
#include "BLI_enumerable_thread_specific.hh"
#include "BLI_math_base.hh"
#include "BKE_attribute.hh"
#include "BKE_context.hh"
#include "BKE_layer.hh"
#include "BKE_mesh.hh"
#include "BKE_paint.hh"
#include "BKE_pbvh_api.hh"
#include "BKE_subdiv_ccg.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "mesh_brush_common.hh"
#include "paint_intern.hh"
#include "paint_mask.hh"
#include "sculpt_automask.hh"
#include "sculpt_hide.hh"
#include "sculpt_intern.hh"
#include "sculpt_smooth.hh"
#include "sculpt_undo.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "bmesh.hh"

Go to the source code of this file.

Classes

struct  blender::ed::sculpt_paint::mask::FilterLocalData
 

Namespaces

namespace  blender
 
namespace  blender::ed
 
namespace  blender::ed::sculpt_paint
 
namespace  blender::ed::sculpt_paint::mask
 

Enumerations

enum class  blender::ed::sculpt_paint::mask::FilterType {
  blender::ed::sculpt_paint::mask::Smooth = 0 , blender::ed::sculpt_paint::mask::Sharpen = 1 , blender::ed::sculpt_paint::mask::Grow = 2 , blender::ed::sculpt_paint::mask::Shrink = 3 ,
  blender::ed::sculpt_paint::mask::ContrastIncrease = 5 , blender::ed::sculpt_paint::mask::ContrastDecrease = 6
}
 

Functions

static BLI_NOINLINE void blender::ed::sculpt_paint::mask::copy_old_hidden_mask_mesh (const Span< int > verts, const Span< bool > hide_vert, const Span< float > mask, const MutableSpan< float > new_mask)
 
static BLI_NOINLINE void blender::ed::sculpt_paint::mask::multiply_add (const Span< float > src, const float factor, const float offset, const MutableSpan< float > dst)
 
static BLI_NOINLINE void blender::ed::sculpt_paint::mask::mask_increase_contrast (const Span< float > src, const MutableSpan< float > dst)
 
static BLI_NOINLINE void blender::ed::sculpt_paint::mask::mask_decrease_contrast (const Span< float > src, const MutableSpan< float > dst)
 
static BLI_NOINLINE void blender::ed::sculpt_paint::mask::sharpen_masks (const Span< float > old_masks, const MutableSpan< float > new_mask)
 
static void blender::ed::sculpt_paint::mask::apply_new_mask_mesh (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const OffsetIndices< int > node_verts, const Span< float > new_mask, MutableSpan< float > mask)
 
static void blender::ed::sculpt_paint::mask::smooth_mask_mesh (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const Span< bool > hide_poly, const Span< bool > hide_vert, const Span< float > mask, const bke::pbvh::MeshNode &node, FilterLocalData &tls, MutableSpan< float > new_mask)
 
static void blender::ed::sculpt_paint::mask::sharpen_mask_mesh (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const Span< bool > hide_poly, const Span< bool > hide_vert, const Span< float > mask, const bke::pbvh::MeshNode &node, FilterLocalData &tls, MutableSpan< float > new_mask)
 
static void blender::ed::sculpt_paint::mask::grow_mask_mesh (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const Span< bool > hide_poly, const Span< bool > hide_vert, const Span< float > mask, const bke::pbvh::MeshNode &node, FilterLocalData &tls, MutableSpan< float > new_mask)
 
static void blender::ed::sculpt_paint::mask::shrink_mask_mesh (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const Span< bool > hide_poly, const Span< bool > hide_vert, const Span< float > mask, const bke::pbvh::MeshNode &node, FilterLocalData &tls, MutableSpan< float > new_mask)
 
static bool blender::ed::sculpt_paint::mask::increase_contrast_mask_mesh (const Depsgraph &depsgraph, const Object &object, const Span< bool > hide_vert, bke::pbvh::MeshNode &node, FilterLocalData &tls, MutableSpan< float > mask)
 
static bool blender::ed::sculpt_paint::mask::decrease_contrast_mask_mesh (const Depsgraph &depsgraph, const Object &object, const Span< bool > hide_vert, bke::pbvh::MeshNode &node, FilterLocalData &tls, MutableSpan< float > mask)
 
static BLI_NOINLINE void blender::ed::sculpt_paint::mask::copy_old_hidden_mask_grids (const SubdivCCG &subdiv_ccg, const Span< int > grids, const MutableSpan< float > new_mask)
 
static void blender::ed::sculpt_paint::mask::apply_new_mask_grids (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const OffsetIndices< int > node_verts, const Span< float > new_mask)
 
static void blender::ed::sculpt_paint::mask::smooth_mask_grids (const SubdivCCG &subdiv_ccg, const bke::pbvh::GridsNode &node, MutableSpan< float > new_mask)
 
static void blender::ed::sculpt_paint::mask::sharpen_mask_grids (const SubdivCCG &subdiv_ccg, const bke::pbvh::GridsNode &node, FilterLocalData &tls, MutableSpan< float > new_mask)
 
static void blender::ed::sculpt_paint::mask::grow_mask_grids (const SubdivCCG &subdiv_ccg, const bke::pbvh::GridsNode &node, MutableSpan< float > new_mask)
 
static void blender::ed::sculpt_paint::mask::shrink_mask_grids (const SubdivCCG &subdiv_ccg, const bke::pbvh::GridsNode &node, MutableSpan< float > new_mask)
 
static bool blender::ed::sculpt_paint::mask::increase_contrast_mask_grids (const Depsgraph &depsgraph, const Object &object, bke::pbvh::GridsNode &node, FilterLocalData &tls)
 
static bool blender::ed::sculpt_paint::mask::decrease_contrast_mask_grids (const Depsgraph &depsgraph, const Object &object, bke::pbvh::GridsNode &node, FilterLocalData &tls)
 
static BLI_NOINLINE void blender::ed::sculpt_paint::mask::copy_old_hidden_mask_bmesh (const int mask_offset, const Set< BMVert *, 0 > &verts, const MutableSpan< float > new_mask)
 
static void blender::ed::sculpt_paint::mask::apply_new_mask_bmesh (const Depsgraph &depsgraph, Object &object, const int mask_offset, const IndexMask &node_mask, const OffsetIndices< int > node_verts, const Span< float > new_mask)
 
static void blender::ed::sculpt_paint::mask::smooth_mask_bmesh (const int mask_offset, bke::pbvh::BMeshNode &node, MutableSpan< float > new_mask)
 
static void blender::ed::sculpt_paint::mask::sharpen_mask_bmesh (const BMesh &bm, const int mask_offset, bke::pbvh::BMeshNode &node, FilterLocalData &tls, MutableSpan< float > new_mask)
 
static void blender::ed::sculpt_paint::mask::grow_mask_bmesh (const int mask_offset, bke::pbvh::BMeshNode &node, MutableSpan< float > new_mask)
 
static void blender::ed::sculpt_paint::mask::shrink_mask_bmesh (const int mask_offset, bke::pbvh::BMeshNode &node, MutableSpan< float > new_mask)
 
static bool blender::ed::sculpt_paint::mask::increase_contrast_mask_bmesh (const Depsgraph &depsgraph, Object &object, const int mask_offset, bke::pbvh::BMeshNode &node, FilterLocalData &tls)
 
static bool blender::ed::sculpt_paint::mask::decrease_contrast_mask_bmesh (const Depsgraph &depsgraph, Object &object, const int mask_offset, bke::pbvh::BMeshNode &node, FilterLocalData &tls)
 
static int blender::ed::sculpt_paint::mask::sculpt_mask_filter_exec (bContext *C, wmOperator *op)
 
void blender::ed::sculpt_paint::mask::SCULPT_OT_mask_filter (wmOperatorType *ot)