|
Blender V5.3
|
Namespaces | |
| namespace | bmesh_topology_rake_cc |
| namespace | clay_cc |
| namespace | clay_strips |
| namespace | clay_strips_cc |
| namespace | clay_thumb_cc |
| namespace | crease_cc |
| namespace | draw_cc |
| namespace | draw_face_sets_cc |
| namespace | draw_sharp_cc |
| namespace | draw_vector_displacement_cc |
| namespace | elastic_deform_cc |
| namespace | enhance_details_cc |
| namespace | grab_cc |
| namespace | inflate_cc |
| namespace | layer_cc |
| namespace | mask_cc |
| namespace | multires_displacement_eraser_cc |
| namespace | multires_displacement_smear_cc |
| namespace | pinch_cc |
| namespace | plane |
| namespace | plane_cc |
| namespace | relax_cc |
| namespace | rotate_cc |
| namespace | scene_project_cc |
| namespace | smooth_cc |
| namespace | smooth_mask_cc |
| namespace | snake_hook_cc |
| namespace | surface_smooth_cc |
| namespace | thumb_cc |
| namespace | topology_slide_cc |
Classes | |
| struct | BMeshLocalData |
| struct | CursorSampleResult |
| struct | GridLocalData |
| struct | LocalData |
| struct | MeshLocalData |
| struct | ScrapeSampleData |
| struct | SculptProjectVector |
Functions | |
| static BLI_NOINLINE void | calc_translations (const Set< BMVert *, 0 > &verts, const float3 &direction, const MutableSpan< float3 > translations) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &direction, const float strength, bke::pbvh::BMeshNode &node, LocalData &tls) |
| void | do_bmesh_topology_rake_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask, const float input_strength) |
| void | do_clay_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| void | do_clay_strips_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask, const float3 &plane_normal, const float3 &plane_center) |
| void | do_clay_thumb_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| float | clay_thumb_get_stabilized_pressure (const StrokeCache &cache) |
| void | do_crease_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| void | do_blob_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| void | do_displacement_eraser_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| void | do_displacement_smear_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| void | do_draw_face_sets_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_draw_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_draw_vector_displacement_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_draw_sharp_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_elastic_deform_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_enhance_details_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_plane_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask, const float3 &plane_normal, const float3 &plane_center) |
| void | do_grab_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| void | do_gravity_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| void | do_inflate_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| void | do_layer_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_mask_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_multiplane_scrape_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | multiplane_scrape_preview_draw (uint gpuattr, const Brush &brush, const SculptSession &ss, const float outline_col[3], float outline_alpha) |
| void | do_pinch_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_nudge_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_relax_face_sets_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_rotate_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_scene_project_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_smooth_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask, float brush_strength) |
| void | do_smooth_mask_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask, float brush_strength) |
| void | do_snake_hook_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_surface_smooth_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_thumb_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_topology_slide_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_topology_relax_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| static BLI_NOINLINE void | calc_closest_to_plane (const float4 &test_plane, const Span< float3 > positions, const Span< int > verts, const MutableSpan< float3 > translations) |
| static BLI_NOINLINE void | calc_closest_to_plane (const float4 &test_plane, const Span< float3 > positions, const MutableSpan< float3 > translations) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float4 &test_plane, const float strength, const MeshAttributeData &attribute_data, const Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float4 &test_plane, const float strength, bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float4 &test_plane, const float strength, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static void | apply_z_axis_factors (const Span< float > z_positions, const MutableSpan< float > factors) |
| static void | apply_plane_trim_factors (const Brush &brush, const Span< float > z_positions, const MutableSpan< float > factors) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float4x4 &mat, const float3 &offset, const Span< float3 > vert_normals, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float4x4 &mat, const float3 &offset, const bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float4x4 &mat, const float3 &offset, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float4 &plane_tilt, const float strength, const MeshAttributeData &attribute_data, const Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float4 &plane_tilt, const float strength, const bke::pbvh::GridsNode &node, Object &object, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float4 &plane_tilt, const float strength, Object &object, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static BLI_NOINLINE void | translations_from_position (const Span< float3 > positions_eval, const Span< int > verts, const float3 &location, const MutableSpan< float3 > translations) |
| static BLI_NOINLINE void | translations_from_position (const Span< float3 > positions, const float3 &location, const MutableSpan< float3 > translations) |
| static BLI_NOINLINE void | add_offset_to_translations (const MutableSpan< float3 > translations, const Span< float > factors, const float3 &offset) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float3 &offset, const float strength, const MeshAttributeData &attribute_data, const Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &offset, const float strength, bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &offset, const float strength, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static void | do_crease_or_blob_brush (const Depsgraph &depsgraph, const Sculpt &sd, const bool invert_strength, Object &object, const IndexMask &node_mask) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float3 &offset, const MeshAttributeData &attribute_data, const Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &offset, const bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &offset, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static void | offset_positions (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const float3 &offset, const IndexMask &node_mask) |
| static void | calc_face_normals (const OffsetIndices< int > faces, const Span< int > corner_verts, const Span< float3 > vert_positions, const Span< int > face_indices, const MutableSpan< float3 > normals) |
| static BLI_NOINLINE void | apply_face_set (const int face_set_id, const Span< int > face_indices, const Span< float > factors, const MutableSpan< int > face_sets) |
| static void | calc_faces (const Depsgraph &depsgraph, Object &object, const Brush &brush, const float strength, const int face_set_id, Span< float3 > positions_eval, const bke::pbvh::MeshNode &node, const Span< int > face_indices, MeshLocalData &tls, const MutableSpan< int > face_sets) |
| static void | do_draw_face_sets_brush_mesh (const Depsgraph &depsgraph, Object &object, const Brush &brush, const IndexMask &node_mask) |
| static void | calc_grids (const Depsgraph &depsgraph, Object &object, const Brush &brush, const float strength, const int face_set_id, const bke::pbvh::GridsNode &node, GridLocalData &tls, const MutableSpan< int > face_sets) |
| static void | do_draw_face_sets_brush_grids (const Depsgraph &depsgraph, Object &object, const Brush &brush, const IndexMask &node_mask) |
| static BLI_NOINLINE void | apply_face_set (const int face_set_id, const Set< BMFace *, 0 > &faces, const MutableSpan< float > factors, const int cd_offset) |
| static void | calc_bmesh (Object &object, const Brush &brush, const float strength, const int face_set_id, bke::pbvh::BMeshNode &node, BMeshLocalData &tls, const int cd_offset) |
| static void | do_draw_face_sets_brush_bmesh (const Depsgraph &depsgraph, Object &object, const Brush &brush, const IndexMask &node_mask) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float3 &offset, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &offset, const bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &offset, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static void | offset_positions (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const float3 &offset, const IndexMask &node_mask) |
| static void | calc_brush_texture_colors (const PaintMode paint_mode, SculptSession &ss, const Brush &brush, const Span< float3 > vert_positions, const Span< int > verts, const MutableSpan< float3 > r_colors) |
| static void | calc_brush_texture_colors (const PaintMode paint_mode, SculptSession &ss, const Brush &brush, const Span< float3 > positions, const MutableSpan< float3 > r_colors) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const Span< float3 > vert_normals, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static BLI_NOINLINE void | calc_translations (const Brush &brush, const StrokeCache &cache, const KelvinletParams &kelvinet_params, const float3 &location, const float3 &offset, const Span< float3 > positions, const MutableSpan< float3 > translations) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const KelvinletParams &kelvinet_params, const float3 &offset, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const KelvinletParams &kelvinet_params, const float3 &offset, bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const KelvinletParams &kelvinet_params, const float3 &offset, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const MeshAttributeData &attribute_data, const Span< float3 > vert_normals, const Span< float3 > all_translations, const float strength, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const Span< float3 > all_translations, const float strength, const bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const Span< float3 > all_translations, const float strength, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static void | calc_translations_faces (const Span< float3 > vert_positions, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const Span< bool > hide_poly, const bke::pbvh::MeshNode &node, LocalData &tls, const MutableSpan< float3 > all_translations) |
| static void | calc_translations_grids (const SubdivCCG &subdiv_ccg, const bke::pbvh::GridsNode &node, LocalData &tls, const MutableSpan< float3 > all_translations) |
| static void | calc_translations_bmesh (const bke::pbvh::BMeshNode &node, LocalData &tls, const MutableSpan< float3 > all_translations) |
| static BLI_NOINLINE void | calc_silhouette_factors (const StrokeCache &cache, const float3 &offset, const Span< float3 > normals, const MutableSpan< float > factors) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float3 &offset, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &offset, bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &offset, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static BLI_NOINLINE void | apply_scale (const MutableSpan< float3 > translations, const float3 &scale) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float3 &scale, const MeshAttributeData &attribute_data, const Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &scale, bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &scale, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static BLI_NOINLINE void | offset_displacement_factors (const MutableSpan< float > displacement_factors, const Span< float > factors, const float strength) |
| static BLI_NOINLINE void | reset_displacement_factors (const MutableSpan< float > displacement_factors, const Span< float > factors, const float strength) |
| static BLI_NOINLINE void | clamp_displacement_factors (const MutableSpan< float > displacement_factors, const Span< float > masks) |
| static BLI_NOINLINE void | calc_translations (const Span< float3 > orig_positions, const Span< float3 > orig_normals, const Span< float3 > positions, const Span< float > displacement_factors, const Span< float > factors, const float height, const MutableSpan< float3 > r_translations) |
| static BLI_NOINLINE void | calc_translations (const Span< float3 > base_positions, const Span< float3 > base_normals, const Span< int > verts, const Span< float3 > positions, const Span< float > displacement_factors, const Span< float > factors, const float height, const MutableSpan< float3 > r_translations) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const MeshAttributeData &attribute_data, const Span< float3 > vert_normals, const bool use_persistent_base, const Span< float3 > persistent_base_positions, const Span< float3 > persistent_base_normals, Object &object, bke::pbvh::MeshNode &node, MutableSpan< float > layer_displacement_factor, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, Object &object, const bool use_persistent_base, const Span< float3 > persistent_base_positions, const Span< float3 > persistent_base_normals, bke::pbvh::GridsNode &node, LocalData &tls, MutableSpan< float > layer_displacement_factor) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, Object &object, bke::pbvh::BMeshNode &node, LocalData &tls, MutableSpan< float > layer_displacement_factor) |
| static BLI_NOINLINE void | apply_factors (const float strength, const Span< float > current_masks, const Span< float > factors, const MutableSpan< float > masks) |
| static BLI_NOINLINE void | clamp_mask (const MutableSpan< float > masks) |
| static void | calc_faces (const Depsgraph &depsgraph, const Brush &brush, const float strength, const Span< float3 > positions, const Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, Object &object, const Span< bool > hide_vert, const MutableSpan< float > mask) |
| static void | calc_grids (const Depsgraph &depsgraph, Object &object, const Brush &brush, const float strength, bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, Object &object, const Brush &brush, const float strength, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static ScrapeSampleData | join_samples (const ScrapeSampleData &a, const ScrapeSampleData &b) |
| static BLI_NOINLINE void | filter_plane_side_factors (const Span< float3 > positions, const Span< float3 > local_positions, const std::array< float4, 2 > &scrape_planes, const MutableSpan< float > factors) |
| static BLI_NOINLINE void | calc_distances (const Span< float3 > local_positions, const MutableSpan< float > distances) |
| static BLI_NOINLINE void | calc_translations (const Span< float3 > positions, const Span< float3 > local_positions, const std::array< float4, 2 > &scrape_planes, const MutableSpan< float3 > translations) |
| static BLI_NOINLINE void | accumulate_samples (const Span< float3 > positions, const Span< float3 > local_positions, const Span< float3 > normals, const Span< float > factors, ScrapeSampleData &sample) |
| static void | sample_node_surface_mesh (const Depsgraph &depsgraph, const Object &object, const Brush &brush, const float4x4 &mat, const Span< float3 > vert_positions, const Span< float3 > vert_normals, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, ScrapeSampleData &sample) |
| static void | sample_node_surface_grids (const Depsgraph &depsgraph, const Object &object, const Brush &brush, const float4x4 &mat, const bke::pbvh::GridsNode &node, ScrapeSampleData &sample, LocalData &tls) |
| static void | sample_node_surface_bmesh (const Depsgraph &depsgraph, const Object &object, const Brush &brush, const float4x4 &mat, const bke::pbvh::BMeshNode &node, ScrapeSampleData &sample, LocalData &tls) |
| static std::optional< ScrapeSampleData > | sample_surface (const Depsgraph &depsgraph, const Object &object, const Brush &brush, const float4x4 &mat, const IndexMask &node_mask) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float4x4 &mat, const std::array< float4, 2 > &scrape_planes, const float angle, const float strength, const Span< float3 > vert_normals, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float4x4 &mat, const std::array< float4, 2 > &scrape_planes, const float angle, const float strength, const bke::pbvh::GridsNode &node, Object &object, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float4x4 &mat, const std::array< float4, 2 > &scrape_planes, const float angle, const float strength, bke::pbvh::BMeshNode &node, Object &object, LocalData &tls) |
| static BLI_NOINLINE void | calc_limit_positions (const SubdivCCG &subdiv_ccg, const Span< int > grids, const MutableSpan< float3 > limit_positions) |
| static void | calc_node (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float strength, bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_node (const Depsgraph &depsgraph, Object &object, const Brush &brush, const float strength, const bke::pbvh::GridsNode &node, LocalData &tls) |
| static BLI_NOINLINE void | eval_all_limit_positions (const SubdivCCG &subdiv_ccg, const MutableSpan< float3 > limit_positions) |
| static BLI_NOINLINE void | store_node_prev_displacement (const Span< float3 > limit_positions, const Span< float3 > positions, const CCGKey &key, const bke::pbvh::GridsNode &node, const MutableSpan< float3 > prev_displacement) |
| static BLI_NOINLINE void | calc_translations (const Span< float3 > positions, const float3 &location, const std::array< float3, 2 > &stroke_xz, const MutableSpan< float3 > translations) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const std::array< float3, 2 > &stroke_xz, const float strength, const MeshAttributeData &attribute_data, const Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const std::array< float3, 2 > &stroke_xz, const float strength, const bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const std::array< float3, 2 > &stroke_xz, const float strength, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static void | calc_local_positions (const float4x4 &mat, const Span< int > verts, const Span< float3 > positions, const MutableSpan< float3 > local_positions) |
| static void | calc_local_distances (const float height, const float depth, const MutableSpan< float3 > local_positions, const MutableSpan< float > distances) |
| static void | scale_factors_by_height_and_depth (const float height, const float depth, const MutableSpan< float3 > local_positions, const MutableSpan< float > factors) |
| static void | calc_translations (const float3 &plane_normal, const float radius, const float strength, const MutableSpan< float3 > local_positions, const MutableSpan< float > factors, const MutableSpan< float3 > r_translations) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float4x4 &mat, const float3 &plane_normal, const float strength, const float height, const float depth, const MeshAttributeData &attribute_data, const Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, Object &object, LocalData &tls, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float4x4 &mat, const float3 &plane_normal, const float strength, const float height, const float depth, bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float4x4 &mat, const float3 &plane_normal, const float strength, const float height, const float depth, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static BLI_NOINLINE void | calc_translations (const Span< float3 > positions, const float3 &axis, const Span< float > angles, const float3 ¢er, const MutableSpan< float3 > translations) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float angle, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float angle, bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float angle, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static float | absolute_min_distance (const float d1, const float d2) |
| static void | object_raycast (const ProjectBrushTarget &project_target, const bool bidirectional, const float3 &normal, const Span< float3 > positions, const Span< float > factors, const MutableSpan< float3 > ray_origins, const MutableSpan< float > best_hit_distances) |
| static void | scene_raycast (const Span< ProjectBrushTarget > project_targets, const bool bidirectional, const float minimum_distance, const float3 &normal, const Span< float3 > positions, const Span< float > factors, const MutableSpan< float3 > ray_origins, const MutableSpan< float > r_hit_distances) |
| static void | calc_translations (const float3 &normal, const Span< float > factors, const Span< float > hit_distances, const MutableSpan< float3 > r_translations) |
| static float3 | calc_normal (const Brush &brush, const StrokeCache &cache) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const bool bidirectional, const float3 &normal, const MeshAttributeData &attribute_data, const Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const bool bidirectional, const float3 &normal, const bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const bool bidirectional, const float3 &normal, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static Vector< float > | iteration_strengths (const float strength) |
| static BLI_NOINLINE void | apply_positions_faces (const Sculpt &sd, const bke::pbvh::MeshNode &node, Object &object, LocalData &tls, const Span< float > factors, const Span< float3 > new_positions, const PositionDeformData &position_data) |
| static BLI_NOINLINE void | do_smooth_brush_mesh (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, Object &object, const IndexMask &node_mask, const float brush_strength) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, const OffsetIndices< int > faces, const Span< int > corner_verts, const BitSpan boundary_verts, const Set< OrderedEdge > &boundary_edges, Object &object, const Brush &brush, const float strength, const bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float strength, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static Vector< float > | iteration_strengths (const float strength) |
| static void | apply_masks_faces (const Depsgraph &depsgraph, const Brush &brush, const Span< float3 > positions_eval, const Span< float3 > vert_normals, const Span< bool > hide_vert, const bke::pbvh::MeshNode &node, const float strength, Object &object, LocalData &tls, const Span< float > mask_averages, MutableSpan< float > mask) |
| static void | do_smooth_brush_mesh (const Depsgraph &depsgraph, const Brush &brush, Object &object, const IndexMask &node_mask, const float brush_strength) |
| static void | calc_grids (const Depsgraph &depsgraph, Object &object, const Brush &brush, const float strength, const bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, Object &object, const int mask_offset, const Brush &brush, const float strength, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static void | sculpt_project_v3_cache_init (SculptProjectVector *spvc, const float3 &plane) |
| static void | sculpt_project_v3 (const SculptProjectVector *spvc, const float3 &vec, float3 &r_vec) |
| static float3 | sculpt_rake_rotate (const StrokeCache &cache, const float3 &sculpt_co, const float3 &v_co, float factor) |
| static BLI_NOINLINE void | calc_pinch_influence (const Brush &brush, const StrokeCache &cache, const float3 &grab_delta, const SculptProjectVector *spvc, const Span< float3 > positions, const Span< float > factors, const MutableSpan< float3 > translations) |
| static BLI_NOINLINE void | calc_rake_rotation_influence (const StrokeCache &cache, const Span< float3 > positions, const Span< float > factors, const MutableSpan< float3 > translations) |
| static BLI_NOINLINE void | calc_kelvinet_translation (const StrokeCache &cache, const Span< float3 > positions, const Span< float > factors, const MutableSpan< float3 > translations) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const SculptProjectVector *spvc, const float3 &grab_delta, const Span< float3 > vert_normals, const MeshAttributeData &attribute_data, bke::pbvh::MeshNode &node, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, SculptProjectVector *spvc, const float3 &grab_delta, bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, SculptProjectVector *spvc, const float3 &grab_delta, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static BLI_NOINLINE void | clamp_factors (const MutableSpan< float > factors) |
| static BLI_NOINLINE void | do_surface_smooth_brush_mesh (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const IndexMask &node_mask, Object &object, const MutableSpan< float3 > all_laplacian_disp) |
| static BLI_NOINLINE void | do_surface_smooth_brush_grids (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const IndexMask &node_mask, Object &object, const MutableSpan< float3 > all_laplacian_disp) |
| static BLI_NOINLINE void | do_surface_smooth_brush_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const IndexMask &node_mask, Object &object, const MutableSpan< float3 > all_laplacian_disp) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float3 &offset, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &offset, bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &offset, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static BLI_NOINLINE void | calc_translation_directions (const Brush &brush, const StrokeCache &cache, const Span< float3 > positions, const MutableSpan< float3 > r_translations) |
| static void | add_neighbor_influence (const float3 &position, const float3 &dir, const float3 &neighbor_position, float3 &translation) |
| static BLI_NOINLINE void | calc_neighbor_influence (const Span< float3 > vert_positions, const Span< float3 > positions, const GroupedSpan< int > vert_neighbors, const MutableSpan< float3 > translations) |
| static BLI_NOINLINE void | calc_neighbor_influence (const SubdivCCG &subdiv_ccg, const Span< int > grids, const MutableSpan< float3 > translations) |
| static BLI_NOINLINE void | calc_neighbor_influence (const Span< float3 > positions, const Set< BMVert *, 0 > &verts, const MutableSpan< float3 > translations) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, Object &object, LocalData &tls, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, bke::pbvh::BMeshNode &node, LocalData &tls) |
|
static |
Definition at line 124 of file multiplane_scrape.cc.
References accumulate_samples(), BLI_NOINLINE, blender::Editor, blender::Span< T >::index_range(), PRF_scope, and sample.
Referenced by accumulate_samples(), sample_node_surface_bmesh(), sample_node_surface_grids(), and sample_node_surface_mesh().
|
static |
Definition at line 489 of file multiplane_scrape.cc.
References angle(), blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::ed::sculpt_paint::apply_translations(), blender::ed::sculpt_paint::StrokeCache::automasking, blender::BKE_pbvh_bmesh_node_unique_verts(), blender::SculptSession::bm, blender::BRUSH_FRONTFACE, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), calc_distances(), blender::ed::sculpt_paint::calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::ed::sculpt_paint::brushes::LocalData::distances, blender::ed::sculpt_paint::brushes::LocalData::factors, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), filter_plane_side_factors(), blender::ed::sculpt_paint::filter_plane_trim_limit_factors(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::ed::sculpt_paint::gather_bmesh_positions(), blender::ed::sculpt_paint::brushes::LocalData::local_positions, node, blender::ed::sculpt_paint::brushes::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::math::transform_points(), blender::ed::sculpt_paint::brushes::LocalData::translations, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
|
static |
Definition at line 95 of file multiplane_scrape.cc.
References blender::BLI_assert(), BLI_NOINLINE, calc_distances(), blender::Editor, blender::Span< T >::index_range(), blender::math::length(), PRF_scope, blender::MutableSpan< T >::size(), and blender::Span< T >::size().
Referenced by calc_bmesh(), calc_distances(), calc_faces(), and calc_grids().
|
static |
Definition at line 367 of file multiplane_scrape.cc.
References angle(), blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, blender::BRUSH_FRONTFACE, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), calc_distances(), blender::ed::sculpt_paint::calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), filter_plane_side_factors(), blender::ed::sculpt_paint::filter_plane_trim_limit_factors(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::MeshAttributeData::mask, node, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Span< T >::size(), blender::math::transform_points(), and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
|
static |
Definition at line 427 of file multiplane_scrape.cc.
References angle(), blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::ed::sculpt_paint::apply_translations(), blender::ed::sculpt_paint::StrokeCache::automasking, blender::BRUSH_FRONTFACE, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), calc_distances(), blender::ed::sculpt_paint::calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::ed::sculpt_paint::brushes::LocalData::distances, blender::ed::sculpt_paint::brushes::LocalData::factors, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), filter_plane_side_factors(), blender::ed::sculpt_paint::filter_plane_trim_limit_factors(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::ed::sculpt_paint::gather_grids_positions(), blender::ed::sculpt_paint::brushes::LocalData::local_positions, node, blender::ed::sculpt_paint::brushes::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::MutableSpan< T >::size(), blender::SculptSession::subdiv_ccg, blender::math::transform_points(), blender::ed::sculpt_paint::brushes::LocalData::translations, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
|
static |
Definition at line 110 of file multiplane_scrape.cc.
References BLI_NOINLINE, closest(), blender::closest_to_plane_normalized_v3(), blender::Editor, blender::Span< T >::index_range(), and PRF_scope.
| float blender::ed::sculpt_paint::brushes::clay_thumb_get_stabilized_pressure | ( | const StrokeCache & | cache | ) |
Definition at line 258 of file clay_thumb.cc.
References blender::ed::sculpt_paint::StrokeCache::clay_thumb_brush, and clay_thumb_get_stabilized_pressure().
Referenced by blender::ed::sculpt_paint::brush_dynamic_size_get(), clay_thumb_get_stabilized_pressure(), and do_clay_thumb_brush().
| void blender::ed::sculpt_paint::brushes::do_blob_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 288 of file crease.cc.
References do_blob_brush(), blender::Editor, and PRF_scope.
Referenced by do_blob_brush(), and blender::ed::sculpt_paint::do_brush_action().
| void blender::ed::sculpt_paint::brushes::do_bmesh_topology_rake_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask, | ||
| const float | input_strength ) |
Definition at line 86 of file bmesh_topology_rake.cc.
References blender::BKE_paint_brush_for_read(), blender::SculptSession::cache, do_bmesh_topology_rake_brush(), blender::math::dot(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::exec_mode::grain_size(), blender::IndexRange::IndexRange(), blender::math::is_zero(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::math::normalize(), blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::StrokeCache::pressure, PRF_scope, blender::ed::sculpt_paint::StrokeCache::sculpt_normal_symm, and blender::bke::pbvh::update_node_bounds_bmesh().
Referenced by do_bmesh_topology_rake_brush(), and blender::ed::sculpt_paint::do_brush_action().
| void blender::ed::sculpt_paint::brushes::do_clay_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 159 of file clay.cc.
References blender::BKE_paint_brush_for_read(), BLI_ASSERT_UNIT_V3, blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::brush_plane_offset_get(), blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_plane(), blender::data, do_clay_brush(), blender::Editor, fabsf, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::ed::sculpt_paint::StrokeCache::initial_radius, blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::StrokeCache::location_symm, blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::plane_from_point_normal_v3(), blender::SubdivCCG::positions, PRF_scope, blender::ed::sculpt_paint::StrokeCache::scale, blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), and blender::bke::pbvh::vert_normals_eval().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_clay_brush().
| void blender::ed::sculpt_paint::brushes::do_clay_strips_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask, | ||
| const float3 & | plane_normal, | ||
| const float3 & | plane_center ) |
Basic principles of the clay strips brush:
Definition at line 283 of file clay_strips.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::ed::sculpt_paint::brushes::clay_strips::calc_local_matrix(), blender::data, do_clay_strips_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::math::is_zero(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::PAINT_FALLOFF_SHAPE_SPHERE, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, PRF_scope, blender::ed::sculpt_paint::StrokeCache::radius, blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), blender::bke::pbvh::vert_normals_eval(), and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_clay_strips_brush().
| void blender::ed::sculpt_paint::brushes::do_clay_thumb_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 141 of file clay_thumb.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::BRUSH_ORIGINAL_NORMAL, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_area_normal(), blender::ed::sculpt_paint::calc_brush_plane(), blender::ed::sculpt_paint::StrokeCache::clay_thumb_brush, clay_thumb_get_stabilized_pressure(), blender::math::cross(), blender::data, DEG2RADF, do_clay_thumb_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::math::from_scale(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::MatBase< float, 4, 4 >::identity(), blender::math::is_zero(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::MatBase< T, NumCol, NumRow, Alignment >::location(), blender::ed::sculpt_paint::StrokeCache::location_symm, blender::bke::pbvh::Mesh, blender::normalize_m4(), blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::plane_from_point_normal_v3(), blender::SubdivCCG::positions, PRF_scope, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::ed::sculpt_paint::StrokeCache::radius, blender::rotate_v3_v3v3fl(), scale(), blender::SCULPT_DISP_DIR_AREA, blender::ed::sculpt_paint::stroke_is_first_brush_step_of_symmetry_pass(), blender::ed::sculpt_paint::stroke_is_main_symmetry_pass(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), blender::bke::pbvh::vert_normals_eval(), blender::MatBase< T, NumCol, NumRow, Alignment >::x_axis(), blender::MatBase< T, NumCol, NumRow, Alignment >::y_axis(), and blender::MatBase< T, NumCol, NumRow, Alignment >::z_axis().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_clay_thumb_brush().
| void blender::ed::sculpt_paint::brushes::do_crease_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 279 of file crease.cc.
References do_crease_brush(), blender::Editor, and PRF_scope.
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_crease_brush().
| void blender::ed::sculpt_paint::brushes::do_displacement_eraser_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 84 of file multires_displacement_eraser.cc.
References blender::BKE_paint_brush_for_read(), blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, do_displacement_eraser_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::threading::EnumerableThreadSpecific< T >::local(), blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, PRF_scope, and blender::bke::pbvh::update_node_bounds_grids().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_displacement_eraser_brush().
| void blender::ed::sculpt_paint::brushes::do_displacement_smear_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 152 of file multires_displacement_smear.cc.
References blender::BKE_paint_brush_for_read(), blender::BKE_subdiv_ccg_key_top_level(), blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::ed::sculpt_paint::StrokeCache::displacement_smear, do_displacement_smear_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::Sculpt::paint, blender::bke::object::pbvh_get(), PRF_scope, blender::Object::runtime, blender::bke::ObjectRuntime::sculpt_session, blender::MutableSpan< T >::size(), blender::SculptSession::subdiv_ccg, and blender::bke::pbvh::update_node_bounds_grids().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_displacement_smear_brush().
| void blender::ed::sculpt_paint::brushes::do_draw_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
A simple normal-direction displacement.
Definition at line 187 of file draw.cc.
References blender::BKE_paint_brush_for_read(), blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, do_draw_brush(), blender::Editor, offset_positions(), blender::Sculpt::paint, PRF_scope, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::StrokeCache::scale, and blender::ed::sculpt_paint::tilt_effective_normal_get().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_draw_brush().
| void blender::ed::sculpt_paint::brushes::do_draw_face_sets_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 334 of file draw_face_sets.cc.
References blender::ed::sculpt_paint::face_set::active_face_set_get(), blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, do_draw_face_sets_brush(), blender::Editor, blender::ed::sculpt_paint::face_set::find_next_available_id(), blender::bke::pbvh::Grids, blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), and PRF_scope.
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_draw_face_sets_brush().
| void blender::ed::sculpt_paint::brushes::do_draw_sharp_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 191 of file draw_sharp.cc.
References blender::BKE_paint_brush_for_read(), blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, do_draw_sharp_brush(), blender::Editor, offset_positions(), blender::Sculpt::paint, PRF_scope, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::StrokeCache::scale, and blender::ed::sculpt_paint::tilt_effective_normal_get().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_draw_sharp_brush().
| void blender::ed::sculpt_paint::brushes::do_draw_vector_displacement_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
A simple normal-direction displacement based on image texture RGB/XYZ values.
Definition at line 215 of file draw_vector_displacement.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::data, do_draw_vector_displacement_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, PRF_scope, blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), and blender::bke::pbvh::vert_normals_eval().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_draw_vector_displacement_brush().
| void blender::ed::sculpt_paint::brushes::do_elastic_deform_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 209 of file elastic_deform.cc.
References blender::BKE_kelvinlet_init_params(), blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::BRUSH_ELASTIC_DEFORM_TWIST, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::data, do_elastic_deform_brush(), blender::Editor, ELEM, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::grab_delta_get(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::ed::sculpt_paint::StrokeCache::initial_mouse, blender::math::length(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, blender::ed::sculpt_paint::StrokeCache::mouse, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, PRF_scope, blender::ed::sculpt_paint::StrokeCache::radius, blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), and blender::bke::pbvh::update_node_bounds_mesh().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_elastic_deform_brush().
| void blender::ed::sculpt_paint::brushes::do_enhance_details_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 204 of file enhance_details.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_smooth_translations(), blender::data, blender::ed::sculpt_paint::StrokeCache::detail_directions, do_enhance_details_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, node, blender::ed::sculpt_paint::node_fully_masked_or_hidden(), blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, PRF_scope, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::bke::pbvh::search_nodes(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), blender::bke::pbvh::vert_normals_eval(), and blender::ed::sculpt_paint::vertex_count_get().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_enhance_details_brush().
| void blender::ed::sculpt_paint::brushes::do_grab_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 172 of file grab.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::data, do_grab_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::grab_delta_get(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, PRF_scope, blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), and blender::bke::pbvh::update_node_bounds_mesh().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_grab_brush().
| void blender::ed::sculpt_paint::brushes::do_gravity_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 219 of file draw.cc.
References blender::SculptSession::cache, do_gravity_brush(), blender::Editor, blender::ed::sculpt_paint::StrokeCache::gravity_direction_symm, blender::Sculpt::gravity_factor, offset_positions(), PRF_scope, blender::ed::sculpt_paint::StrokeCache::radius_squared, and blender::ed::sculpt_paint::StrokeCache::scale.
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_gravity_brush().
| void blender::ed::sculpt_paint::brushes::do_inflate_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 138 of file inflate.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::data, do_inflate_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, PRF_scope, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::StrokeCache::scale, scale(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), and blender::bke::pbvh::vert_normals_eval().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_inflate_brush().
| void blender::ed::sculpt_paint::brushes::do_layer_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 385 of file editors/sculpt_paint/mesh/brushes/layer.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::BRUSH_PERSISTENT, blender::SculptSession::cache, blender::data, do_layer_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::blender::Span< T >::is_empty(), blender::MutableSpan< T >::is_empty(), blender::ed::sculpt_paint::StrokeCache::layer_displacement_factor, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SculptSession::persistent_multires_data(), blender::bke::Point, blender::SubdivCCG::positions, PRF_scope, blender::MutableSpan< T >::size(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), blender::bke::pbvh::vert_normals_eval(), and blender::ed::sculpt_paint::vertex_count_get().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_layer_brush().
| void blender::ed::sculpt_paint::brushes::do_mask_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
A brush that modifies mask values instead of position.
Definition at line 206 of file editors/sculpt_paint/mesh/brushes/mask.cc.
References blender::BKE_paint_brush_for_read(), blender::BKE_subdiv_ccg_key_top_level(), blender::SculptSession::bm, blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::CD_PROP_FLOAT, blender::CustomData_get_offset_named(), blender::data, do_mask_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::SubdivCCG::masks, blender::bke::pbvh::Mesh, blender::bke::pbvh::node_update_mask_bmesh(), blender::bke::pbvh::node_update_mask_grids(), blender::bke::pbvh::node_update_mask_mesh(), blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::bke::Point, PRF_scope, blender::SculptSession::subdiv_ccg, blender::BMesh::vdata, blender::bke::pbvh::vert_normals_eval(), and blender::bke::pbvh::vert_positions_eval().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_mask_brush().
| void blender::ed::sculpt_paint::brushes::do_multiplane_scrape_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 550 of file multiplane_scrape.cc.
References blender::angle_v3v3(), blender::BKE_paint_brush_for_read(), blender::BLI_assert(), blender::bke::pbvh::BMesh, blender::BRUSH_MULTIPLANE_SCRAPE_DYNAMIC, blender::BRUSH_ORIGINAL_NORMAL, blender::ed::sculpt_paint::brush_plane_offset_get(), blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_area_normal(), blender::ed::sculpt_paint::calc_brush_plane(), blender::math::cross(), blender::data, DEG2RADF, do_multiplane_scrape_brush(), blender::math::dot(), blender::Editor, float, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::MatBase< float, 4, 4 >::identity(), blender::math::interpolate(), blender::math::invert(), blender::is_zero_v3(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::MatBase< T, NumCol, NumRow, Alignment >::location(), blender::ed::sculpt_paint::StrokeCache::location_symm, blender::bke::pbvh::Mesh, blender::math::midpoint(), blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, blender::mul_v3_mat3_m4v3(), blender::ed::sculpt_paint::StrokeCache::multiplane_scrape_angle, blender::math::normalize(), blender::normalize_m4(), blender::normalize_v3(), blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::plane_from_point_normal_v3(), blender::SubdivCCG::positions, blender::ed::sculpt_paint::StrokeCache::pressure, PRF_scope, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), RAD2DEGF, blender::ed::sculpt_paint::StrokeCache::radial_symmetry_pass, blender::ed::sculpt_paint::StrokeCache::radius, blender::rotate_v3_v3v3fl(), sample, sample_surface(), blender::ed::sculpt_paint::StrokeCache::scale, blender::SCULPT_DISP_DIR_AREA, blender::ed::sculpt_paint::stroke_is_first_brush_step_of_symmetry_pass(), blender::ed::sculpt_paint::StrokeCache::stroke_local_mat, blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), blender::bke::pbvh::vert_normals_eval(), blender::MatBase< T, NumCol, NumRow, Alignment >::x_axis(), blender::MatBase< T, NumCol, NumRow, Alignment >::y_axis(), and blender::MatBase< T, NumCol, NumRow, Alignment >::z_axis().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_multiplane_scrape_brush().
| void blender::ed::sculpt_paint::brushes::do_nudge_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 204 of file draw.cc.
References blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::math::cross(), do_nudge_brush(), blender::Editor, blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, offset_positions(), PRF_scope, and blender::ed::sculpt_paint::StrokeCache::sculpt_normal_symm.
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_nudge_brush().
| void blender::ed::sculpt_paint::brushes::do_pinch_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 172 of file pinch.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_plane(), blender::math::cross(), blender::data, do_pinch_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::MatBase< float, 4, 4 >::identity(), blender::math::is_zero(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::MatBase< T, NumCol, NumRow, Alignment >::location(), blender::ed::sculpt_paint::StrokeCache::location_symm, blender::bke::pbvh::Mesh, blender::math::normalize(), blender::normalize_m4(), blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, PRF_scope, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::ed::sculpt_paint::stroke_is_first_brush_step_of_symmetry_pass(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), blender::bke::pbvh::vert_normals_eval(), blender::MatBase< T, NumCol, NumRow, Alignment >::x_axis(), blender::MatBase< T, NumCol, NumRow, Alignment >::y_axis(), and blender::MatBase< T, NumCol, NumRow, Alignment >::z_axis().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_pinch_brush().
| void blender::ed::sculpt_paint::brushes::do_plane_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask, | ||
| const float3 & | plane_normal, | ||
| const float3 & | plane_center ) |
Definition at line 366 of file plane.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::BRUSH_PLANE_INVERT_DISPLACEMENT, blender::ed::sculpt_paint::brush_plane_offset_get(), blender::BRUSH_PLANE_SWAP_HEIGHT_AND_DEPTH, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::math::cross(), blender::data, do_plane_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::math::from_scale(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::MatBase< float, 4, 4 >::identity(), blender::ed::sculpt_paint::StrokeCache::initial_direction_flipped, blender::math::invert(), blender::math::is_zero(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::MatBase< T, NumCol, NumRow, Alignment >::location(), blender::bke::pbvh::Mesh, blender::math::normalize(), blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, PRF_scope, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::StrokeCache::scale, scale(), blender::ed::sculpt_paint::tilt_apply_to_normal(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), blender::bke::pbvh::vert_normals_eval(), blender::MatBase< T, NumCol, NumRow, Alignment >::x_axis(), blender::MatBase< T, NumCol, NumRow, Alignment >::y_axis(), and blender::MatBase< T, NumCol, NumRow, Alignment >::z_axis().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_plane_brush().
| void blender::ed::sculpt_paint::brushes::do_relax_face_sets_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 805 of file relax.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, do_relax_face_sets_brush(), blender::Editor, blender::ed::sculpt_paint::boundary::ensure_boundary_info(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::StrokeCache::iteration_count, blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), and PRF_scope.
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_relax_face_sets_brush().
| void blender::ed::sculpt_paint::brushes::do_rotate_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 172 of file editors/sculpt_paint/mesh/brushes/rotate.cc.
References angle(), blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::SculptSession::cache, blender::data, do_rotate_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, PRF_scope, blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), and blender::ed::sculpt_paint::StrokeCache::vertex_rotation.
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_rotate_brush().
| void blender::ed::sculpt_paint::brushes::do_scene_project_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 338 of file scene_project.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::BRUSH_PROJECT_USE_BIDIRECTIONAL, blender::data, do_scene_project_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, PRF_scope, blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), and blender::bke::pbvh::vert_normals_eval().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_scene_project_brush().
| void blender::ed::sculpt_paint::brushes::do_smooth_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask, | ||
| float | brush_strength ) |
Smooth positions with neighboring vertices.
Definition at line 243 of file smooth.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::SculptSession::boundary_info_cache, blender::data, do_smooth_brush(), blender::Editor, blender::ed::sculpt_paint::boundary::ensure_boundary_info(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), PRF_scope, and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_smooth_brush().
| void blender::ed::sculpt_paint::brushes::do_smooth_mask_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask, | ||
| float | brush_strength ) |
Smooth mask values with neighboring vertices.
Definition at line 289 of file smooth_mask.cc.
References blender::BKE_paint_brush_for_read(), blender::SculptSession::bm, blender::bke::pbvh::BMesh, blender::CD_PROP_FLOAT, blender::CustomData_get_offset_named(), do_smooth_mask_brush(), blender::Editor, blender::ed::sculpt_paint::boundary::ensure_boundary_info(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), PRF_scope, blender::SculptSession::subdiv_ccg, blender::bke::pbvh::update_mask_bmesh(), blender::bke::pbvh::update_mask_grids(), blender::BMesh::vdata, and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_smooth_mask_brush().
| void blender::ed::sculpt_paint::brushes::do_snake_hook_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 355 of file snake_hook.cc.
References blender::BKE_paint_brush_for_read(), blender::BLI_assert(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::data, do_snake_hook_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::grab_delta_get(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, PRF_scope, blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), and blender::bke::pbvh::vert_normals_eval().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_snake_hook_brush().
| void blender::ed::sculpt_paint::brushes::do_surface_smooth_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 415 of file surface_smooth.cc.
References blender::BKE_paint_brush_for_read(), BLI_assert_msg, blender::bke::pbvh::BMesh, blender::SculptSession::cache, do_surface_smooth_brush(), blender::Editor, blender::bke::pbvh::Grids, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), PRF_scope, blender::ed::sculpt_paint::stroke_is_first_brush_step(), blender::ed::sculpt_paint::StrokeCache::surface_smooth_laplacian_disp, blender::ed::sculpt_paint::vert_random_access_ensure(), and blender::ed::sculpt_paint::vertex_count_get().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_surface_smooth_brush().
| void blender::ed::sculpt_paint::brushes::do_thumb_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 138 of file thumb.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::math::cross(), blender::data, do_thumb_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, PRF_scope, blender::ed::sculpt_paint::StrokeCache::sculpt_normal_symm, blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), and blender::bke::pbvh::update_node_bounds_mesh().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_thumb_brush().
| void blender::ed::sculpt_paint::brushes::do_topology_relax_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 840 of file relax.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, do_topology_relax_brush(), blender::Editor, blender::ed::sculpt_paint::boundary::ensure_boundary_info(), blender::bke::pbvh::Grids, blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), PRF_scope, and blender::ed::sculpt_paint::stroke_is_first_brush_step_of_symmetry_pass().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_topology_relax_brush().
| void blender::ed::sculpt_paint::brushes::do_topology_slide_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 282 of file topology_slide.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::SculptSession::cache, blender::data, do_topology_slide_brush(), blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, PRF_scope, blender::ed::sculpt_paint::stroke_is_first_brush_step_of_symmetry_pass(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), and blender::bke::pbvh::update_node_bounds_mesh().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_topology_slide_brush().
|
static |
Definition at line 78 of file multiplane_scrape.cc.
References blender::BLI_assert(), BLI_NOINLINE, blender::Editor, filter_plane_side_factors(), blender::Span< T >::index_range(), blender::plane_point_side_v3(), PRF_scope, blender::MutableSpan< T >::size(), and blender::Span< T >::size().
Referenced by calc_bmesh(), calc_faces(), calc_grids(), and filter_plane_side_factors().
|
static |
Definition at line 63 of file multiplane_scrape.cc.
References blender::ed::sculpt_paint::brushes::ScrapeSampleData::area_cos, blender::ed::sculpt_paint::brushes::ScrapeSampleData::area_count, blender::ed::sculpt_paint::brushes::ScrapeSampleData::area_nos, b, and join_samples().
Referenced by join_samples(), and sample_surface().
| void blender::ed::sculpt_paint::brushes::multiplane_scrape_preview_draw | ( | uint | gpuattr, |
| const Brush & | brush, | ||
| const SculptSession & | ss, | ||
| const float | outline_col[3], | ||
| float | outline_alpha ) |
Definition at line 756 of file multiplane_scrape.cc.
References angle(), blender::BRUSH_MULTIPLANE_SCRAPE_PLANES_PREVIEW, blender::SculptSession::cache, DEG2RADF, blender::GPU_matrix_mul(), blender::GPU_PRIM_LINES, blender::GPU_PRIM_TRIS, blender::immBegin(), blender::immEnd(), blender::immUniformColor3fvAlpha(), blender::immVertex3f(), blender::ed::sculpt_paint::StrokeToggleSettings::invert, blender::math::invert(), blender::ed::sculpt_paint::StrokeCache::multiplane_scrape_angle, multiplane_scrape_preview_draw(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::ed::sculpt_paint::StrokeCache::radius, blender::rotate_v3_v3v3fl(), blender::ed::sculpt_paint::StrokeCache::stroke_local_mat, and blender::ed::sculpt_paint::StrokeCache::toggle_settings.
Referenced by blender::ed::sculpt_paint::mesh_cursor_active_draw(), and multiplane_scrape_preview_draw().
|
static |
Definition at line 125 of file draw.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::data, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, offset_positions(), blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), and blender::bke::pbvh::vert_normals_eval().
Referenced by do_draw_brush(), do_draw_sharp_brush(), do_gravity_brush(), do_nudge_brush(), and offset_positions().
|
static |
Definition at line 137 of file draw_sharp.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::data, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, offset_positions(), blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), and blender::bke::pbvh::update_node_bounds_mesh().
|
static |
Definition at line 237 of file multiplane_scrape.cc.
References accumulate_samples(), blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, blender::BKE_brush_calc_curve_factors(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::SculptSession::bm, blender::BRUSH_FRONTFACE, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::brushes::LocalData::distances, blender::ed::sculpt_paint::brushes::LocalData::factors, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::ed::sculpt_paint::gather_bmesh_normals(), blender::ed::sculpt_paint::gather_bmesh_positions(), blender::ed::sculpt_paint::StrokeCache::hardness, blender::ed::sculpt_paint::brushes::LocalData::local_positions, node, blender::ed::sculpt_paint::brushes::LocalData::normals, blender::ed::sculpt_paint::brushes::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, lexit::Vector< T >::resize(), sample, sample_node_surface_bmesh(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::math::transform_points(), and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by sample_node_surface_bmesh().
|
static |
Definition at line 189 of file multiplane_scrape.cc.
References accumulate_samples(), blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, blender::BKE_brush_calc_curve_factors(), blender::BRUSH_FRONTFACE, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), blender::ed::sculpt_paint::brushes::LocalData::distances, blender::ed::sculpt_paint::brushes::LocalData::factors, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::ed::sculpt_paint::gather_grids_normals(), blender::ed::sculpt_paint::gather_grids_positions(), blender::ed::sculpt_paint::StrokeCache::hardness, blender::ed::sculpt_paint::brushes::LocalData::local_positions, node, blender::ed::sculpt_paint::brushes::LocalData::normals, blender::ed::sculpt_paint::brushes::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, lexit::Vector< T >::resize(), sample, sample_node_surface_grids(), blender::MutableSpan< T >::size(), blender::SculptSession::subdiv_ccg, blender::math::transform_points(), and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by sample_node_surface_grids().
|
static |
Definition at line 142 of file multiplane_scrape.cc.
References accumulate_samples(), blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::ed::sculpt_paint::StrokeCache::automasking, blender::BKE_brush_calc_curve_factors(), blender::BRUSH_FRONTFACE, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::Editor, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::StrokeCache::hardness, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::MeshAttributeData::mask, node, PRF_scope, blender::ed::sculpt_paint::StrokeCache::radius, sample, sample_node_surface_mesh(), blender::Span< T >::size(), blender::math::transform_points(), and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by sample_node_surface_mesh().
|
static |
Samples and partitions the underlying mesh data to aggregate position and normal data based on positive and negative brush local x-axis positions.
Definition at line 292 of file multiplane_scrape.cc.
References blender::data, blender::Editor, blender::bke::pbvh::Grids, blender::index_mask::IndexMask::index_range(), join_samples(), blender::bke::pbvh::Mesh, blender::threading::parallel_reduce(), blender::bke::object::pbvh_get(), PRF_scope, blender::result, sample, sample_surface(), blender::bke::pbvh::vert_normals_eval(), and blender::bke::pbvh::vert_positions_eval().
Referenced by do_multiplane_scrape_brush(), and sample_surface().