Blender  V3.3
Classes | Typedefs | Enumerations | Functions | Variables
sculpt_filter_mask.c File Reference
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_hash.h"
#include "BLI_math.h"
#include "BLI_task.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "BKE_brush.h"
#include "BKE_context.h"
#include "BKE_mesh.h"
#include "BKE_mesh_mapping.h"
#include "BKE_object.h"
#include "BKE_paint.h"
#include "BKE_pbvh.h"
#include "BKE_scene.h"
#include "DEG_depsgraph.h"
#include "WM_api.h"
#include "WM_message.h"
#include "WM_toolsystem.h"
#include "WM_types.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "ED_sculpt.h"
#include "paint_intern.h"
#include "sculpt_intern.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "UI_interface.h"
#include "bmesh.h"
#include <math.h>
#include <stdlib.h>

Go to the source code of this file.

Classes

struct  DirtyMaskRangeData
 

Typedefs

typedef enum eSculptMaskFilterTypes eSculptMaskFilterTypes
 
typedef struct DirtyMaskRangeData DirtyMaskRangeData
 

Enumerations

enum  eSculptMaskFilterTypes {
  MASK_FILTER_SMOOTH = 0 , MASK_FILTER_SHARPEN = 1 , MASK_FILTER_GROW = 2 , MASK_FILTER_SHRINK = 3 ,
  MASK_FILTER_CONTRAST_INCREASE = 5 , MASK_FILTER_CONTRAST_DECREASE = 6
}
 

Functions

static void mask_filter_task_cb (void *__restrict userdata, const int i, const TaskParallelTLS *__restrict UNUSED(tls))
 
static int sculpt_mask_filter_exec (bContext *C, wmOperator *op)
 
void SCULPT_mask_filter_smooth_apply (Sculpt *sd, Object *ob, PBVHNode **nodes, const int totnode, const int smooth_iterations)
 
void SCULPT_OT_mask_filter (struct wmOperatorType *ot)
 
static float neighbor_dirty_mask (SculptSession *ss, PBVHVertexIter *vd)
 
static void dirty_mask_compute_range_task_cb (void *__restrict userdata, const int i, const TaskParallelTLS *__restrict tls)
 
static void dirty_mask_compute_range_reduce (const void *__restrict UNUSED(userdata), void *__restrict chunk_join, void *__restrict chunk)
 
static void dirty_mask_apply_task_cb (void *__restrict userdata, const int i, const TaskParallelTLS *__restrict UNUSED(tls))
 
static int sculpt_dirty_mask_exec (bContext *C, wmOperator *op)
 
void SCULPT_OT_dirty_mask (struct wmOperatorType *ot)
 

Variables

static EnumPropertyItem prop_mask_filter_types []
 

Typedef Documentation

◆ DirtyMaskRangeData

◆ eSculptMaskFilterTypes

Enumeration Type Documentation

◆ eSculptMaskFilterTypes

Enumerator
MASK_FILTER_SMOOTH 
MASK_FILTER_SHARPEN 
MASK_FILTER_GROW 
MASK_FILTER_SHRINK 
MASK_FILTER_CONTRAST_INCREASE 
MASK_FILTER_CONTRAST_DECREASE 

Definition at line 50 of file sculpt_filter_mask.c.

Function Documentation

◆ dirty_mask_apply_task_cb()

static void dirty_mask_apply_task_cb ( void *__restrict  userdata,
const int  i,
const TaskParallelTLS *__restrict   UNUSEDtls 
)
static

◆ dirty_mask_compute_range_reduce()

static void dirty_mask_compute_range_reduce ( const void *__restrict   UNUSEDuserdata,
void *__restrict  chunk_join,
void *__restrict  chunk 
)
static

◆ dirty_mask_compute_range_task_cb()

static void dirty_mask_compute_range_task_cb ( void *__restrict  userdata,
const int  i,
const TaskParallelTLS *__restrict  tls 
)
static

◆ mask_filter_task_cb()

static void mask_filter_task_cb ( void *__restrict  userdata,
const int  i,
const TaskParallelTLS *__restrict   UNUSEDtls 
)
static

◆ neighbor_dirty_mask()

static float neighbor_dirty_mask ( SculptSession ss,
PBVHVertexIter vd 
)
static

◆ sculpt_dirty_mask_exec()

static int sculpt_dirty_mask_exec ( bContext C,
wmOperator op 
)
static

◆ sculpt_mask_filter_exec()

static int sculpt_mask_filter_exec ( bContext C,
wmOperator op 
)
static

◆ SCULPT_mask_filter_smooth_apply()

void SCULPT_mask_filter_smooth_apply ( Sculpt sd,
Object ob,
PBVHNode **  nodes,
const int  totnode,
const int  smooth_iterations 
)

◆ SCULPT_OT_dirty_mask()

void SCULPT_OT_dirty_mask ( struct wmOperatorType ot)

◆ SCULPT_OT_mask_filter()

void SCULPT_OT_mask_filter ( struct wmOperatorType ot)

Variable Documentation

◆ prop_mask_filter_types

EnumPropertyItem prop_mask_filter_types[]
static
Initial value:
= {
{MASK_FILTER_SMOOTH, "SMOOTH", 0, "Smooth Mask", "Smooth mask"},
{MASK_FILTER_SHARPEN, "SHARPEN", 0, "Sharpen Mask", "Sharpen mask"},
{MASK_FILTER_GROW, "GROW", 0, "Grow Mask", "Grow mask"},
{MASK_FILTER_SHRINK, "SHRINK", 0, "Shrink Mask", "Shrink mask"},
"CONTRAST_INCREASE",
0,
"Increase Contrast",
"Increase the contrast of the paint mask"},
"CONTRAST_DECREASE",
0,
"Decrease Contrast",
"Decrease the contrast of the paint mask"},
{0, NULL, 0, NULL, NULL},
}
@ MASK_FILTER_CONTRAST_DECREASE
@ MASK_FILTER_CONTRAST_INCREASE
@ MASK_FILTER_GROW
@ MASK_FILTER_SMOOTH
@ MASK_FILTER_SHRINK
@ MASK_FILTER_SHARPEN

Definition at line 59 of file sculpt_filter_mask.c.

Referenced by SCULPT_OT_mask_filter().