Blender V5.3
mesh_paint.cc File Reference
#include "mesh_paint.hh"
#include "BKE_mesh.h"
#include "BKE_mesh.hh"
#include "BKE_object.hh"
#include "BKE_object_types.hh"
#include "BKE_paint.hh"
#include "BKE_paint_types.hh"
#include "BKE_scene.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_matrix.hh"
#include "BLI_math_rotation_c.hh"
#include "DEG_depsgraph.hh"
#include "DNA_mesh_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "ED_image.hh"
#include "ED_paint.hh"
#include "sculpt_intern.hh"
#include "../paint_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ed
namespace  blender::ed::sculpt_paint

Functions

Mode toggling
static void blender::ed::sculpt_paint::ensure_valid_pivot (const Object &ob, Paint &paint)
static void blender::ed::sculpt_paint::init_session (Main &bmain, Depsgraph &depsgraph, Paint &paint, Object &ob, eObjectMode object_mode)
void blender::ed::sculpt_paint::mode_enter_generic (Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob, const eObjectMode mode_flag)
void blender::ed::sculpt_paint::mode_exit_generic (Scene &scene, Object &ob, const eObjectMode mode_flag)
Stroke-level Symmetry
static void blender::ed::sculpt_paint::do_radial_symmetry (const Depsgraph &depsgraph, const Scene &scene, const Paint &, const Brush &brush, Object &object, const BrushActionFn action_fn, PaintModeData *paint_mode_data, const ePaintSymmetryFlags symm, const int axis)
void blender::ed::sculpt_paint::do_symmetrical_brush_actions (const Depsgraph &depsgraph, const Scene &scene, const Paint &paint, Object &object, const BrushActionFn action_fn, PaintModeData *paint_mode_data)
static float blender::ed::sculpt_paint::calc_overlap (const StrokeCache &cache, const ePaintSymmetryFlags symm, const char axis, const float angle)
static float blender::ed::sculpt_paint::calc_radial_symmetry_feather (const Mesh &mesh, const StrokeCache &cache, const ePaintSymmetryFlags symm, const char axis)
static float blender::ed::sculpt_paint::calc_symmetry_feather (const Paint &paint, const ePaintSymmetryFlags symm, const Mesh &mesh, const StrokeCache &cache)
static void blender::ed::sculpt_paint::do_tiled (const Depsgraph &depsgraph, const Scene &scene, const Paint &paint, const Brush &brush, Object &object, const BrushActionFn action_fn, PaintModeData *paint_mode_data)
static void blender::ed::sculpt_paint::do_radial_symmetry_with_tiling (const Depsgraph &depsgraph, const Scene &scene, const Paint &paint, const Brush &brush, Object &object, const BrushActionFn action_fn, PaintModeData *paint_mode_data, const ePaintSymmetryFlags symm, const int axis)
void blender::ed::sculpt_paint::do_symmetrical_brush_actions_with_tiling_and_feathering (const Depsgraph &depsgraph, const Scene &scene, const Paint &paint, Object &object, const BrushActionFn action_fn, PaintModeData *paint_mode_data)
StrokeCache Helpers
void blender::ed::sculpt_paint::stroke_cache_common_init (ViewContext &vc, const Paint &paint, const Brush &brush, Object &object, const float2 mval)
BVH Query Helper
IndexMask blender::ed::sculpt_paint::gather_brush_nodes (const Object &ob, const Brush &brush, IndexMaskMemory &memory, FunctionRef< bool(const bke::pbvh::Node &)> node_ignore_fn)