Blender V5.3
blender::ed::sculpt_paint::StrokeCache Struct Reference

#include <sculpt_intern.hh>

Classes

struct  [struct].mirror_modifier_clip
struct  [struct].displacement_smear
struct  [struct].paint_brush
struct  [struct].clay_thumb_brush
struct  [struct].plane_brush

Public Member Functions

Sculpt Brush Utilities
 StrokeCache ()
 ~StrokeCache ()

Public Attributes

float initial_radius = 0.0f
float3 scale = float3(0)
struct  mirror_modifier_clip
float2 initial_mouse = float2(0)
bool initial_direction_flipped = false
StrokeToggleSettings toggle_settings = {}
float radius = 0.0f
float radius_squared = 0.0f
float3 location = float3(0)
float3 last_location = float3(0)
float3 location_symm = float3(0)
float3 last_location_symm = float3(0)
float stroke_distance = 0.0f
int iteration_count = 0
float dyntopo_pixel_radius = 0.0f
bool is_last_valid = false
float pressure = 0.0f
float hardness = 0.0f
float base_brush_strength = 0.0f
float feather = 0.0f
float bstrength = 0.0f
float2 tilt = float2(0)
float2 mouse = float2(0)
float2 mouse_event = float2(0)
struct  displacement_smear
std::optional< float3 > initial_hsv_jitter
bool first_time = false
float4x4 projection_mat = float4x4::identity()
ViewContext * vc = nullptr
const Brush * brush = nullptr
const Paint * paint = nullptr
float3 tip_motion_normal = float3(0)
float3 tip_motion_normal_symm = float3(0)
float3 grab_delta = float3(0)
float3 grab_delta_symm = float3(0)
float3 old_grab_location = float3(0)
float3 orig_grab_location = float3(0)
std::optional< math::Quaternion > rake_rotation
std::optional< math::Quaternion > rake_rotation_symm
SculptRakeData rake_data
int paint_face_set = face_set_none_id
ePaintSymmetryFlags mirror_symmetry_pass = ePaintSymmetryFlags(0)
float3 view_normal = float3(0)
float3 view_normal_symm = float3(0)
float3 sculpt_normal = float3(0)
float3 sculpt_normal_symm = float3(0)
float4x4 brush_local_mat = float4x4::zero()
float4x4 brush_local_mat_inv = float4x4::zero()
float3 plane_offset = float3(0)
int tile_pass = 0
float3 last_center = float3(0)
int radial_symmetry_pass = 0
float4x4 symm_rot_mat = float4x4::identity()
float4x4 symm_rot_mat_inv = float4x4::identity()
bool accum = false
struct  paint_brush
std::unique_ptr< pose::IKChain > pose_ik_chain
Array< float3 > detail_directions
struct  clay_thumb_brush
struct  plane_brush
Vector< ProjectBrushTarget > project_targets
std::unique_ptr< cloth::SimulationData > cloth_sim
float3 initial_location_symm = float3(0)
float3 initial_location = float3(0)
float3 initial_normal_symm = float3(0)
float3 initial_normal = float3(0)
std::array< std::unique_ptr< boundary::SculptBoundary >, PAINT_SYMM_AREAS > boundaries
Array< float3 > surface_smooth_laplacian_disp
Array< float > layer_displacement_factor
float vertex_rotation = 0.0f
Dial * dial = nullptr
float plane_trim_squared = 0.0f
bool supports_gravity = false
float3 gravity_direction = float3(0)
float3 gravity_direction_symm = float3(0)
std::unique_ptr< auto_mask::Cache > automasking
float4x4 stroke_local_mat = float4x4::identity()
float multiplane_scrape_angle = 0.0f

Detailed Description

This structure contains all the temporary data needed for individual brush strokes.

Definition at line 194 of file mesh/sculpt_intern.hh.

Constructor & Destructor Documentation

◆ StrokeCache()

blender::ed::sculpt_paint::StrokeCache::StrokeCache ( )
default

References StrokeCache().

Referenced by StrokeCache().

◆ ~StrokeCache()

blender::ed::sculpt_paint::StrokeCache::~StrokeCache ( )

Definition at line 3862 of file sculpt.cc.

References blender::BLI_dial_free(), dial, and ~StrokeCache().

Referenced by ~StrokeCache().

Member Data Documentation

◆ accum

◆ automasking

std::unique_ptr<auto_mask::Cache> blender::ed::sculpt_paint::StrokeCache::automasking

Definition at line 429 of file mesh/sculpt_intern.hh.

Referenced by blender::ed::sculpt_paint::auto_mask::active_cache_get(), blender::ed::sculpt_paint::boundary::calc_bend_bmesh(), blender::ed::sculpt_paint::boundary::calc_bend_grids(), blender::ed::sculpt_paint::boundary::calc_bend_mesh(), blender::ed::sculpt_paint::brushes::calc_bmesh(), blender::ed::sculpt_paint::pose::calc_bmesh(), blender::ed::sculpt_paint::calc_cube_tip_factors_common_bmesh(), blender::ed::sculpt_paint::calc_cube_tip_factors_common_grids(), blender::ed::sculpt_paint::brushes::calc_faces(), blender::ed::sculpt_paint::calc_factors_common_bmesh(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_bmesh(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_grids(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_mesh(), blender::ed::sculpt_paint::calc_factors_common_grids(), blender::ed::sculpt_paint::calc_factors_common_mesh(), blender::ed::sculpt_paint::calc_factors_common_mesh_indexed(), blender::ed::sculpt_paint::boundary::calc_grab_bmesh(), blender::ed::sculpt_paint::boundary::calc_grab_grids(), blender::ed::sculpt_paint::boundary::calc_grab_mesh(), blender::ed::sculpt_paint::brushes::calc_grids(), blender::ed::sculpt_paint::pose::calc_grids(), blender::ed::sculpt_paint::boundary::calc_inflate_bmesh(), blender::ed::sculpt_paint::boundary::calc_inflate_grids(), blender::ed::sculpt_paint::boundary::calc_inflate_mesh(), blender::ed::sculpt_paint::pose::calc_mesh(), blender::ed::sculpt_paint::boundary::calc_slide_bmesh(), blender::ed::sculpt_paint::boundary::calc_slide_grids(), blender::ed::sculpt_paint::boundary::calc_slide_mesh(), blender::ed::sculpt_paint::boundary::calc_twist_bmesh(), blender::ed::sculpt_paint::boundary::calc_twist_grids(), blender::ed::sculpt_paint::boundary::calc_twist_mesh(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::color::do_sample_wet_paint_task(), blender::ed::sculpt_paint::color::do_smear_brush_task(), blender::do_vpaint_brush_blur_loops(), blender::do_vpaint_brush_blur_verts(), blender::do_vpaint_brush_smear(), blender::do_wpaint_brush_smear(), blender::ed::sculpt_paint::brushes::sample_node_surface_bmesh(), blender::ed::sculpt_paint::brushes::sample_node_surface_grids(), blender::ed::sculpt_paint::brushes::sample_node_surface_mesh(), blender::ed::sculpt_paint::auto_mask::stroke_cache_ensure(), and blender::vpaint_do_draw().

◆ base_brush_strength

◆ boundaries

◆ brush

◆ brush_local_mat

float4x4 blender::ed::sculpt_paint::StrokeCache::brush_local_mat = float4x4::zero()

Used for area texture mode, local_mat gets calculated by calc_brush_local_mat() and used in sculpt_apply_texture(). Transforms from model-space coords to local area coords.

Definition at line 322 of file mesh/sculpt_intern.hh.

Referenced by blender::ed::sculpt_paint::apply_brush_texture(), and blender::ed::sculpt_paint::update_brush_local_mat().

◆ brush_local_mat_inv

float4x4 blender::ed::sculpt_paint::StrokeCache::brush_local_mat_inv = float4x4::zero()

The matrix from local area coords to model-space coords is used to calculate the vector displacement in area plane mode.

Definition at line 327 of file mesh/sculpt_intern.hh.

Referenced by blender::ed::sculpt_paint::calc_vertex_displacement(), and blender::ed::sculpt_paint::update_brush_local_mat().

◆ bstrength

float blender::ed::sculpt_paint::StrokeCache::bstrength = 0.0f

Definition at line 254 of file mesh/sculpt_intern.hh.

Referenced by blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), blender::ed::sculpt_paint::brushes::clay_strips::calc_node_mask(), blender::ed::sculpt_paint::pose::calc_rotate_deform(), blender::ed::sculpt_paint::pose::calc_scale_deform(), blender::ed::sculpt_paint::pose::calc_squash_stretch_deform(), blender::ed::sculpt_paint::pose::calc_twist_deform(), blender::ed::sculpt_paint::calc_vertex_displacement(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::brushes::do_clay_brush(), blender::ed::sculpt_paint::brushes::do_clay_strips_brush(), blender::ed::sculpt_paint::brushes::do_clay_thumb_brush(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::brushes::do_displacement_eraser_brush(), blender::ed::sculpt_paint::brushes::do_displacement_smear_brush(), blender::ed::sculpt_paint::brushes::do_draw_brush(), blender::ed::sculpt_paint::brushes::do_draw_sharp_brush(), blender::ed::sculpt_paint::brushes::do_elastic_deform_brush(), blender::ed::sculpt_paint::brushes::do_enhance_details_brush(), blender::ed::sculpt_paint::brushes::do_grab_brush(), blender::ed::sculpt_paint::brushes::do_inflate_brush(), blender::ed::sculpt_paint::brushes::do_mask_brush(), blender::ed::sculpt_paint::brushes::do_multiplane_scrape_brush(), blender::ed::sculpt_paint::brushes::do_nudge_brush(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::image::do_paint_pixels(), blender::ed::sculpt_paint::brushes::do_pinch_brush(), blender::ed::sculpt_paint::brushes::do_plane_brush(), blender::ed::sculpt_paint::brushes::do_relax_face_sets_brush(), blender::ed::sculpt_paint::color::do_smear_brush(), blender::ed::sculpt_paint::color::do_smear_brush_task(), blender::ed::sculpt_paint::brushes::do_snake_hook_brush(), blender::ed::sculpt_paint::do_symmetrical_brush_actions(), blender::ed::sculpt_paint::do_symmetrical_brush_actions_with_tiling_and_feathering(), blender::ed::sculpt_paint::brushes::do_thumb_brush(), blender::ed::sculpt_paint::brushes::do_topology_relax_brush(), blender::do_vpaint_brush_blur_loops(), blender::do_vpaint_brush_blur_verts(), blender::do_vpaint_brush_smear(), blender::do_wpaint_brush_smear(), blender::ed::sculpt_paint::boundary::get_mesh_strength(), blender::ed::sculpt_paint::pose::sculpt_pose_do_translate_deform(), blender::ed::sculpt_paint::stroke_cache_update(), blender::ed::sculpt_paint::vwpaint::update_cache_invariants(), blender::WeightPaintStroke::update_step(), and blender::vpaint_do_draw().

◆ clay_thumb_brush

◆ cloth_sim

std::unique_ptr<cloth::SimulationData> blender::ed::sculpt_paint::StrokeCache::cloth_sim

Definition at line 403 of file mesh/sculpt_intern.hh.

Referenced by blender::ed::sculpt_paint::boundary::calc_bend_bmesh(), blender::ed::sculpt_paint::boundary::calc_bend_grids(), blender::ed::sculpt_paint::boundary::calc_bend_mesh(), blender::ed::sculpt_paint::pose::calc_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), blender::ed::sculpt_paint::boundary::calc_grab_bmesh(), blender::ed::sculpt_paint::boundary::calc_grab_grids(), blender::ed::sculpt_paint::boundary::calc_grab_mesh(), blender::ed::sculpt_paint::pose::calc_grids(), blender::ed::sculpt_paint::boundary::calc_inflate_bmesh(), blender::ed::sculpt_paint::boundary::calc_inflate_grids(), blender::ed::sculpt_paint::boundary::calc_inflate_mesh(), blender::ed::sculpt_paint::pose::calc_mesh(), blender::ed::sculpt_paint::boundary::calc_slide_bmesh(), blender::ed::sculpt_paint::boundary::calc_slide_grids(), blender::ed::sculpt_paint::boundary::calc_slide_mesh(), blender::ed::sculpt_paint::boundary::calc_smooth_bmesh(), blender::ed::sculpt_paint::boundary::calc_smooth_grids(), blender::ed::sculpt_paint::boundary::calc_smooth_mesh(), blender::ed::sculpt_paint::boundary::calc_twist_bmesh(), blender::ed::sculpt_paint::boundary::calc_twist_grids(), blender::ed::sculpt_paint::boundary::calc_twist_mesh(), blender::ed::sculpt_paint::cloth::cloth_brush_apply_brush_forces(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::cloth::do_cloth_brush(), and blender::ed::sculpt_paint::cloth::sculpt_cloth_ensure_constraints_in_simulation_area().

◆ detail_directions

Array<float3> blender::ed::sculpt_paint::StrokeCache::detail_directions

◆ dial

Dial* blender::ed::sculpt_paint::StrokeCache::dial = nullptr

◆ displacement_smear

◆ dyntopo_pixel_radius

float blender::ed::sculpt_paint::StrokeCache::dyntopo_pixel_radius = 0.0f

◆ feather

float blender::ed::sculpt_paint::StrokeCache::feather = 0.0f

Feather factor, calculated on a per-overall brush step, modulates base_brush_strength

Definition at line 251 of file mesh/sculpt_intern.hh.

Referenced by blender::ed::sculpt_paint::do_symmetrical_brush_actions_with_tiling_and_feathering().

◆ first_time

◆ grab_delta

◆ grab_delta_symm

◆ gravity_direction

float3 blender::ed::sculpt_paint::StrokeCache::gravity_direction = float3(0)

◆ gravity_direction_symm

◆ hardness

◆ initial_direction_flipped

bool blender::ed::sculpt_paint::StrokeCache::initial_direction_flipped = false

Some brushes change behavior drastically depending on the directional value (i.e. the smooth and enhance details functionality being bound to the Smooth brush).

Storing the initial direction allows discerning the behavior without checking the sign of the brush direction at every step, which would have ambiguity at 0.

Definition at line 213 of file mesh/sculpt_intern.hh.

Referenced by blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::brushes::do_plane_brush(), and blender::ed::sculpt_paint::stroke_cache_init().

◆ initial_hsv_jitter

◆ initial_location

◆ initial_location_symm

◆ initial_mouse

◆ initial_normal

◆ initial_normal_symm

◆ initial_radius

◆ is_last_valid

bool blender::ed::sculpt_paint::StrokeCache::is_last_valid = false

Definition at line 235 of file mesh/sculpt_intern.hh.

◆ iteration_count

int blender::ed::sculpt_paint::StrokeCache::iteration_count = 0

Used for alternating between deformations in brushes that need to apply different ones to achieve certain effects.

Definition at line 230 of file mesh/sculpt_intern.hh.

Referenced by blender::ed::sculpt_paint::brushes::do_relax_face_sets_brush(), and blender::ed::sculpt_paint::stroke_cache_update().

◆ last_center

float3 blender::ed::sculpt_paint::StrokeCache::last_center = float3(0)

Definition at line 333 of file mesh/sculpt_intern.hh.

Referenced by blender::ed::sculpt_paint::calc_brush_plane().

◆ last_location

◆ last_location_symm

◆ layer_displacement_factor

Array<float> blender::ed::sculpt_paint::StrokeCache::layer_displacement_factor

◆ location

◆ location_symm

float3 blender::ed::sculpt_paint::StrokeCache::location_symm = float3(0)

Definition at line 222 of file mesh/sculpt_intern.hh.

Referenced by blender::ed::sculpt_paint::cloth::add_constraints_for_verts(), blender::ed::sculpt_paint::cloth::brush_affected_nodes_gather(), blender::ed::sculpt_paint::cache_calc_brushdata_symm(), blender::ed::sculpt_paint::calc_area_normal_and_center_node_bmesh(), blender::ed::sculpt_paint::calc_area_normal_and_center_node_grids(), blender::ed::sculpt_paint::calc_area_normal_and_center_node_mesh(), blender::ed::sculpt_paint::calc_brush_distances_squared(), blender::ed::sculpt_paint::calc_brush_distances_squared(), blender::ed::sculpt_paint::calc_brush_node_mask(), blender::ed::sculpt_paint::calc_cube_tip_factors_common_bmesh(), blender::ed::sculpt_paint::calc_cube_tip_factors_common_grids(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), blender::ed::sculpt_paint::brushes::clay_strips::calc_node_mask(), blender::ed::sculpt_paint::brushes::plane::calc_node_mask(), blender::ed::sculpt_paint::cloth::cloth_brush_apply_brush_forces(), blender::ed::sculpt_paint::cloth::cloth_brush_simulation_location_get(), blender::ed::sculpt_paint::cube_tip_init(), blender::ed::sculpt_paint::color::do_blur_brush(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::brushes::do_clay_brush(), blender::ed::sculpt_paint::brushes::do_clay_thumb_brush(), blender::ed::sculpt_paint::brushes::do_multiplane_scrape_brush(), blender::ed::sculpt_paint::color::do_paint_brush(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::image::do_paint_pixels(), blender::ed::sculpt_paint::brushes::do_pinch_brush(), blender::ed::sculpt_paint::color::do_smear_brush_task(), blender::ed::sculpt_paint::do_tiled(), blender::do_vpaint_brush_smear(), blender::do_wpaint_brush_smear(), blender::ed::sculpt_paint::dynamic_topology_update(), blender::ed::sculpt_paint::gather_brush_nodes(), blender::ed::sculpt_paint::image::init_uv_primitives_brush_test(), blender::ed::sculpt_paint::pbvh_gather_cursor_update(), blender::ed::sculpt_paint::pbvh_gather_generic(), and blender::ed::sculpt_paint::update_brush_local_mat().

◆ mirror_modifier_clip

◆ mirror_symmetry_pass

ePaintSymmetryFlags blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass = ePaintSymmetryFlags(0)

Definition at line 302 of file mesh/sculpt_intern.hh.

Referenced by blender::ed::sculpt_paint::apply_brush_texture(), blender::ed::sculpt_paint::calc_brush_plane(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), blender::ed::sculpt_paint::auto_mask::calc_interpolated_face_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::calc_vertex_displacement(), blender::ed::sculpt_paint::cloth::cloth_brush_apply_brush_forces(), blender::ed::sculpt_paint::boundary::do_boundary_brush(), blender::ed::sculpt_paint::brushes::do_elastic_deform_brush(), blender::ed::sculpt_paint::brushes::do_multiplane_scrape_brush(), blender::ed::sculpt_paint::pose::do_pose_brush(), blender::ed::sculpt_paint::brushes::do_rotate_brush(), blender::ed::sculpt_paint::do_symmetrical_brush_actions(), blender::ed::sculpt_paint::do_symmetrical_brush_actions_with_tiling_and_feathering(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::ed::sculpt_paint::boundary::get_mesh_strength(), blender::ed::sculpt_paint::boundary::init_boundary_bmesh(), blender::ed::sculpt_paint::boundary::init_boundary_grids(), blender::ed::sculpt_paint::boundary::init_boundary_mesh(), blender::ed::sculpt_paint::stroke_is_first_brush_step(), blender::ed::sculpt_paint::stroke_is_main_symmetry_pass(), blender::ed::sculpt_paint::update_brush_local_mat(), blender::ed::sculpt_paint::update_sculpt_normal(), and blender::WeightPaintStroke::update_step().

◆ mouse

◆ mouse_event

◆ multiplane_scrape_angle

float blender::ed::sculpt_paint::StrokeCache::multiplane_scrape_angle = 0.0f

◆ old_grab_location

float3 blender::ed::sculpt_paint::StrokeCache::old_grab_location = float3(0)

◆ orig_grab_location

float3 blender::ed::sculpt_paint::StrokeCache::orig_grab_location = float3(0)

◆ paint

const Paint* blender::ed::sculpt_paint::StrokeCache::paint = nullptr

◆ paint_brush

◆ paint_face_set

◆ plane_brush

◆ plane_offset

◆ plane_trim_squared

float blender::ed::sculpt_paint::StrokeCache::plane_trim_squared = 0.0f

◆ pose_ik_chain

◆ pressure

◆ project_targets

Vector<ProjectBrushTarget> blender::ed::sculpt_paint::StrokeCache::project_targets

◆ projection_mat

◆ radial_symmetry_pass

◆ radius

float blender::ed::sculpt_paint::StrokeCache::radius = 0.0f

Definition at line 218 of file mesh/sculpt_intern.hh.

Referenced by blender::ed::sculpt_paint::cloth::add_constraints_for_verts(), blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::ed::sculpt_paint::area_normal_and_center_get_normal_radius(), blender::ed::sculpt_paint::area_normal_and_center_get_position_radius(), blender::ed::sculpt_paint::cloth::brush_affected_nodes_gather(), blender::ed::sculpt_paint::brush_delta_update(), blender::ed::sculpt_paint::brushes::calc_bmesh(), blender::ed::sculpt_paint::calc_brush_node_mask(), blender::ed::sculpt_paint::calc_brush_strength_factors(), blender::ed::sculpt_paint::cloth::calc_constraint_factors(), blender::ed::sculpt_paint::brushes::calc_faces(), blender::ed::sculpt_paint::calc_factors_common_bmesh(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_bmesh(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_grids(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_mesh(), blender::ed::sculpt_paint::calc_factors_common_grids(), blender::ed::sculpt_paint::calc_factors_common_mesh(), blender::ed::sculpt_paint::calc_factors_common_mesh_indexed(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), blender::ed::sculpt_paint::brushes::calc_grids(), blender::ed::sculpt_paint::brushes::clay_strips::calc_local_matrix(), blender::ed::sculpt_paint::brushes::clay_strips::calc_node_mask(), blender::ed::sculpt_paint::calc_overlap(), blender::calculate_average_color(), blender::ed::sculpt_paint::cloth::cloth_brush_apply_brush_forces(), blender::ed::sculpt_paint::cube_tip_init(), blender::ed::sculpt_paint::brushes::do_clay_strips_brush(), blender::ed::sculpt_paint::brushes::do_clay_thumb_brush(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::brushes::do_draw_brush(), blender::ed::sculpt_paint::brushes::do_draw_sharp_brush(), blender::ed::sculpt_paint::brushes::do_elastic_deform_brush(), blender::ed::sculpt_paint::brushes::do_inflate_brush(), blender::ed::sculpt_paint::brushes::do_multiplane_scrape_brush(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::image::do_paint_pixels(), blender::ed::sculpt_paint::brushes::do_plane_brush(), blender::ed::sculpt_paint::color::do_sample_wet_paint_task(), blender::ed::sculpt_paint::color::do_smear_brush_task(), blender::ed::sculpt_paint::do_tiled(), blender::do_vpaint_brush_blur_loops(), blender::do_vpaint_brush_blur_verts(), blender::do_vpaint_brush_smear(), blender::do_wpaint_brush_smear(), blender::ed::sculpt_paint::dynamic_topology_update(), blender::ed::sculpt_paint::auto_mask::fill_topology_automasking_factors_bmesh(), blender::ed::sculpt_paint::auto_mask::fill_topology_automasking_factors_grids(), blender::ed::sculpt_paint::auto_mask::fill_topology_automasking_factors_mesh(), blender::ed::sculpt_paint::boundary::get_mesh_strength(), blender::ed::sculpt_paint::image::init_uv_primitives_brush_test(), blender::ed::sculpt_paint::mesh_cursor_active_draw(), blender::ed::sculpt_paint::brushes::multiplane_scrape_preview_draw(), blender::ed::sculpt_paint::pbvh_gather_generic(), blender::ed::sculpt_paint::cloth::plane_falloff_preview_draw(), blender::ed::sculpt_paint::pose::pose_brush_init(), blender::ed::sculpt_paint::brushes::sample_node_surface_bmesh(), blender::ed::sculpt_paint::brushes::sample_node_surface_grids(), blender::ed::sculpt_paint::brushes::sample_node_surface_mesh(), blender::ed::sculpt_paint::cloth::solve_verts_simulation(), blender::ed::sculpt_paint::image::ops::paint::stroke_cache_update(), blender::ed::sculpt_paint::stroke_cache_update(), blender::ed::sculpt_paint::update_brush_local_mat(), blender::ed::sculpt_paint::vwpaint::update_cache_variants(), and blender::vpaint_do_draw().

◆ radius_squared

◆ rake_data

SculptRakeData blender::ed::sculpt_paint::StrokeCache::rake_data

◆ rake_rotation

std::optional<math::Quaternion> blender::ed::sculpt_paint::StrokeCache::rake_rotation

◆ rake_rotation_symm

std::optional<math::Quaternion> blender::ed::sculpt_paint::StrokeCache::rake_rotation_symm

◆ scale

◆ sculpt_normal

float3 blender::ed::sculpt_paint::StrokeCache::sculpt_normal = float3(0)

The primary direction of influence for a brush stroke.

May be unused for some brushes (e.g. Smooth) May be only calculated at the beginning of a stroke (e.g. Grab)

Calculated by either #calc_sculpt_normal or calc_brush_plane.

Definition at line 314 of file mesh/sculpt_intern.hh.

Referenced by blender::ed::sculpt_paint::calc_brush_plane(), and blender::ed::sculpt_paint::update_sculpt_normal().

◆ sculpt_normal_symm

◆ stroke_distance

◆ stroke_local_mat

◆ supports_gravity

◆ surface_smooth_laplacian_disp

Array<float3> blender::ed::sculpt_paint::StrokeCache::surface_smooth_laplacian_disp

◆ symm_rot_mat

◆ symm_rot_mat_inv

◆ tile_pass

◆ tilt

◆ tip_motion_normal

float3 blender::ed::sculpt_paint::StrokeCache::tip_motion_normal = float3(0)

◆ tip_motion_normal_symm

float3 blender::ed::sculpt_paint::StrokeCache::tip_motion_normal_symm = float3(0)

◆ toggle_settings

◆ vc

◆ vertex_rotation

float blender::ed::sculpt_paint::StrokeCache::vertex_rotation = 0.0f

◆ view_normal

◆ view_normal_symm

float3 blender::ed::sculpt_paint::StrokeCache::view_normal_symm = float3(0)

Definition at line 304 of file mesh/sculpt_intern.hh.

Referenced by blender::ed::sculpt_paint::brush_frontface_normal_from_falloff_shape(), blender::ed::sculpt_paint::cache_calc_brushdata_symm(), blender::ed::sculpt_paint::calc_area_normal_and_center_node_bmesh(), blender::ed::sculpt_paint::calc_area_normal_and_center_node_grids(), blender::ed::sculpt_paint::calc_area_normal_and_center_node_mesh(), blender::ed::sculpt_paint::brushes::calc_bmesh(), blender::ed::sculpt_paint::calc_brush_distances_squared(), blender::ed::sculpt_paint::calc_brush_distances_squared(), blender::ed::sculpt_paint::calc_brush_node_mask(), blender::ed::sculpt_paint::calc_brush_plane(), blender::ed::sculpt_paint::calc_cube_tip_factors_common_bmesh(), blender::ed::sculpt_paint::calc_cube_tip_factors_common_grids(), blender::ed::sculpt_paint::brushes::calc_faces(), blender::ed::sculpt_paint::calc_factors_common_bmesh(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_bmesh(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_grids(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_mesh(), blender::ed::sculpt_paint::calc_factors_common_grids(), blender::ed::sculpt_paint::calc_factors_common_mesh(), blender::ed::sculpt_paint::calc_factors_common_mesh_indexed(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), blender::ed::sculpt_paint::brushes::calc_grids(), blender::ed::sculpt_paint::brushes::clay_strips::calc_node_mask(), blender::ed::sculpt_paint::brushes::plane::calc_node_mask(), blender::ed::sculpt_paint::auto_mask::calc_view_normal_factor(), blender::ed::sculpt_paint::cube_tip_init(), blender::ed::sculpt_paint::brushes::do_clay_strips_brush(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::color::do_sample_wet_paint_task(), blender::ed::sculpt_paint::color::do_smear_brush_task(), blender::do_vpaint_brush_smear(), blender::do_wpaint_brush_smear(), blender::ed::sculpt_paint::dynamic_topology_update(), blender::ed::sculpt_paint::gather_brush_nodes(), blender::ed::sculpt_paint::pbvh_gather_generic(), blender::ed::sculpt_paint::brushes::sample_node_surface_bmesh(), blender::ed::sculpt_paint::brushes::sample_node_surface_grids(), blender::ed::sculpt_paint::brushes::sample_node_surface_mesh(), blender::ed::sculpt_paint::sculpt_project_v3_normal_align(), blender::ed::sculpt_paint::update_brush_local_mat(), blender::ed::sculpt_paint::update_sculpt_normal(), and blender::ed::sculpt_paint::vwpaint::update_sculpt_normal().


The documentation for this struct was generated from the following files: