Blender V5.0
paint_image_2d_curve_mask.cc File Reference
#include "MEM_guardedalloc.h"
#include "DNA_brush_types.h"
#include "BKE_brush.hh"
#include "BLI_math_vector.h"
#include "paint_intern.hh"

Go to the source code of this file.

Namespaces

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

Functions

static int blender::ed::sculpt_paint::aa_samples_per_texel_axis (const Brush *brush, const float radius)
static void blender::ed::sculpt_paint::update_curve_mask (CurveMaskCache *curve_mask_cache, const Brush *brush, const int diameter, const float radius, const float cursor_position[2])
static bool blender::ed::sculpt_paint::is_sampled_curve_valid (const CurveMaskCache *curve_mask_cache, const Brush *brush)
static void blender::ed::sculpt_paint::sampled_curve_free (CurveMaskCache *curve_mask_cache)
static void blender::ed::sculpt_paint::update_sampled_curve (CurveMaskCache *curve_mask_cache, const Brush *brush)
static size_t blender::ed::sculpt_paint::diameter_to_curve_mask_size (const int diameter)
static bool blender::ed::sculpt_paint::is_curve_mask_size_valid (const CurveMaskCache *curve_mask_cache, const int diameter)
static void blender::ed::sculpt_paint::curve_mask_free (CurveMaskCache *curve_mask_cache)
static void blender::ed::sculpt_paint::curve_mask_allocate (CurveMaskCache *curve_mask_cache, const int diameter)
void paint_curve_mask_cache_free_data (CurveMaskCache *curve_mask_cache)
void paint_curve_mask_cache_update (CurveMaskCache *curve_mask_cache, const Brush *brush, const int diameter, const float radius, const float cursor_position[2])

Variables

constexpr int blender::ed::sculpt_paint::AntiAliasingSamplesPerTexelAxisMin = 3
constexpr int blender::ed::sculpt_paint::AntiAliasingSamplesPerTexelAxisMax = 16
constexpr int blender::ed::sculpt_paint::CurveSamplesBaseLen = 1024
 Number of samples to use between 0..1.
constexpr int blender::ed::sculpt_paint::CurveSamplesLen = M_SQRT2 * CurveSamplesBaseLen + 1
 Number of samples to store in the cache.

Function Documentation

◆ paint_curve_mask_cache_free_data()

void paint_curve_mask_cache_free_data ( CurveMaskCache * curve_mask_cache)

◆ paint_curve_mask_cache_update()