Blender  V3.3
Public Attributes | List of all members
StrokeCache Struct Reference

#include <sculpt_intern.h>

Public Attributes

float initial_radius
 
float scale [3]
 
int flag
 
float clip_tolerance [3]
 
float clip_mirror_mtx [4][4]
 
float initial_mouse [2]
 
float radius
 
float radius_squared
 
float true_location [3]
 
float true_last_location [3]
 
float location [3]
 
float last_location [3]
 
float stroke_distance
 
int iteration_count
 
float dyntopo_pixel_radius
 
bool is_last_valid
 
bool pen_flip
 
bool invert
 
float pressure
 
float bstrength
 
float normal_weight
 
float x_tilt
 
float y_tilt
 
float mouse [2]
 
float mouse_event [2]
 
float(* prev_colors )[4]
 
voidprev_colors_vpaint
 
float(* prev_displacement )[3]
 
float(* limit_surface_co )[3]
 
bool first_time
 
float projection_mat [4][4]
 
struct ViewContextvc
 
const struct Brushbrush
 
float special_rotation
 
float grab_delta [3]
 
float grab_delta_symmetry [3]
 
float old_grab_location [3]
 
float orig_grab_location [3]
 
float rake_rotation [4]
 
float rake_rotation_symmetry [4]
 
bool is_rake_rotation_valid
 
struct SculptRakeData rake_data
 
int paint_face_set
 
int symmetry
 
int mirror_symmetry_pass
 
float true_view_normal [3]
 
float view_normal [3]
 
float sculpt_normal [3]
 
float sculpt_normal_symm [3]
 
float brush_local_mat [4][4]
 
float plane_offset [3]
 
int tile_pass
 
float last_center [3]
 
int radial_symmetry_pass
 
float symm_rot_mat [4][4]
 
float symm_rot_mat_inv [4][4]
 
bool original
 
float anchored_location [3]
 
struct {
   float   hardness
 
   float   flow
 
   float   wet_mix
 
   float   wet_persistence
 
   float   density
 
paint_brush
 
struct SculptPoseIKChainpose_ik_chain
 
float(* detail_directions )[3]
 
float clay_thumb_front_angle
 
float clay_pressure_stabilizer [SCULPT_CLAY_STABILIZER_LEN]
 
int clay_pressure_stabilizer_index
 
struct SculptClothSimulationcloth_sim
 
float initial_location [3]
 
float true_initial_location [3]
 
float initial_normal [3]
 
float true_initial_normal [3]
 
struct SculptBoundaryboundaries [PAINT_SYMM_AREAS]
 
float(* surface_smooth_laplacian_disp )[3]
 
floatlayer_displacement_factor
 
float vertex_rotation
 
struct Dialdial
 
char saved_active_brush_name [MAX_ID_NAME]
 
char saved_mask_brush_tool
 
int saved_smooth_size
 
bool alt_smooth
 
float plane_trim_squared
 
bool supports_gravity
 
float true_gravity_direction [3]
 
float gravity_direction [3]
 
AutomaskingCacheautomasking
 
float stroke_local_mat [4][4]
 
float multiplane_scrape_angle
 
float wet_mix_prev_color [4]
 
float density_seed
 
rcti previous_r
 
rcti current_r
 

Detailed Description

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

Definition at line 472 of file sculpt_intern.h.

Member Data Documentation

◆ alt_smooth

bool StrokeCache::alt_smooth

◆ anchored_location

float StrokeCache::anchored_location[3]

Definition at line 568 of file sculpt_intern.h.

Referenced by sculpt_update_brush_delta(), and sculpt_update_cache_variants().

◆ automasking

AutomaskingCache* StrokeCache::automasking

◆ boundaries

struct SculptBoundary* StrokeCache::boundaries[PAINT_SYMM_AREAS]

◆ brush

const struct Brush* StrokeCache::brush

◆ brush_local_mat

float StrokeCache::brush_local_mat[4][4]

Definition at line 558 of file sculpt_intern.h.

Referenced by SCULPT_brush_strength_factor(), and update_brush_local_mat().

◆ bstrength

float StrokeCache::bstrength

Definition at line 502 of file sculpt_intern.h.

Referenced by do_boundary_brush_bend_task_cb_ex(), do_boundary_brush_grab_task_cb_ex(), do_boundary_brush_inflate_task_cb_ex(), do_boundary_brush_slide_task_cb_ex(), do_boundary_brush_smooth_task_cb_ex(), do_boundary_brush_twist_task_cb_ex(), do_clay_brush_task_cb_ex(), do_clay_strips_brush_task_cb_ex(), do_cloth_brush_apply_forces_task_cb_ex(), do_color_smooth_task_cb_exec(), do_displacement_eraser_brush_task_cb_ex(), do_displacement_smear_brush_task_cb_ex(), do_draw_face_sets_brush_task_cb_ex(), do_elastic_deform_brush_task_cb_ex(), do_enhance_details_brush_task_cb_ex(), do_fill_brush_task_cb_ex(), do_flatten_brush_task_cb_ex(), do_grab_brush_task_cb_ex(), do_inflate_brush_task_cb_ex(), do_layer_brush_task_cb_ex(), do_mask_brush_draw_task_cb_ex(), do_multiplane_scrape_brush_task_cb_ex(), do_nudge_brush_task_cb_ex(), do_paint_brush_task_cb_ex(), do_pinch_brush_task_cb_ex(), do_relax_face_sets_brush_task_cb_ex(), do_rotate_brush_task_cb_ex(), do_scrape_brush_task_cb_ex(), do_smear_brush_task_cb_exec(), do_snake_hook_brush_task_cb_ex(), do_symmetrical_brush_actions(), do_thumb_brush_task_cb_ex(), do_topology_relax_task_cb_ex(), do_topology_slide_task_cb_ex(), do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), do_wpaint_brush_blur_task_cb_ex(), do_wpaint_brush_draw_task_cb_ex(), do_wpaint_brush_smear_task_cb_ex(), SCULPT_do_clay_brush(), SCULPT_do_clay_strips_brush(), SCULPT_do_clay_thumb_brush(), SCULPT_do_crease_brush(), SCULPT_do_draw_brush(), SCULPT_do_draw_sharp_brush(), SCULPT_do_mask_brush(), SCULPT_do_multiplane_scrape_brush(), SCULPT_do_smear_brush(), SCULPT_do_smooth_brush(), SCULPT_do_snake_hook_brush(), SCULPT_do_surface_smooth_brush_displace_task_cb_ex(), SCULPT_do_surface_smooth_brush_laplacian_task_cb_ex(), sculpt_pose_do_twist_deform(), sculpt_update_cache_variants(), vpaint_do_draw(), and vwpaint_update_cache_invariants().

◆ clay_pressure_stabilizer

float StrokeCache::clay_pressure_stabilizer[SCULPT_CLAY_STABILIZER_LEN]

◆ clay_pressure_stabilizer_index

int StrokeCache::clay_pressure_stabilizer_index

Definition at line 590 of file sculpt_intern.h.

Referenced by sculpt_update_cache_variants().

◆ clay_thumb_front_angle

float StrokeCache::clay_thumb_front_angle

Definition at line 587 of file sculpt_intern.h.

Referenced by do_clay_thumb_brush_task_cb_ex(), and SCULPT_do_clay_thumb_brush().

◆ clip_mirror_mtx

float StrokeCache::clip_mirror_mtx[4][4]

Definition at line 478 of file sculpt_intern.h.

Referenced by SCULPT_clip(), and sculpt_init_mirror_clipping().

◆ clip_tolerance

float StrokeCache::clip_tolerance[3]

Definition at line 477 of file sculpt_intern.h.

Referenced by SCULPT_clip(), and sculpt_init_mirror_clipping().

◆ cloth_sim

struct SculptClothSimulation* StrokeCache::cloth_sim

◆ current_r

rcti StrokeCache::current_r

◆ density

float StrokeCache::density

◆ density_seed

float StrokeCache::density_seed

Definition at line 630 of file sculpt_intern.h.

Referenced by do_paint_brush_task_cb_ex(), and SCULPT_do_paint_brush().

◆ detail_directions

float(* StrokeCache::detail_directions)[3]

◆ dial

struct Dial* StrokeCache::dial

◆ dyntopo_pixel_radius

float StrokeCache::dyntopo_pixel_radius

Definition at line 495 of file sculpt_intern.h.

Referenced by sculpt_stroke_update_step(), and sculpt_update_cache_variants().

◆ first_time

bool StrokeCache::first_time

◆ flag

int StrokeCache::flag

◆ flow

float StrokeCache::flow

◆ grab_delta

float StrokeCache::grab_delta[3]

◆ grab_delta_symmetry

float StrokeCache::grab_delta_symmetry[3]

◆ gravity_direction

float StrokeCache::gravity_direction[3]

◆ hardness

float StrokeCache::hardness

◆ initial_location

float StrokeCache::initial_location[3]

◆ initial_mouse

float StrokeCache::initial_mouse[2]

◆ initial_normal

float StrokeCache::initial_normal[3]

◆ initial_radius

float StrokeCache::initial_radius

◆ invert

bool StrokeCache::invert

◆ is_last_valid

bool StrokeCache::is_last_valid

◆ is_rake_rotation_valid

bool StrokeCache::is_rake_rotation_valid

◆ iteration_count

int StrokeCache::iteration_count

◆ last_center

float StrokeCache::last_center[3]

Definition at line 563 of file sculpt_intern.h.

Referenced by calc_sculpt_plane(), and SCULPT_calc_brush_plane().

◆ last_location

float StrokeCache::last_location[3]

◆ layer_displacement_factor

float* StrokeCache::layer_displacement_factor

◆ limit_surface_co

float(* StrokeCache::limit_surface_co)[3]

◆ location

float StrokeCache::location[3]

◆ mirror_symmetry_pass

int StrokeCache::mirror_symmetry_pass

◆ mouse

float StrokeCache::mouse[2]

◆ mouse_event

float StrokeCache::mouse_event[2]

◆ multiplane_scrape_angle

float StrokeCache::multiplane_scrape_angle

◆ normal_weight

float StrokeCache::normal_weight

◆ old_grab_location

float StrokeCache::old_grab_location[3]

Definition at line 533 of file sculpt_intern.h.

Referenced by sculpt_update_brush_delta().

◆ orig_grab_location

float StrokeCache::orig_grab_location[3]

Definition at line 533 of file sculpt_intern.h.

Referenced by SCULPT_do_pose_brush(), and sculpt_update_brush_delta().

◆ original

bool StrokeCache::original

◆ 

struct { ... } StrokeCache::paint_brush

◆ paint_face_set

int StrokeCache::paint_face_set

Definition at line 541 of file sculpt_intern.h.

Referenced by do_brush_action(), and do_draw_face_sets_brush_task_cb_ex().

◆ pen_flip

bool StrokeCache::pen_flip

◆ plane_offset

float StrokeCache::plane_offset[3]

◆ plane_trim_squared

float StrokeCache::plane_trim_squared

Definition at line 617 of file sculpt_intern.h.

Referenced by SCULPT_plane_trim(), and sculpt_update_cache_invariants().

◆ pose_ik_chain

struct SculptPoseIKChain* StrokeCache::pose_ik_chain

◆ pressure

float StrokeCache::pressure

◆ prev_colors

float(* StrokeCache::prev_colors)[4]

◆ prev_colors_vpaint

void* StrokeCache::prev_colors_vpaint

◆ prev_displacement

float(* StrokeCache::prev_displacement)[3]

◆ previous_r

rcti StrokeCache::previous_r

◆ projection_mat

float StrokeCache::projection_mat[4][4]

◆ radial_symmetry_pass

int StrokeCache::radial_symmetry_pass

◆ radius

float StrokeCache::radius

Definition at line 482 of file sculpt_intern.h.

Referenced by calc_brush_local_mat(), calc_overlap(), calculate_average_color(), cloth_brush_apply_brush_foces(), cloth_brush_satisfy_constraints(), do_boundary_brush_bend_task_cb_ex(), do_boundary_brush_twist_task_cb_ex(), do_clay_strips_brush_task_cb_ex(), do_cloth_brush_apply_forces_task_cb_ex(), do_cloth_brush_build_constraints_task_cb_ex(), do_cloth_brush_solve_simulation_task_cb_ex(), do_elastic_deform_brush_task_cb_ex(), do_inflate_brush_task_cb_ex(), do_paint_brush_task_cb_ex(), do_snake_hook_brush_task_cb_ex(), do_tiled(), do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), do_wpaint_brush_blur_task_cb_ex(), do_wpaint_brush_calc_average_weight_cb_ex(), do_wpaint_brush_draw_task_cb_ex(), do_wpaint_brush_smear_task_cb_ex(), paint_cursor_cursor_draw_3d_view_brush_cursor_active(), SCULPT_brush_strength_factor(), SCULPT_cloth_brush_affected_nodes_gather(), SCULPT_cloth_plane_falloff_preview_draw(), SCULPT_do_clay_brush(), SCULPT_do_clay_strips_brush(), SCULPT_do_clay_thumb_brush(), SCULPT_do_crease_brush(), SCULPT_do_draw_brush(), SCULPT_do_draw_sharp_brush(), SCULPT_do_fill_brush(), SCULPT_do_flatten_brush(), SCULPT_do_multiplane_scrape_brush(), SCULPT_do_paint_brush(), SCULPT_do_scrape_brush(), SCULPT_multiplane_scrape_preview_draw(), sculpt_pbvh_gather_generic(), SCULPT_pose_brush_init(), sculpt_stroke_update_step(), SCULPT_topology_automasking_init(), sculpt_topology_update(), sculpt_update_brush_delta(), sculpt_update_cache_variants(), vpaint_do_draw(), and vwpaint_update_cache_variants().

◆ radius_squared

float StrokeCache::radius_squared

◆ rake_data

struct SculptRakeData StrokeCache::rake_data

Definition at line 537 of file sculpt_intern.h.

Referenced by sculpt_update_brush_delta().

◆ rake_rotation

float StrokeCache::rake_rotation[4]

Definition at line 536 of file sculpt_intern.h.

Referenced by SCULPT_cache_calc_brushdata_symm(), and sculpt_update_brush_delta().

◆ rake_rotation_symmetry

float StrokeCache::rake_rotation_symmetry[4]

Definition at line 536 of file sculpt_intern.h.

Referenced by SCULPT_cache_calc_brushdata_symm(), and sculpt_rake_rotate().

◆ saved_active_brush_name

char StrokeCache::saved_active_brush_name[MAX_ID_NAME]

Definition at line 612 of file sculpt_intern.h.

Referenced by smooth_brush_toggle_off(), and smooth_brush_toggle_on().

◆ saved_mask_brush_tool

char StrokeCache::saved_mask_brush_tool

Definition at line 613 of file sculpt_intern.h.

Referenced by smooth_brush_toggle_off(), and smooth_brush_toggle_on().

◆ saved_smooth_size

int StrokeCache::saved_smooth_size

Definition at line 614 of file sculpt_intern.h.

Referenced by smooth_brush_toggle_off(), and smooth_brush_toggle_on().

◆ scale

float StrokeCache::scale[3]

◆ sculpt_normal

float StrokeCache::sculpt_normal[3]

◆ sculpt_normal_symm

float StrokeCache::sculpt_normal_symm[3]

◆ special_rotation

float StrokeCache::special_rotation

Definition at line 531 of file sculpt_intern.h.

Referenced by calc_brush_local_mat(), and sculpt_update_cache_variants().

◆ stroke_distance

float StrokeCache::stroke_distance

Definition at line 488 of file sculpt_intern.h.

Referenced by do_paint_brush_task_cb_ex(), and sculpt_stroke_update_step().

◆ stroke_local_mat

float StrokeCache::stroke_local_mat[4][4]

◆ supports_gravity

bool StrokeCache::supports_gravity

◆ surface_smooth_laplacian_disp

float(* StrokeCache::surface_smooth_laplacian_disp)[3]

◆ symm_rot_mat

float StrokeCache::symm_rot_mat[4][4]

◆ symm_rot_mat_inv

float StrokeCache::symm_rot_mat_inv[4][4]

◆ symmetry

int StrokeCache::symmetry

Definition at line 545 of file sculpt_intern.h.

Referenced by calc_symmetry_feather(), and do_symmetrical_brush_actions().

◆ tile_pass

int StrokeCache::tile_pass

◆ true_gravity_direction

float StrokeCache::true_gravity_direction[3]

◆ true_initial_location

float StrokeCache::true_initial_location[3]

◆ true_initial_normal

float StrokeCache::true_initial_normal[3]

◆ true_last_location

float StrokeCache::true_last_location[3]

Definition at line 485 of file sculpt_intern.h.

Referenced by SCULPT_cache_calc_brushdata_symm(), and sculpt_stroke_update_step().

◆ true_location

float StrokeCache::true_location[3]

◆ true_view_normal

float StrokeCache::true_view_normal[3]

◆ vc

struct ViewContext* StrokeCache::vc

◆ vertex_rotation

float StrokeCache::vertex_rotation

Definition at line 609 of file sculpt_intern.h.

Referenced by SCULPT_do_rotate_brush(), and sculpt_update_cache_variants().

◆ view_normal

float StrokeCache::view_normal[3]

◆ wet_mix

float StrokeCache::wet_mix

◆ wet_mix_prev_color

float StrokeCache::wet_mix_prev_color[4]

Definition at line 629 of file sculpt_intern.h.

Referenced by SCULPT_do_paint_brush().

◆ wet_persistence

float StrokeCache::wet_persistence

Definition at line 575 of file sculpt_intern.h.

Referenced by SCULPT_do_paint_brush(), and sculpt_update_cache_paint_variants().

◆ x_tilt

float StrokeCache::x_tilt

Definition at line 504 of file sculpt_intern.h.

Referenced by SCULPT_tilt_apply_to_normal(), and sculpt_update_cache_variants().

◆ y_tilt

float StrokeCache::y_tilt

Definition at line 505 of file sculpt_intern.h.

Referenced by SCULPT_tilt_apply_to_normal(), and sculpt_update_cache_variants().


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