Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_intern.h
| Show First 20 Lines • Show All 507 Lines • ▼ Show 20 Lines | typedef struct StrokeCache { | ||||
| /* Variants */ | /* Variants */ | ||||
| float radius; | float radius; | ||||
| float radius_squared; | float radius_squared; | ||||
| float true_location[3]; | float true_location[3]; | ||||
| float true_last_location[3]; | float true_last_location[3]; | ||||
| float location[3]; | float location[3]; | ||||
| float last_location[3]; | float last_location[3]; | ||||
| struct PaintStroke *stroke; | |||||
| float stroke_distance; | float stroke_distance; | ||||
| /* Used for alternating between deformation in brushes that need to apply different ones to | /* Used for alternating between deformation in brushes that need to apply different ones to | ||||
| * achieve certain effects. */ | * achieve certain effects. */ | ||||
| int iteration_count; | int iteration_count; | ||||
| /* Original pixel radius with the pressure curve applied for dyntopo detail size */ | /* Original pixel radius with the pressure curve applied for dyntopo detail size */ | ||||
| float dyntopo_pixel_radius; | float dyntopo_pixel_radius; | ||||
| ▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | typedef struct StrokeCache { | ||||
| struct SculptRakeData rake_data; | struct SculptRakeData rake_data; | ||||
| /* Face Sets */ | /* Face Sets */ | ||||
| int paint_face_set; | int paint_face_set; | ||||
| /* Symmetry index between 0 and 7 bit combo 0 is Brush only; | /* Symmetry index between 0 and 7 bit combo 0 is Brush only; | ||||
| * 1 is X mirror; 2 is Y mirror; 3 is XY; 4 is Z; 5 is XZ; 6 is YZ; 7 is XYZ */ | * 1 is X mirror; 2 is Y mirror; 3 is XY; 4 is Z; 5 is XZ; 6 is YZ; 7 is XYZ */ | ||||
| int symmetry; | int symmetry; | ||||
| ePaintSymmetryFlags symmetry_flags; | |||||
| int radial_symm[3]; | |||||
brecht: This doesn't seem to be used. | |||||
| int radial_symmetry_axis; | |||||
Not Done Inline ActionsThis is set but not read anywhere? brecht: This is set but not read anywhere? | |||||
| float tile_offset[3]; | |||||
| ePaintSymmetryFlags | ePaintSymmetryFlags | ||||
| mirror_symmetry_pass; /* The symmetry pass we are currently on between 0 and 7. */ | mirror_symmetry_pass; /* The symmetry pass we are currently on between 0 and 7. */ | ||||
| float true_view_normal[3]; | float true_view_normal[3]; | ||||
| float view_normal[3]; | float view_normal[3]; | ||||
| /* sculpt_normal gets calculated by calc_sculpt_normal(), then the | /* sculpt_normal gets calculated by calc_sculpt_normal(), then the | ||||
| * sculpt_normal_symm gets updated quickly with the usual symmetry | * sculpt_normal_symm gets updated quickly with the usual symmetry | ||||
| * transforms */ | * transforms */ | ||||
| ▲ Show 20 Lines • Show All 1,396 Lines • Show Last 20 Lines | |||||
This doesn't seem to be used.