|
Blender V4.3
|
Namespaces | |
| namespace | auto_mask |
| namespace | bmesh_topology_rake_cc |
| namespace | boundary |
| namespace | canvas |
| namespace | clay_cc |
| namespace | clay_strips_cc |
| namespace | clay_thumb_cc |
| namespace | cloth |
| namespace | color |
| namespace | crease_cc |
| namespace | draw_cc |
| namespace | draw_face_sets_cc |
| namespace | draw_sharp_cc |
| namespace | draw_vector_displacement_cc |
| namespace | dyntopo |
| namespace | elastic_deform_cc |
| namespace | enhance_details_cc |
| namespace | expand |
| namespace | face_set |
| namespace | filter |
| namespace | flatten_cc |
| namespace | flood_fill |
| namespace | geodesic |
| namespace | gesture |
| namespace | grab_cc |
| namespace | greasepencil |
| namespace | hide |
| namespace | image |
| namespace | inflate_cc |
| namespace | islands |
| namespace | layer_cc |
| namespace | mask |
| namespace | mask_cc |
| namespace | min_distance_edit |
| namespace | multires_displacement_eraser_cc |
| namespace | multires_displacement_smear_cc |
| namespace | paint |
| namespace | pinch_cc |
| namespace | pose |
| namespace | project |
| namespace | relax_cc |
| namespace | rotate_cc |
| namespace | select_grow |
| namespace | select_random |
| namespace | smooth |
| namespace | smooth_cc |
| namespace | smooth_mask_cc |
| namespace | snake_hook_cc |
| namespace | surface_smooth_cc |
| namespace | thumb_cc |
| namespace | topology_slide_cc |
| namespace | trim |
| namespace | undo |
| namespace | vwpaint |
Typedefs | |
| using | IndexedFilterFn |
| using | GenericFilterFn = FunctionRef<void(Span<float3>, const float4 &, MutableSpan<float>)> |
| using | DeltaProjectionFunc |
| using | StrokeGetLocation |
| using | StrokeTestStart = bool (*)(bContext *C, wmOperator *op, const float mouse[2]) |
| using | StrokeUpdateStep |
| using | StrokeRedraw = void (*)(const bContext *C, PaintStroke *stroke, bool final) |
| using | StrokeDone = void (*)(const bContext *C, PaintStroke *stroke) |
| using | BrushActionFunc |
Enumerations | |
| enum | PaintCursorDrawingType { PAINT_CURSOR_CURVE , PAINT_CURSOR_2D , PAINT_CURSOR_3D } |
| enum class | UpdateType { Position , Mask , Visibility , Color , Image , FaceSet } |
| enum class | TransformDisplacementMode { Original = 0 , Incremental = 1 } |
| enum class | PivotPositionMode { Origin = 0 , Unmasked = 1 , MaskBorder = 2 , ActiveVert = 3 , CursorSurface = 4 } |
Functions | |
| bool | report_if_shape_key_is_locked (const Object &ob, ReportList *reports) |
| void | operatortypes_sculpt () |
| void | keymap_sculpt (wmKeyConfig *keyconf) |
| void | update_modal_transform (bContext *C, Object &ob) |
| void | init_transform (bContext *C, Object &ob, const float mval_fl[2], const char *undo_name) |
| void | end_transform (bContext *C, Object &ob) |
| bool | object_active_color_fill (Object &ob, const float fill_color[4], bool only_selected) |
| static int | brush_asset_activate_exec (bContext *C, wmOperator *op) |
| void | BRUSH_OT_asset_activate (wmOperatorType *ot) |
| static std::optional< AssetLibraryReference > | library_to_library_ref (const asset_system::AssetLibrary &library) |
| static AssetLibraryReference | user_library_to_library_ref (const bUserAssetLibrary &user_library) |
| static const bUserAssetLibrary * | library_ref_to_user_library (const AssetLibraryReference &library_ref) |
| static void | refresh_asset_library (const bContext *C, const AssetLibraryReference &library_ref) |
| static void | refresh_asset_library (const bContext *C, const bUserAssetLibrary &user_library) |
| static bool | brush_asset_save_as_poll (bContext *C) |
| static const bUserAssetLibrary * | get_asset_library_from_prop (PointerRNA &ptr) |
| static asset_system::AssetCatalog & | asset_library_ensure_catalog (asset_system::AssetLibrary &library, const asset_system::AssetCatalogPath &path) |
| static asset_system::AssetCatalog & | asset_library_ensure_catalogs_in_path (asset_system::AssetLibrary &library, const asset_system::AssetCatalogPath &path) |
| static void | show_catalog_in_asset_shelf (const bContext &C, const StringRefNull catalog_path) |
| static int | brush_asset_save_as_exec (bContext *C, wmOperator *op) |
| static bool | library_is_editable (const AssetLibraryReference &library) |
| static int | brush_asset_save_as_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| static const EnumPropertyItem * | rna_asset_library_reference_itemf (bContext *, PointerRNA *, PropertyRNA *, bool *r_free) |
| static void | visit_library_catalogs_catalog_for_search (const Main &bmain, const bUserAssetLibrary &user_library, const StringRef edit_text, const FunctionRef< void(StringPropertySearchVisitParams)> visit_fn) |
| static void | visit_library_prop_catalogs_catalog_for_search_fn (const bContext *C, PointerRNA *ptr, PropertyRNA *, const char *edit_text, FunctionRef< void(StringPropertySearchVisitParams)> visit_fn) |
| void | BRUSH_OT_asset_save_as (wmOperatorType *ot) |
| static int | brush_asset_edit_metadata_exec (bContext *C, wmOperator *op) |
| static int | brush_asset_edit_metadata_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| static void | visit_active_library_catalogs_catalog_for_search_fn (const bContext *C, PointerRNA *, PropertyRNA *, const char *edit_text, FunctionRef< void(StringPropertySearchVisitParams)> visit_fn) |
| static bool | brush_asset_edit_metadata_poll (bContext *C) |
| void | BRUSH_OT_asset_edit_metadata (wmOperatorType *ot) |
| static int | brush_asset_load_preview_exec (bContext *C, wmOperator *op) |
| static int | brush_asset_load_preview_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | BRUSH_OT_asset_load_preview (wmOperatorType *ot) |
| static bool | brush_asset_delete_poll (bContext *C) |
| static int | brush_asset_delete_exec (bContext *C, wmOperator *op) |
| static int | brush_asset_delete_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| void | BRUSH_OT_asset_delete (wmOperatorType *ot) |
| static bool | brush_asset_save_poll (bContext *C) |
| static int | brush_asset_save_exec (bContext *C, wmOperator *op) |
| void | BRUSH_OT_asset_save (wmOperatorType *ot) |
| static bool | brush_asset_revert_poll (bContext *C) |
| static int | brush_asset_revert_exec (bContext *C, wmOperator *op) |
| void | BRUSH_OT_asset_revert (wmOperatorType *ot) |
| 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) |
| 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, LocalData &tls, 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) |
| void | do_clay_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| static BLI_NOINLINE void | apply_z_axis_falloff (const Span< float3 > vert_positions, const Span< int > verts, const float4x4 &mat, const MutableSpan< float > factors) |
| static BLI_NOINLINE void | apply_z_axis_falloff (const Span< float3 > positions, const float4x4 &mat, const MutableSpan< float > factors) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float4x4 &mat, const float4 &plane, const float strength, const bool flip, const Span< float3 > vert_normals, 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 float4x4 &mat, const float4 &plane, const float strength, const bool flip, 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 float4 &plane, const float strength, const bool flip, bke::pbvh::BMeshNode &node, LocalData &tls) |
| void | do_clay_strips_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| 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, LocalData &tls, 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) |
| void | do_clay_thumb_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| float | clay_thumb_get_stabilized_pressure (const StrokeCache &cache) |
| 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, LocalData &tls, 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 Scene &scene, const Sculpt &sd, const bool invert_strength, Object &object, const IndexMask &node_mask) |
| void | do_crease_brush (const Depsgraph &depsgraph, const Scene &scene, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_blob_brush (const Depsgraph &depsgraph, const Scene &scene, const Sculpt &sd, 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, LocalData &tls, 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) |
| void | do_draw_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_gravity_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| static void | calc_face_centers (const OffsetIndices< int > faces, const Span< int > corner_verts, const Span< float3 > vert_positions, const Span< int > face_indices, const MutableSpan< float3 > positions) |
| 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 | fill_factor_from_hide_and_mask (const Mesh &mesh, const Span< int > face_indices, const MutableSpan< float > r_factors) |
| 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 BLI_NOINLINE void | calc_face_indices_grids (const SubdivCCG &subdiv_ccg, const Span< int > grids, const MutableSpan< int > face_indices) |
| 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 | fill_factor_from_hide_and_mask (const BMesh &bm, const Set< BMFace *, 0L > &faces, const MutableSpan< float > r_factors) |
| static void | calc_face_centers (const Set< BMFace *, 0L > &faces, const MutableSpan< float3 > centers) |
| 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) |
| void | do_draw_face_sets_brush (const Depsgraph &depsgraph, const Sculpt &sd, 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 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 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) |
| void | do_draw_sharp_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| static void | calc_brush_texture_colors (SculptSession &ss, const Brush &brush, const Span< float3 > vert_positions, const Span< int > verts, const Span< float > factors, const MutableSpan< float4 > r_colors) |
| static void | calc_brush_texture_colors (SculptSession &ss, const Brush &brush, const Span< float3 > positions, const Span< float > factors, const MutableSpan< float4 > 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, LocalData &tls, 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) |
| void | do_draw_vector_displacement_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| 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, LocalData &tls, 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) |
| void | do_elastic_deform_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| 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, LocalData &tls, 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) |
| void | calc_smooth_translations (const Depsgraph &depsgraph, const Object &object, const IndexMask &node_mask, const MutableSpan< float3 > translations) |
| void | do_enhance_details_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| 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, LocalData &tls, 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) |
| void | do_grab_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | geometry_preview_lines_update (Depsgraph &depsgraph, Object &object, SculptSession &ss, float radius) |
| 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, LocalData &tls, 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) |
| void | do_inflate_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| 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, LocalData &tls, MutableSpan< float > layer_displacement_factor, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, Object &object, 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) |
| void | do_layer_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| 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, LocalData &tls, 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) |
| void | do_mask_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| 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, LocalData &tls) |
| 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 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, LocalData &tls, 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) |
| void | do_multiplane_scrape_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | multiplane_scrape_preview_draw (const uint gpuattr, const Brush &brush, const SculptSession &ss, const float outline_col[3], const float outline_alpha) |
| 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) |
| void | do_displacement_eraser_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| 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) |
| void | do_displacement_smear_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| 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, LocalData &tls, 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) |
| void | do_pinch_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| static void | calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float4 &plane, const float strength, const MeshAttributeData &attribute_data, const Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, Object &object, LocalData &tls, const PositionDeformData &position_data, const IndexedFilterFn filter) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float4 &plane, const float strength, bke::pbvh::GridsNode &node, LocalData &tls, const GenericFilterFn filter) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float4 &plane, const float strength, bke::pbvh::BMeshNode &node, LocalData &tls, const GenericFilterFn filter) |
| static void | do_plane_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask, const float direction, const IndexedFilterFn indexed_filter, const GenericFilterFn generic_filter) |
| void | do_flatten_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_fill_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| void | do_scrape_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_topology_relax_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| 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, LocalData &tls, 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) |
| void | do_rotate_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| static Vector< float > | iteration_strengths (const float strength) |
| static BLI_NOINLINE void | apply_positions_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const MeshAttributeData &attribute_data, const Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, const float strength, Object &object, LocalData &tls, 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, 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) |
| void | do_smooth_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask, const float brush_strength) |
| static Vector< float > | iteration_strengths (const float strength) |
| static void | calc_smooth_masks_faces (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const Span< bool > hide_poly, const Span< int > verts, const Span< float > masks, LocalData &tls, const MutableSpan< float > new_masks) |
| 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) |
| void | do_smooth_mask_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask, float brush_strength) |
| 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, LocalData &tls, 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) |
| void | do_snake_hook_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| 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) |
| void | do_surface_smooth_brush (const Depsgraph &depsgraph, const Sculpt &sd, 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 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 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) |
| void | do_thumb_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| 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 Span< Vector< 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) |
| void | do_topology_slide_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask) |
| std::unique_ptr< CurvesSculptStrokeOperation > | new_add_operation () |
| static std::optional< float3 > | find_curves_brush_position (const CurvesGeometry &curves, const float3 &ray_start_cu, const float3 &ray_end_cu, const float brush_radius_re, const ARegion ®ion, const RegionView3D &rv3d, const Object &object, const Span< float3 > positions) |
| std::optional< CurvesBrush3D > | sample_curves_3d_brush (const Depsgraph &depsgraph, const ARegion ®ion, const View3D &v3d, const RegionView3D &rv3d, const Object &curves_object, const float2 &brush_pos_re, const float brush_radius_re) |
| std::optional< CurvesBrush3D > | sample_curves_surface_3d_brush (const Depsgraph &depsgraph, const ARegion ®ion, const View3D &v3d, const CurvesSurfaceTransforms &transforms, const BVHTreeFromMesh &surface_bvh, const float2 &brush_pos_re, const float brush_radius_re) |
| Vector< float4x4 > | get_symmetry_brush_transforms (const eCurvesSymmetryType symmetry) |
| float | transform_brush_radius (const float4x4 &transform, const float3 &brush_position, const float old_radius) |
| void | move_last_point_and_resample (MoveAndResampleBuffers &buffer, MutableSpan< float3 > positions, const float3 &new_last_position) |
| void | report_empty_original_surface (ReportList *reports) |
| void | report_empty_evaluated_surface (ReportList *reports) |
| void | report_missing_surface (ReportList *reports) |
| void | report_missing_uv_map_on_original_surface (ReportList *reports) |
| void | report_missing_uv_map_on_evaluated_surface (ReportList *reports) |
| void | report_invalid_uv_map (ReportList *reports) |
| std::unique_ptr< CurvesSculptStrokeOperation > | new_comb_operation () |
| std::unique_ptr< CurvesSculptStrokeOperation > | new_delete_operation () |
| static bool | use_add_density_mode (const BrushStrokeMode brush_mode, const bContext &C, const StrokeExtension &stroke_start) |
| std::unique_ptr< CurvesSculptStrokeOperation > | new_density_operation (const BrushStrokeMode brush_mode, const bContext &C, const StrokeExtension &stroke_start) |
| std::unique_ptr< CurvesSculptStrokeOperation > | new_grow_shrink_operation (const BrushStrokeMode brush_mode, const bContext &C) |
| std::unique_ptr< CurvesSculptStrokeOperation > | new_snake_hook_operation () |
| std::unique_ptr< CurvesSculptStrokeOperation > | new_selection_paint_operation (const BrushStrokeMode brush_mode, const bContext &C) |
| std::unique_ptr< CurvesSculptStrokeOperation > | new_pinch_operation (const BrushStrokeMode brush_mode, const bContext &C) |
| std::unique_ptr< CurvesSculptStrokeOperation > | new_smooth_operation () |
| std::unique_ptr< CurvesSculptStrokeOperation > | new_puff_operation () |
| std::unique_ptr< CurvesSculptStrokeOperation > | new_slide_operation () |
| bke::SpanAttributeWriter< float > | float_selection_ensure (Curves &curves_id) |
| static void | SCULPT_CURVES_OT_select_random (wmOperatorType *ot) |
| static void | SCULPT_CURVES_OT_select_grow (wmOperatorType *ot) |
| static void | SCULPT_CURVES_OT_min_distance_edit (wmOperatorType *ot) |
| void | scale_translations (MutableSpan< float3 > translations, Span< float > factors) |
| void | scale_translations (MutableSpan< float3 > translations, float factor) |
| void | scale_factors (MutableSpan< float > factors, float strength) |
| void | scale_factors (MutableSpan< float > factors, Span< float > strengths) |
| void | translations_from_offset_and_factors (const float3 &offset, Span< float > factors, MutableSpan< float3 > r_translations) |
| void | translations_from_new_positions (Span< float3 > new_positions, Span< int > verts, Span< float3 > old_positions, MutableSpan< float3 > translations) |
| void | translations_from_new_positions (Span< float3 > new_positions, Span< float3 > old_positions, MutableSpan< float3 > translations) |
| void | transform_positions (Span< float3 > src, const float4x4 &transform, MutableSpan< float3 > dst) |
| void | transform_positions (const float4x4 &transform, MutableSpan< float3 > positions) |
| template<typename T > | |
| void | gather_data_mesh (Span< T > src, Span< int > indices, MutableSpan< T > dst) |
| template<typename T > | |
| MutableSpan< T > | gather_data_mesh (const Span< T > src, const Span< int > indices, Vector< T > &dst) |
| template<typename T > | |
| void | gather_data_grids (const SubdivCCG &subdiv_ccg, Span< T > src, Span< int > grids, MutableSpan< T > node_data) |
| template<typename T > | |
| MutableSpan< T > | gather_data_grids (const SubdivCCG &subdiv_ccg, const Span< T > src, const Span< int > grids, Vector< T > &dst) |
| template<typename T > | |
| void | gather_data_bmesh (Span< T > src, const Set< BMVert *, 0 > &verts, MutableSpan< T > node_data) |
| template<typename T > | |
| MutableSpan< T > | gather_data_bmesh (const Span< T > src, const Set< BMVert *, 0 > &verts, Vector< T > &dst) |
| template<typename T > | |
| void | scatter_data_mesh (Span< T > src, Span< int > indices, MutableSpan< T > dst) |
| template<typename T > | |
| void | scatter_data_grids (const SubdivCCG &subdiv_ccg, Span< T > node_data, Span< int > grids, MutableSpan< T > dst) |
| template<typename T > | |
| void | scatter_data_bmesh (Span< T > node_data, const Set< BMVert *, 0 > &verts, MutableSpan< T > dst) |
| MutableSpan< float3 > | gather_grids_positions (const SubdivCCG &subdiv_ccg, const Span< int > grids, Vector< float3 > &positions) |
| void | gather_bmesh_positions (const Set< BMVert *, 0 > &verts, MutableSpan< float3 > positions) |
| MutableSpan< float3 > | gather_bmesh_positions (const Set< BMVert *, 0 > &verts, Vector< float3 > &positions) |
| void | gather_grids_normals (const SubdivCCG &subdiv_ccg, Span< int > grids, MutableSpan< float3 > normals) |
| void | gather_bmesh_normals (const Set< BMVert *, 0 > &verts, MutableSpan< float3 > normals) |
| void | calc_factors_common_mesh (const Depsgraph &depsgraph, const Brush &brush, const Object &object, const MeshAttributeData &attribute_data, Span< float3 > positions, Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, Vector< float > &r_factors, Vector< float > &r_distances) |
| void | calc_factors_common_mesh_indexed (const Depsgraph &depsgraph, const Brush &brush, const Object &object, const MeshAttributeData &attribute_data, Span< float3 > vert_positions, Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, Vector< float > &r_factors, Vector< float > &r_distances) |
| void | calc_factors_common_grids (const Depsgraph &depsgraph, const Brush &brush, const Object &object, Span< float3 > positions, const bke::pbvh::GridsNode &node, Vector< float > &r_factors, Vector< float > &r_distances) |
| void | calc_factors_common_bmesh (const Depsgraph &depsgraph, const Brush &brush, const Object &object, Span< float3 > positions, bke::pbvh::BMeshNode &node, Vector< float > &r_factors, Vector< float > &r_distances) |
| void | calc_factors_common_from_orig_data_mesh (const Depsgraph &depsgraph, const Brush &brush, const Object &object, const MeshAttributeData &attribute_data, Span< float3 > positions, Span< float3 > normals, const bke::pbvh::MeshNode &node, Vector< float > &r_factors, Vector< float > &r_distances) |
| void | calc_factors_common_from_orig_data_grids (const Depsgraph &depsgraph, const Brush &brush, const Object &object, Span< float3 > positions, Span< float3 > normals, const bke::pbvh::GridsNode &node, Vector< float > &r_factors, Vector< float > &r_distances) |
| void | calc_factors_common_from_orig_data_bmesh (const Depsgraph &depsgraph, const Brush &brush, const Object &object, Span< float3 > positions, Span< float3 > normals, bke::pbvh::BMeshNode &node, Vector< float > &r_factors, Vector< float > &r_distances) |
| void | fill_factor_from_hide (Span< bool > hide_vert, Span< int > verts, MutableSpan< float > r_factors) |
| void | fill_factor_from_hide (const SubdivCCG &subdiv_ccg, Span< int > grids, MutableSpan< float > r_factors) |
| void | fill_factor_from_hide (const Set< BMVert *, 0 > &verts, MutableSpan< float > r_factors) |
| void | fill_factor_from_hide_and_mask (Span< bool > hide_vert, Span< float > mask, Span< int > verts, MutableSpan< float > r_factors) |
| void | fill_factor_from_hide_and_mask (const SubdivCCG &subdiv_ccg, Span< int > grids, MutableSpan< float > r_factors) |
| void | fill_factor_from_hide_and_mask (const BMesh &bm, const Set< BMVert *, 0 > &verts, MutableSpan< float > r_factors) |
| void | calc_front_face (const float3 &view_normal, Span< float3 > normals, MutableSpan< float > factors) |
| void | calc_front_face (const float3 &view_normal, Span< float3 > vert_normals, Span< int > vert_indices, MutableSpan< float > factors) |
| void | calc_front_face (const float3 &view_normal, const SubdivCCG &subdiv_ccg, Span< int > grids, MutableSpan< float > factors) |
| void | calc_front_face (const float3 &view_normal, const Set< BMVert *, 0 > &verts, MutableSpan< float > factors) |
| void | calc_front_face (const float3 &view_normal, const Set< BMFace *, 0 > &faces, MutableSpan< float > factors) |
| void | filter_region_clip_factors (const SculptSession &ss, Span< float3 > vert_positions, Span< int > verts, MutableSpan< float > factors) |
| void | filter_region_clip_factors (const SculptSession &ss, Span< float3 > positions, MutableSpan< float > factors) |
| void | calc_brush_distances (const SculptSession &ss, Span< float3 > vert_positions, Span< int > vert_indices, eBrushFalloffShape falloff_shape, MutableSpan< float > r_distances) |
| void | calc_brush_distances (const SculptSession &ss, Span< float3 > positions, eBrushFalloffShape falloff_shape, MutableSpan< float > r_distances) |
| void | calc_brush_distances_squared (const SculptSession &ss, Span< float3 > vert_positions, Span< int > vert_indices, eBrushFalloffShape falloff_shape, MutableSpan< float > r_distances) |
| void | calc_brush_distances_squared (const SculptSession &ss, Span< float3 > positions, eBrushFalloffShape falloff_shape, MutableSpan< float > r_distances) |
| void | filter_distances_with_radius (float radius, Span< float > distances, MutableSpan< float > factors) |
| void | calc_brush_cube_distances (const Brush &brush, const float4x4 &mat, Span< float3 > positions, Span< int > verts, MutableSpan< float > r_distances, MutableSpan< float > factors) |
| void | calc_brush_cube_distances (const Brush &brush, const float4x4 &mat, Span< float3 > positions, MutableSpan< float > r_distances, MutableSpan< float > factors) |
| void | apply_hardness_to_distances (float radius, float hardness, MutableSpan< float > distances) |
| void | apply_hardness_to_distances (const StrokeCache &cache, const MutableSpan< float > distances) |
| void | calc_brush_strength_factors (const StrokeCache &cache, const Brush &brush, Span< float > distances, MutableSpan< float > factors) |
| void | calc_brush_texture_factors (const SculptSession &ss, const Brush &brush, Span< float3 > vert_positions, Span< int > vert_indices, MutableSpan< float > factors) |
| void | calc_brush_texture_factors (const SculptSession &ss, const Brush &brush, Span< float3 > positions, MutableSpan< float > factors) |
| void | apply_translations (Span< float3 > translations, Span< int > verts, MutableSpan< float3 > positions) |
| void | apply_translations (Span< float3 > translations, Span< int > grids, SubdivCCG &subdiv_ccg) |
| void | apply_translations (Span< float3 > translations, const Set< BMVert *, 0 > &verts) |
| void | project_translations (MutableSpan< float3 > translations, const float3 &plane) |
| void | reset_translations_to_original (MutableSpan< float3 > translations, Span< float3 > positions, Span< float3 > orig_positions) |
| void | apply_crazyspace_to_translations (Span< float3x3 > deform_imats, Span< int > verts, MutableSpan< float3 > translations) |
| void | clip_and_lock_translations (const Sculpt &sd, const SculptSession &ss, Span< float3 > positions, Span< int > verts, MutableSpan< float3 > translations) |
| void | clip_and_lock_translations (const Sculpt &sd, const SculptSession &ss, Span< float3 > positions, MutableSpan< float3 > translations) |
| void | update_shape_keys (Object &object, const Mesh &mesh, const KeyBlock &active_key, Span< int > verts, Span< float3 > translations, Span< float3 > positions_orig) |
| OffsetIndices< int > | create_node_vert_offsets (const Span< bke::pbvh::MeshNode > nodes, const IndexMask &nodes_mask, Array< int > &node_data) |
| OffsetIndices< int > | create_node_vert_offsets (const CCGKey &key, const Span< bke::pbvh::GridsNode > nodes, const IndexMask &nodes_mask, Array< int > &node_data) |
| OffsetIndices< int > | create_node_vert_offsets_bmesh (const Span< bke::pbvh::BMeshNode > nodes, const IndexMask &nodes_mask, Array< int > &node_data) |
| void | calc_vert_neighbors (OffsetIndices< int > faces, Span< int > corner_verts, GroupedSpan< int > vert_to_face, Span< bool > hide_poly, Span< int > verts, MutableSpan< Vector< int > > result) |
| void | calc_vert_neighbors (const SubdivCCG &subdiv_ccg, Span< int > grids, MutableSpan< Vector< SubdivCCGCoord > > result) |
| void | calc_vert_neighbors (Set< BMVert *, 0 > verts, MutableSpan< Vector< BMVert * > > result) |
| void | calc_vert_neighbors_interior (OffsetIndices< int > faces, Span< int > corner_verts, GroupedSpan< int > vert_to_face, BitSpan boundary_verts, Span< bool > hide_poly, Span< int > verts, MutableSpan< Vector< int > > result) |
| void | calc_vert_neighbors_interior (OffsetIndices< int > faces, Span< int > corner_verts, BitSpan boundary_verts, const SubdivCCG &subdiv_ccg, Span< int > grids, MutableSpan< Vector< SubdivCCGCoord > > result) |
| void | calc_vert_neighbors_interior (const Set< BMVert *, 0 > &verts, MutableSpan< Vector< BMVert * > > result) |
| void | calc_translations_to_plane (Span< float3 > vert_positions, Span< int > verts, const float4 &plane, MutableSpan< float3 > translations) |
| void | calc_translations_to_plane (Span< float3 > positions, const float4 &plane, MutableSpan< float3 > translations) |
| void | filter_verts_outside_symmetry_area (Span< float3 > positions, const float3 &pivot, ePaintSymmetryFlags symm, MutableSpan< float > factors) |
| void | filter_plane_trim_limit_factors (const Brush &brush, const StrokeCache &cache, Span< float3 > translations, MutableSpan< float > factors) |
| void | filter_below_plane_factors (Span< float3 > vert_positions, Span< int > verts, const float4 &plane, MutableSpan< float > factors) |
| void | filter_below_plane_factors (Span< float3 > positions, const float4 &plane, MutableSpan< float > factors) |
| void | filter_above_plane_factors (Span< float3 > vert_positions, Span< int > verts, const float4 &plane, MutableSpan< float > factors) |
| void | filter_above_plane_factors (Span< float3 > positions, const float4 &plane, MutableSpan< float > factors) |
| static int | same_tex_snap (TexSnapshot *snap, MTex *mtex, ViewContext *vc, bool col, float zoom) |
| static void | make_tex_snap (TexSnapshot *snap, ViewContext *vc, float zoom) |
| static void | load_tex_task_cb_ex (void *__restrict userdata, const int j, const TaskParallelTLS *__restrict tls) |
| static int | load_tex (Brush *br, ViewContext *vc, float zoom, bool col, bool primary) |
| static void | load_tex_cursor_task_cb (void *__restrict userdata, const int j, const TaskParallelTLS *__restrict) |
| static int | load_tex_cursor (Brush *br, ViewContext *vc, float zoom) |
| static int | project_brush_radius (ViewContext *vc, float radius, const float location[3]) |
| static bool | paint_draw_tex_overlay (UnifiedPaintSettings *ups, Brush *brush, ViewContext *vc, int x, int y, float zoom, const PaintMode mode, bool col, bool primary) |
| static bool | paint_draw_cursor_overlay (UnifiedPaintSettings *ups, Brush *brush, ViewContext *vc, int x, int y, float zoom) |
| static bool | paint_draw_alpha_overlay (UnifiedPaintSettings *ups, Brush *brush, ViewContext *vc, int x, int y, float zoom, PaintMode mode) |
| BLI_INLINE void | draw_tri_point (uint pos, const float sel_col[4], const float pivot_col[4], float *co, float width, bool selected) |
| BLI_INLINE void | draw_rect_point (uint pos, const float sel_col[4], const float handle_col[4], const float *co, float width, bool selected) |
| BLI_INLINE void | draw_bezier_handle_lines (uint pos, const float sel_col[4], BezTriple *bez) |
| static void | paint_draw_curve_cursor (Brush *brush, ViewContext *vc) |
| static void | paint_cursor_update_unprojected_radius (UnifiedPaintSettings &ups, Brush &brush, ViewContext &vc, const float location[3]) |
| static void | cursor_draw_point_screen_space (const uint gpuattr, const ARegion *region, const float true_location[3], const float obmat[4][4], const int size) |
| static void | cursor_draw_tiling_preview (const uint gpuattr, const ARegion *region, const float true_location[3], const Sculpt &sd, const Object &ob, const float radius) |
| static void | cursor_draw_point_with_symmetry (const uint gpuattr, const ARegion *region, const float true_location[3], const Sculpt &sd, const Object &ob, const float radius) |
| static void | sculpt_geometry_preview_lines_draw (const Depsgraph &depsgraph, const uint gpuattr, const Brush &brush, const Object &object) |
| static void | SCULPT_layer_brush_height_preview_draw (const uint gpuattr, const Brush &brush, const float rds, const float line_width, const float outline_col[3], const float alpha) |
| static bool | paint_use_2d_cursor (PaintMode mode) |
| static bool | paint_cursor_context_init (bContext *C, const int x, const int y, PaintCursorContext *pcontext) |
| static void | paint_cursor_update_pixel_radius (PaintCursorContext *pcontext) |
| static void | paint_cursor_sculpt_session_update_and_init (PaintCursorContext *pcontext) |
| static void | paint_update_mouse_cursor (PaintCursorContext *pcontext) |
| static void | paint_draw_2D_view_brush_cursor_default (PaintCursorContext *pcontext) |
| static void | grease_pencil_eraser_draw (PaintCursorContext *pcontext) |
| static void | grease_pencil_brush_cursor_draw (PaintCursorContext *pcontext) |
| static void | paint_draw_2D_view_brush_cursor (PaintCursorContext *pcontext) |
| static void | paint_draw_legacy_3D_view_brush_cursor (PaintCursorContext *pcontext) |
| static void | paint_draw_3D_view_inactive_brush_cursor (PaintCursorContext *pcontext) |
| static void | paint_cursor_update_object_space_radius (PaintCursorContext *pcontext) |
| static void | paint_cursor_drawing_setup_cursor_space (PaintCursorContext *pcontext) |
| static void | paint_cursor_draw_main_inactive_cursor (PaintCursorContext *pcontext) |
| static void | paint_cursor_pose_brush_segments_draw (PaintCursorContext *pcontext) |
| static void | paint_cursor_pose_brush_origins_draw (PaintCursorContext *pcontext) |
| static void | paint_cursor_preview_boundary_data_pivot_draw (PaintCursorContext *pcontext) |
| static void | paint_cursor_preview_boundary_data_update (PaintCursorContext *pcontext) |
| static void | paint_cursor_draw_3d_view_brush_cursor_inactive (PaintCursorContext *pcontext) |
| static void | paint_cursor_cursor_draw_3d_view_brush_cursor_active (PaintCursorContext *pcontext) |
| static void | paint_cursor_draw_3D_view_brush_cursor (PaintCursorContext *pcontext) |
| static bool | paint_cursor_is_3d_view_navigating (PaintCursorContext *pcontext) |
| static bool | paint_cursor_is_brush_cursor_enabled (PaintCursorContext *pcontext) |
| static void | paint_cursor_update_rake_rotation (PaintCursorContext *pcontext) |
| static void | paint_cursor_check_and_draw_alpha_overlays (PaintCursorContext *pcontext) |
| static void | paint_cursor_update_anchored_location (PaintCursorContext *pcontext) |
| static void | paint_cursor_setup_2D_drawing (PaintCursorContext *pcontext) |
| static void | paint_cursor_setup_3D_drawing (PaintCursorContext *pcontext) |
| static void | paint_cursor_restore_drawing_state () |
| static void | paint_draw_cursor (bContext *C, int x, int y, void *) |
| static int | aa_samples_per_texel_axis (const Brush *brush, const float radius) |
| static void | update_curve_mask (CurveMaskCache *curve_mask_cache, const Brush *brush, const int diameter, const float radius, const float cursor_position[2]) |
| static bool | is_sampled_curve_valid (const CurveMaskCache *curve_mask_cache, const Brush *brush) |
| static void | sampled_curve_free (CurveMaskCache *curve_mask_cache) |
| static void | update_sampled_curve (CurveMaskCache *curve_mask_cache, const Brush *brush) |
| static size_t | diameter_to_curve_mask_size (const int diameter) |
| static bool | is_curve_mask_size_valid (const CurveMaskCache *curve_mask_cache, const int diameter) |
| static void | curve_mask_free (CurveMaskCache *curve_mask_cache) |
| static void | curve_mask_allocate (CurveMaskCache *curve_mask_cache, const int diameter) |
| PaintStroke * | paint_stroke_new (bContext *C, wmOperator *op, StrokeGetLocation get_location, StrokeTestStart test_start, StrokeUpdateStep update_step, StrokeRedraw redraw, StrokeDone done, int event_type) |
| void | paint_stroke_free (bContext *C, wmOperator *op, PaintStroke *stroke) |
| bool | paint_space_stroke_enabled (const Brush &br, PaintMode mode) |
| bool | paint_supports_dynamic_size (const Brush &br, PaintMode mode) |
| bool | paint_supports_dynamic_tex_coords (const Brush &br, PaintMode mode) |
| bool | paint_supports_smooth_stroke (PaintStroke *stroke, const Brush &br, PaintMode mode) |
| bool | paint_supports_texture (PaintMode mode) |
| wmKeyMap * | paint_stroke_modal_keymap (wmKeyConfig *keyconf) |
| int | paint_stroke_modal (bContext *C, wmOperator *op, const wmEvent *event, PaintStroke **stroke_p) |
| int | paint_stroke_exec (bContext *C, wmOperator *op, PaintStroke *stroke) |
| void | paint_stroke_cancel (bContext *C, wmOperator *op, PaintStroke *stroke) |
| bool | paint_stroke_flipped (PaintStroke *stroke) |
| bool | paint_stroke_inverted (PaintStroke *stroke) |
| ViewContext * | paint_stroke_view_context (PaintStroke *stroke) |
| void * | paint_stroke_mode_data (PaintStroke *stroke) |
| float | paint_stroke_distance_get (PaintStroke *stroke) |
| void | paint_stroke_set_mode_data (PaintStroke *stroke, std::unique_ptr< PaintModeData > mode_data) |
| bool | paint_stroke_started (PaintStroke *stroke) |
| void | paint_stroke_jitter_pos (Scene &scene, const PaintStroke &stroke, const PaintMode mode, const Brush &brush, const float pressure, const float mval[2], float r_mouse_out[2]) |
| bool | paint_brush_tool_poll (bContext *C) |
| bool | paint_brush_cursor_poll (bContext *C) |
| bool | paint_brush_update (bContext *C, const Brush &brush, PaintMode mode, PaintStroke *stroke, const float mouse_init[2], float mouse[2], float pressure, float r_location[3], bool *r_location_is_set) |
| float3 | symmetry_flip (const float3 &src, const ePaintSymmetryFlags symm) |
| static void | paint_draw_smooth_cursor (bContext *C, int x, int y, void *customdata) |
| static void | paint_draw_line_cursor (bContext *C, int x, int y, void *customdata) |
| static bool | image_paint_brush_type_require_location (const Brush &brush, const PaintMode mode) |
| static bool | paint_stroke_use_scene_spacing (const Brush &brush, const PaintMode mode) |
| static bool | image_paint_brush_type_raycast_original (const Brush &brush, PaintMode) |
| static bool | image_paint_brush_type_require_inbetween_mouse_events (const Brush &brush, const PaintMode mode) |
| static bool | paint_stroke_use_dash (const Brush &brush) |
| static bool | paint_stroke_use_jitter (PaintMode mode, const Brush &brush, bool invert) |
| static void | paint_brush_stroke_add_step (bContext *C, wmOperator *op, PaintStroke *stroke, const float mval[2], float pressure) |
| static bool | paint_smooth_stroke (PaintStroke *stroke, const PaintSample *sample, PaintMode mode, float r_mouse[2], float *r_pressure) |
| static float | paint_space_stroke_spacing (bContext *C, const Scene *scene, PaintStroke *stroke, float size_pressure, float spacing_pressure) |
| static float | paint_stroke_overlapped_curve (const Brush &br, float x, float spacing) |
| static float | paint_stroke_integrate_overlap (const Brush &br, float factor) |
| static float | paint_space_stroke_spacing_variable (bContext *C, const Scene *scene, PaintStroke *stroke, float pressure, float dpressure, float length) |
| static int | paint_space_stroke (bContext *C, wmOperator *op, PaintStroke *stroke, const float final_mouse[2], float final_pressure) |
| static void | stroke_done (bContext *C, wmOperator *op, PaintStroke *stroke) |
| static bool | curves_sculpt_brush_uses_spacing (const eBrushCurvesSculptType tool) |
| static bool | sculpt_is_grab_tool (const Brush &br) |
| static void | paint_stroke_add_sample (PaintStroke *stroke, int input_samples, float x, float y, float pressure) |
| static void | paint_stroke_sample_average (const PaintStroke *stroke, PaintSample *average) |
| static void | paint_line_strokes_spacing (bContext *C, wmOperator *op, PaintStroke *stroke, float spacing, float *length_residue, const float old_pos[2], const float new_pos[2]) |
| static void | paint_stroke_line_end (bContext *C, wmOperator *op, PaintStroke *stroke, const float mouse[2]) |
| static bool | paint_stroke_curve_end (bContext *C, wmOperator *op, PaintStroke *stroke) |
| static void | paint_stroke_line_constrain (PaintStroke *stroke, float mouse[2]) |
| static const bToolRef * | brush_tool_get (const bContext *C) |
| template<typename T > | |
| static void | fill_bm_face_or_corner_attribute (BMesh &bm, const T &value, const AttrDomain domain, const int cd_offset, const bool use_vert_sel) |
| template<typename T > | |
| static void | fill_mesh_face_or_corner_attribute (Mesh &mesh, const T &value, const AttrDomain domain, const MutableSpan< T > data, const bool use_vert_sel, const bool use_face_sel, const bool affect_alpha) |
| static void | fill_mesh_color (Mesh &mesh, const ColorPaint4f &color, const StringRef attribute_name, const bool use_vert_sel, const bool use_face_sel, const bool affect_alpha) |
| static bool | fill_active_color (Object &ob, ColorPaint4f fill_color, bool only_selected=true, bool affect_alpha=true) |
| float | sculpt_calc_radius (const ViewContext &vc, const Brush &brush, const Scene &scene, const float3 location) |
| Span< float3 > | vert_positions_for_grab_active_get (const Depsgraph &depsgraph, const Object &object) |
| Span< BMVert * > | vert_neighbors_get_bmesh (BMVert &vert, Vector< BMVert *, 64 > &r_neighbors) |
| Span< BMVert * > | vert_neighbors_get_interior_bmesh (BMVert &vert, Vector< BMVert *, 64 > &r_neighbors) |
| Span< int > | vert_neighbors_get_mesh (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face, const Span< bool > hide_poly, const int vert, Vector< int > &r_neighbors) |
| std::optional< int > | nearest_vert_calc_mesh (const bke::pbvh::Tree &pbvh, const Span< float3 > vert_positions, const Span< bool > hide_vert, const float3 &location, const float max_distance, const bool use_original) |
| std::optional< SubdivCCGCoord > | nearest_vert_calc_grids (const bke::pbvh::Tree &pbvh, const SubdivCCG &subdiv_ccg, const float3 &location, const float max_distance, const bool use_original) |
| std::optional< BMVert * > | nearest_vert_calc_bmesh (const bke::pbvh::Tree &pbvh, const float3 &location, const float max_distance, const bool use_original) |
| static void | rake_data_update (SculptRakeData *srd, const float co[3]) |
| static float | area_normal_and_center_get_normal_radius (const SculptSession &ss, const Brush &brush) |
| static float | area_normal_and_center_get_position_radius (const SculptSession &ss, const Brush &brush) |
| static float | area_normal_calc_weight (const float distance, const float radius_inv) |
| static float3 | area_center_calc_weighted (const float3 &test_location, const float distance, const float radius_inv, const float3 &co) |
| static void | accumulate_area_center (const float3 &test_location, const float3 &position, const float distance, const float radius_inv, const int flip_index, AreaNormalCenterData &anctd) |
| static void | accumulate_area_normal (const float3 &normal, const float distance, const float radius_inv, const int flip_index, AreaNormalCenterData &anctd) |
| static void | calc_area_normal_and_center_node_mesh (const Object &object, const Span< float3 > vert_positions, const Span< float3 > vert_normals, const Span< bool > hide_vert, const Brush &brush, const bool use_area_nos, const bool use_area_cos, const bke::pbvh::MeshNode &node, SampleLocalData &tls, AreaNormalCenterData &anctd) |
| static void | calc_area_normal_and_center_node_grids (const Object &object, const Brush &brush, const bool use_area_nos, const bool use_area_cos, const bke::pbvh::GridsNode &node, SampleLocalData &tls, AreaNormalCenterData &anctd) |
| static void | calc_area_normal_and_center_node_bmesh (const Object &object, const Brush &brush, const bool use_area_nos, const bool use_area_cos, const bool has_bm_orco, const bke::pbvh::BMeshNode &node, SampleLocalData &tls, AreaNormalCenterData &anctd) |
| static AreaNormalCenterData | calc_area_normal_and_center_reduce (const AreaNormalCenterData &a, const AreaNormalCenterData &b) |
| void | calc_area_center (const Depsgraph &depsgraph, const Brush &brush, const Object &ob, const IndexMask &node_mask, float r_area_co[3]) |
| std::optional< float3 > | calc_area_normal (const Depsgraph &depsgraph, const Brush &brush, const Object &ob, const IndexMask &node_mask) |
| void | calc_area_normal_and_center (const Depsgraph &depsgraph, const Brush &brush, const Object &ob, const IndexMask &node_mask, float r_area_no[3], float r_area_co[3]) |
| bool | node_fully_masked_or_hidden (const bke::pbvh::Node &node) |
| bool | node_in_sphere (const bke::pbvh::Node &node, const float3 &location, const float radius_sq, const bool original) |
| bool | node_in_cylinder (const DistRayAABB_Precalc &ray_dist_precalc, const bke::pbvh::Node &node, const float radius_sq, const bool original) |
| static IndexMask | pbvh_gather_cursor_update (Object &ob, bool use_original, IndexMaskMemory &memory) |
| static IndexMask | pbvh_gather_generic (Object &ob, const Brush &brush, bool use_original, float radius_scale, IndexMaskMemory &memory) |
| static IndexMask | pbvh_gather_texpaint (Object &ob, const Brush &brush, const bool use_original, const float radius_scale, IndexMaskMemory &memory) |
| static float3 | calc_sculpt_normal (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| static void | update_sculpt_normal (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| static void | calc_local_from_screen (const ViewContext &vc, const float center[3], const float screen_dir[2], float r_local_dir[3]) |
| static void | calc_brush_local_mat (const float rotation, const Object &ob, float local_mat[4][4], float local_mat_inv[4][4]) |
| void | calc_brush_plane (const Depsgraph &depsgraph, const Brush &brush, Object &ob, const IndexMask &node_mask, float3 &r_area_no, float3 &r_area_co) |
| static void | dynamic_topology_update (const Depsgraph &depsgraph, const Scene &, const Sculpt &sd, Object &ob, const Brush &brush, UnifiedPaintSettings &, PaintModeSettings &) |
| static void | push_undo_nodes (const Depsgraph &depsgraph, Object &ob, const Brush &brush, const IndexMask &node_mask) |
| static void | do_brush_action (const Depsgraph &depsgraph, const Scene &scene, const Sculpt &sd, Object &ob, const Brush &brush, UnifiedPaintSettings &ups, PaintModeSettings &paint_mode_settings) |
| static void | do_tiled (const Depsgraph &depsgraph, const Scene &scene, const Sculpt &sd, Object &ob, const Brush &brush, UnifiedPaintSettings &ups, PaintModeSettings &paint_mode_settings, const BrushActionFunc action) |
| static void | do_radial_symmetry (const Depsgraph &depsgraph, const Scene &scene, const Sculpt &sd, Object &ob, const Brush &brush, UnifiedPaintSettings &ups, PaintModeSettings &paint_mode_settings, const BrushActionFunc action, const ePaintSymmetryFlags symm, const int axis, const float) |
| static void | sculpt_fix_noise_tear (const Sculpt &sd, Object &ob) |
| static void | do_symmetrical_brush_actions (const Depsgraph &depsgraph, const Scene &scene, const Sculpt &sd, Object &ob, const BrushActionFunc action, UnifiedPaintSettings &ups, PaintModeSettings &paint_mode_settings) |
| static void | sculpt_init_mirror_clipping (const Object &ob, const SculptSession &ss) |
| static void | smooth_brush_toggle_on (const bContext *C, Paint *paint, StrokeCache *cache) |
| static void | smooth_brush_toggle_off (const bContext *C, Paint *paint, StrokeCache *cache) |
| static void | sculpt_update_cache_invariants (bContext *C, Sculpt &sd, SculptSession &ss, wmOperator *op, const float mval[2]) |
| static float | brush_dynamic_size_get (const Brush &brush, const StrokeCache &cache, float initial_size) |
| static bool | need_delta_from_anchored_origin (const Brush &brush) |
| static bool | need_delta_for_tip_orientation (const Brush &brush) |
| static void | brush_delta_update (const Depsgraph &depsgraph, UnifiedPaintSettings &ups, const Object &ob, const Brush &brush) |
| static void | cache_paint_invariants_update (StrokeCache &cache, const Brush &brush) |
| static void | sculpt_update_cache_variants (bContext *C, Sculpt &sd, Object &ob, PointerRNA *ptr) |
| static bool | sculpt_needs_connectivity_info (const Sculpt &sd, const Brush &brush, const Object &object, int stroke_mode) |
| void | flush_update_step (bContext *C, UpdateType update_type) |
| void | flush_update_done (const bContext *C, Object &ob, UpdateType update_type) |
| static bool | stroke_test_start (bContext *C, wmOperator *op, const float mval[2]) |
| static void | stroke_update_step (bContext *C, wmOperator *, PaintStroke *stroke, PointerRNA *itemptr) |
| static void | brush_exit_tex (Sculpt &sd) |
| static void | stroke_done (const bContext *C, PaintStroke *) |
| static int | sculpt_brush_stroke_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | sculpt_brush_stroke_exec (bContext *C, wmOperator *op) |
| static void | sculpt_brush_stroke_cancel (bContext *C, wmOperator *op) |
| static int | brush_stroke_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | redo_empty_ui (bContext *, wmOperator *) |
| void | SCULPT_OT_brush_stroke (wmOperatorType *ot) |
| static void | fake_neighbor_init (Object &object, const float max_dist) |
| static void | pose_fake_neighbors_free (SculptSession &ss) |
| static void | fake_neighbor_search_mesh (const SculptSession &ss, const Span< float3 > vert_positions, const Span< bool > hide_vert, const float3 &location, const float max_distance_sq, const int island_id, const bke::pbvh::MeshNode &node, NearestVertData &nvtd) |
| static void | fake_neighbor_search_grids (const SculptSession &ss, const CCGKey &key, const Span< float3 > positions, const BitGroupVector<> &grid_hidden, const float3 &location, const float max_distance_sq, const int island_id, const bke::pbvh::GridsNode &node, NearestVertData &nvtd) |
| static void | fake_neighbor_search_bmesh (const SculptSession &ss, const float3 &location, const float max_distance_sq, const int island_id, const bke::pbvh::BMeshNode &node, NearestVertData &nvtd) |
| static void | fake_neighbor_search (const Depsgraph &depsgraph, const Object &ob, const float max_distance_sq, MutableSpan< int > fake_neighbors) |
| template void | gather_data_mesh< bool > (Span< bool >, Span< int >, MutableSpan< bool >) |
| template void | gather_data_mesh< int > (Span< int >, Span< int >, MutableSpan< int >) |
| template void | gather_data_mesh< float > (Span< float >, Span< int >, MutableSpan< float >) |
| template void | gather_data_mesh< float3 > (Span< float3 >, Span< int >, MutableSpan< float3 >) |
| template void | gather_data_mesh< float4 > (Span< float4 >, Span< int >, MutableSpan< float4 >) |
| template void | gather_data_grids< int > (const SubdivCCG &, Span< int >, Span< int >, MutableSpan< int >) |
| template void | gather_data_grids< float > (const SubdivCCG &, Span< float >, Span< int >, MutableSpan< float >) |
| template void | gather_data_grids< float3 > (const SubdivCCG &, Span< float3 >, Span< int >, MutableSpan< float3 >) |
| template void | gather_data_bmesh< int > (Span< int >, const Set< BMVert *, 0 > &, MutableSpan< int >) |
| template void | gather_data_bmesh< float > (Span< float >, const Set< BMVert *, 0 > &, MutableSpan< float >) |
| template void | gather_data_bmesh< float3 > (Span< float3 >, const Set< BMVert *, 0 > &, MutableSpan< float3 >) |
| template void | scatter_data_mesh< bool > (Span< bool >, Span< int >, MutableSpan< bool >) |
| template void | scatter_data_mesh< int > (Span< int >, Span< int >, MutableSpan< int >) |
| template void | scatter_data_mesh< float > (Span< float >, Span< int >, MutableSpan< float >) |
| template void | scatter_data_mesh< float3 > (Span< float3 >, Span< int >, MutableSpan< float3 >) |
| template void | scatter_data_mesh< float4 > (Span< float4 >, Span< int >, MutableSpan< float4 >) |
| template void | scatter_data_grids< float > (const SubdivCCG &, Span< float >, Span< int >, MutableSpan< float >) |
| template void | scatter_data_grids< float3 > (const SubdivCCG &, Span< float3 >, Span< int >, MutableSpan< float3 >) |
| template void | scatter_data_bmesh< float > (Span< float >, const Set< BMVert *, 0 > &, MutableSpan< float >) |
| template void | scatter_data_bmesh< float3 > (Span< float3 >, const Set< BMVert *, 0 > &, MutableSpan< float3 >) |
| static void | copy_indices (const Span< float3 > src, const Span< int > indices, MutableSpan< float3 > dst) |
| void | calc_vert_neighbors (Set< BMVert *, 0 > verts, const MutableSpan< Vector< BMVert * > > result) |
| Vector< int > | find_symm_verts_mesh (const Depsgraph &depsgraph, const Object &object, const int original_vert, const float max_distance) |
| Vector< int > | find_symm_verts_grids (const Object &object, const int original_vert, const float max_distance) |
| Vector< int > | find_symm_verts_bmesh (const Object &object, const int original_vert, const float max_distance) |
| Vector< int > | find_symm_verts (const Depsgraph &depsgraph, const Object &object, const int original_vert, const float max_distance) |
| std::optional< OrigPositionData > | orig_position_data_lookup_mesh_all_verts (const Object &object, const bke::pbvh::MeshNode &node) |
| std::optional< OrigPositionData > | orig_position_data_lookup_mesh (const Object &object, const bke::pbvh::MeshNode &node) |
| OrigPositionData | orig_position_data_get_mesh (const Object &object, const bke::pbvh::MeshNode &node) |
| std::optional< OrigPositionData > | orig_position_data_lookup_grids (const Object &object, const bke::pbvh::GridsNode &node) |
| OrigPositionData | orig_position_data_get_grids (const Object &object, const bke::pbvh::GridsNode &node) |
| void | orig_position_data_gather_bmesh (const BMLog &bm_log, const Set< BMVert *, 0 > &verts, MutableSpan< float3 > positions, MutableSpan< float3 > normals) |
| std::optional< Span< float4 > > | orig_color_data_lookup_mesh (const Object &object, const bke::pbvh::MeshNode &node) |
| Span< float4 > | orig_color_data_get_mesh (const Object &object, const bke::pbvh::MeshNode &node) |
| std::optional< Span< int > > | orig_face_set_data_lookup_mesh (const Object &object, const bke::pbvh::MeshNode &node) |
| std::optional< Span< int > > | orig_face_set_data_lookup_grids (const Object &object, const bke::pbvh::GridsNode &node) |
| std::optional< Span< float > > | orig_mask_data_lookup_mesh (const Object &object, const bke::pbvh::MeshNode &node) |
| std::optional< Span< float > > | orig_mask_data_lookup_grids (const Object &object, const bke::pbvh::GridsNode &node) |
| void | SCULPT_OT_set_pivot_position (wmOperatorType *ot) |
| static std::array< float4x4, 8 > | transform_matrices_init (const SculptSession &ss, const ePaintSymmetryFlags symm, const TransformDisplacementMode t_mode) |
| static BLI_NOINLINE void | calc_symm_area_transform_translations (const Span< float3 > positions, const std::array< float4x4, 8 > &transform_mats, const MutableSpan< float3 > translations) |
| static BLI_NOINLINE void | filter_translations_with_symmetry (const Span< float3 > positions, const ePaintSymmetryFlags symm, const MutableSpan< float3 > translations) |
| static void | transform_node_mesh (const Sculpt &sd, const std::array< float4x4, 8 > &transform_mats, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, Object &object, TransformLocalData &tls, const PositionDeformData &position_data) |
| static void | transform_node_grids (const Sculpt &sd, const std::array< float4x4, 8 > &transform_mats, const bke::pbvh::GridsNode &node, Object &object, TransformLocalData &tls) |
| static void | transform_node_bmesh (const Sculpt &sd, const std::array< float4x4, 8 > &transform_mats, bke::pbvh::BMeshNode &node, Object &object, TransformLocalData &tls) |
| static void | sculpt_transform_all_vertices (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob) |
| static BLI_NOINLINE void | calc_transform_translations (const float4x4 &elastic_transform_mat, const Span< float3 > positions, const MutableSpan< float3 > r_translations) |
| static BLI_NOINLINE void | apply_kelvinet_to_translations (const KelvinletParams ¶ms, const float3 &elastic_transform_pivot, const Span< float3 > positions, const MutableSpan< float3 > translations) |
| static void | elastic_transform_node_mesh (const Sculpt &sd, const KelvinletParams ¶ms, const float4x4 &elastic_transform_mat, const float3 &elastic_transform_pivot, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, Object &object, TransformLocalData &tls, const PositionDeformData &position_data) |
| static void | elastic_transform_node_grids (const Sculpt &sd, const KelvinletParams ¶ms, const float4x4 &elastic_transform_mat, const float3 &elastic_transform_pivot, const bke::pbvh::GridsNode &node, Object &object, TransformLocalData &tls) |
| static void | elastic_transform_node_bmesh (const Sculpt &sd, const KelvinletParams ¶ms, const float4x4 &elastic_transform_mat, const float3 &elastic_transform_pivot, bke::pbvh::BMeshNode &node, Object &object, TransformLocalData &tls) |
| static void | transform_radius_elastic (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const float transform_radius) |
| static bool | set_pivot_depends_on_cursor (bContext &, wmOperatorType &, PointerRNA *ptr) |
| static AveragePositionAccumulation | combine_average_position_accumulation (const AveragePositionAccumulation &a, const AveragePositionAccumulation &b) |
| static BLI_NOINLINE void | accumulate_weighted_average_position (const Span< float3 > positions, const Span< float > factors, AveragePositionAccumulation &total) |
| static float3 | average_unmasked_position (const Depsgraph &depsgraph, const Object &object, const float3 &pivot, const ePaintSymmetryFlags symm) |
| static BLI_NOINLINE void | mask_border_weight_calc (const Span< float > masks, const MutableSpan< float > factors) |
| static float3 | average_mask_border_position (const Depsgraph &depsgraph, const Object &object, const float3 &pivot, const ePaintSymmetryFlags symm) |
| static int | set_pivot_position_exec (bContext *C, wmOperator *op) |
| static int | set_pivot_position_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static bool | set_pivot_position_poll_property (const bContext *, wmOperator *op, const PropertyRNA *prop) |
Sculpt Mode Toggle Operator | |
| void | object_sculpt_mode_enter (Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob, bool force_dyntopo, ReportList *reports) |
| void | object_sculpt_mode_enter (bContext *C, Depsgraph &depsgraph, ReportList *reports) |
| void | object_sculpt_mode_exit (Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob) |
| void | object_sculpt_mode_exit (bContext *C, Depsgraph &depsgraph) |
| void | ensure_valid_pivot (const Object &ob, Scene &scene) |
| static void | init_sculpt_mode_session (Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob) |
| static int | sculpt_mode_toggle_exec (bContext *C, wmOperator *op) |
| static void | SCULPT_OT_sculptmode_toggle (wmOperatorType *ot) |
Brush Stroke Operator | |
| float | brush_radius_factor (const Brush &brush, const StrokeExtension &stroke_extension) |
| float | brush_radius_get (const Scene &scene, const Brush &brush, const StrokeExtension &stroke_extension) |
| float | brush_strength_factor (const Brush &brush, const StrokeExtension &stroke_extension) |
| float | brush_strength_get (const Scene &scene, const Brush &brush, const StrokeExtension &stroke_extension) |
| static std::unique_ptr< CurvesSculptStrokeOperation > | start_brush_operation (bContext &C, wmOperator &op, const StrokeExtension &stroke_start) |
| static bool | stroke_get_location (bContext *C, float out[3], const float mouse[2], bool) |
| static bool | stroke_test_start (bContext *C, wmOperator *op, const float mouse[2]) |
| static void | stroke_update_step (bContext *C, wmOperator *op, PaintStroke *, PointerRNA *stroke_element) |
| static void | stroke_done (const bContext *C, PaintStroke *stroke) |
| static int | sculpt_curves_stroke_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | sculpt_curves_stroke_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | sculpt_curves_stroke_cancel (bContext *C, wmOperator *op) |
| static void | SCULPT_CURVES_OT_brush_stroke (wmOperatorType *ot) |
| static bool | grease_pencil_brush_stroke_poll (bContext *C) |
| static int | grease_pencil_brush_stroke_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | grease_pencil_brush_stroke_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | grease_pencil_brush_stroke_cancel (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_brush_stroke (wmOperatorType *ot) |
Poll Functions | |
| bool | curves_sculpt_poll (bContext *C) |
| bool | curves_sculpt_poll_view3d (bContext *C) |
Toggle Sculpt Mode | |
| static void | curves_sculptmode_enter (bContext *C) |
| static void | curves_sculptmode_exit (bContext *C) |
| static int | curves_sculptmode_toggle_exec (bContext *C, wmOperator *op) |
| static void | CURVES_OT_sculptmode_toggle (wmOperatorType *ot) |
Common Paint Operator Functions | |
| static bool | stroke_get_location (bContext *, float out[3], const float mouse[2], bool) |
| static std::unique_ptr< GreasePencilStrokeOperation > | get_stroke_operation (bContext &C, wmOperator *op) |
| static bool | stroke_test_start (bContext *C, wmOperator *op, const float mouse[2]) |
| static void | stroke_update_step (bContext *C, wmOperator *op, PaintStroke *stroke, PointerRNA *stroke_element) |
| static void | stroke_redraw (const bContext *C, PaintStroke *, bool) |
| static void | stroke_done (const bContext *C, PaintStroke *stroke) |
Sculpt Operator | |
| static bool | grease_pencil_sculpt_paint_poll (bContext *C) |
| static int | grease_pencil_sculpt_paint_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | grease_pencil_sculpt_paint_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | grease_pencil_sculpt_paint_cancel (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_sculpt_paint (wmOperatorType *ot) |
Weight Brush Stroke Operator | |
| static bool | grease_pencil_weight_brush_stroke_poll (bContext *C) |
| static int | grease_pencil_weight_brush_stroke_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | grease_pencil_weight_brush_stroke_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | grease_pencil_weight_brush_stroke_cancel (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_weight_brush_stroke (wmOperatorType *ot) |
Vertex Brush Stroke Operator | |
| static bool | grease_pencil_vertex_brush_stroke_poll (bContext *C) |
| static int | grease_pencil_vertex_brush_stroke_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | grease_pencil_vertex_brush_stroke_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | grease_pencil_vertex_brush_stroke_cancel (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_vertex_brush_stroke (wmOperatorType *ot) |
Brush Capabilities | |
Avoid duplicate checks, internal logic only, share logic with rna_def_sculpt_capabilities where possible. | |
| static bool | brush_type_needs_original (const char sculpt_brush_type) |
| static bool | brush_uses_topology_rake (const SculptSession &ss, const Brush &brush) |
| static int | sculpt_brush_needs_normal (const SculptSession &ss, const Sculpt &sd, const Brush &brush) |
| static bool | brush_needs_rake_rotation (const Brush &brush) |
Set Persistent Base Operator | |
| static int | set_persistent_base_exec (bContext *C, wmOperator *) |
| static void | SCULPT_OT_set_persistent_base (wmOperatorType *ot) |
Optimize Operator | |
| static int | optimize_exec (bContext *C, wmOperator *) |
| static void | SCULPT_OT_optimize (wmOperatorType *ot) |
Symmetrize Operator | |
| static bool | no_multires_poll (bContext *C) |
| static int | symmetrize_exec (bContext *C, wmOperator *op) |
| static void | SCULPT_OT_symmetrize (wmOperatorType *ot) |
Sample Color Operator | |
| static int | sample_color_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| static void | SCULPT_OT_sample_color (wmOperatorType *ot) |
Variables | |
| constexpr float | FACE_SET_BRUSH_MIN_FADE = 0.05f |
| constexpr int | AntiAliasingSamplesPerTexelAxisMin = 3 |
| constexpr int | AntiAliasingSamplesPerTexelAxisMax = 16 |
| constexpr int | CurveSamplesBaseLen = 1024 |
| Number of samples to use between 0..1. | |
| constexpr int | CurveSamplesLen = M_SQRT2 * CurveSamplesBaseLen + 1 |
| Number of samples to store in the cache. | |
| static constexpr float | transform_mirror_max_distance_eps = 0.00002f |
| static EnumPropertyItem | prop_sculpt_pivot_position_types [] |
The code below uses a suffix naming convention to indicate the coordinate space: cu: Local space of the curves object that is being edited. su: Local space of the surface object. wo: World space. re: 2D coordinates within the region.
The code below uses a prefix naming convention to indicate the coordinate space: cu: Local space of the curves object that is being edited. su: Local space of the surface object. wo: World space. re: 2D coordinates within the region.
The code below uses a prefix naming convention to indicate the coordinate space: cu: Local space of the curves object that is being edited. su: Local space of the surface object. wo: World space. re: 2D coordinates within the region.
The code below uses a suffix naming convention to indicate the coordinate space: cu: Local space of the curves object that is being edited. wo: World space. re: 2D coordinates within the region.
The code below uses a suffix naming convention to indicate the coordinate space:
cu: Local space of the curves object that is being edited.su: Local space of the surface object.wo: World space.re: 2D coordinates within the region.The code below uses a prefix naming convention to indicate the coordinate space:
cu: Local space of the curves object that is being edited.su: Local space of the surface object.wo: World space.re: 2D coordinates within the region. Projects a screen-space displacement vector into layer space. Current position (in layer space) is used to compute the perspective distance (zfac). Returns the new layer space position with the projected delta applied.
Definition at line 39 of file grease_pencil_intern.hh.
| using blender::ed::sculpt_paint::StrokeDone = void (*)(const bContext *C, PaintStroke *stroke) |
Definition at line 80 of file paint_intern.hh.
Definition at line 70 of file paint_intern.hh.
| using blender::ed::sculpt_paint::StrokeRedraw = void (*)(const bContext *C, PaintStroke *stroke, bool final) |
Definition at line 79 of file paint_intern.hh.
| using blender::ed::sculpt_paint::StrokeTestStart = bool (*)(bContext *C, wmOperator *op, const float mouse[2]) |
Definition at line 74 of file paint_intern.hh.
Definition at line 75 of file paint_intern.hh.
|
strong |
| Enumerator | |
|---|---|
| Cancel | |
| Confirm | |
| ExtensionModeToggle | |
| ExtensionLengthen | |
| ExtensionShorten | |
| ExtensionDrag | |
| ExtensionCollide | |
| Invert | |
| Precision | |
Definition at line 1564 of file grease_pencil_draw_ops.cc.
| Enumerator | |
|---|---|
| PAINT_CURSOR_CURVE | |
| PAINT_CURSOR_2D | |
| PAINT_CURSOR_3D | |
Definition at line 1231 of file paint_cursor.cc.
|
strong |
| Enumerator | |
|---|---|
| Origin | |
| Unmasked | |
| MaskBorder | |
| ActiveVert | |
| CursorSurface | |
Definition at line 587 of file sculpt_transform.cc.
|
strong |
| Enumerator | |
|---|---|
| Original | |
| Incremental | |
Definition at line 140 of file sculpt_intern.hh.
|
strong |
| Enumerator | |
|---|---|
| Position | |
| Mask | |
| Visibility | |
| Color | |
| Image | |
| FaceSet | |
Definition at line 112 of file sculpt_intern.hh.
|
static |
Definition at line 35 of file paint_image_2d_curve_mask.cc.
References AntiAliasingSamplesPerTexelAxisMax, AntiAliasingSamplesPerTexelAxisMin, BRUSH_PAINT_ANTIALIASING, clamp_i(), and Brush::sampling_flag.
Referenced by update_curve_mask().
|
static |
Definition at line 1364 of file sculpt.cc.
References area_center_calc_weighted(), blender::ed::sculpt_paint::AreaNormalCenterData::area_cos, and blender::ed::sculpt_paint::AreaNormalCenterData::count_co.
Referenced by calc_area_normal_and_center_node_bmesh(), calc_area_normal_and_center_node_grids(), and calc_area_normal_and_center_node_mesh().
|
static |
Definition at line 1376 of file sculpt.cc.
References area_normal_calc_weight(), blender::ed::sculpt_paint::AreaNormalCenterData::area_nos, and blender::ed::sculpt_paint::AreaNormalCenterData::count_no.
Referenced by calc_area_normal_and_center_node_bmesh(), calc_area_normal_and_center_node_grids(), and calc_area_normal_and_center_node_mesh().
|
static |
Definition at line 112 of file multiplane_scrape.cc.
References sample.
Referenced by sample_node_surface_bmesh(), sample_node_surface_grids(), and sample_node_surface_mesh().
|
static |
Definition at line 644 of file sculpt_transform.cc.
References BLI_assert, and blender::Span< T >::size().
| void blender::ed::sculpt_paint::apply_crazyspace_to_translations | ( | Span< float3x3 > | deform_imats, |
| Span< int > | verts, | ||
| MutableSpan< float3 > | translations ) |
Rotate translations to account for rotations from procedural deformation.
deform_imats on object evaluation. Instead just invert them on-demand in brush implementations. This would be better because only the inversions required for affected vertices would be necessary. Definition at line 7011 of file sculpt.cc.
References apply_crazyspace_to_translations(), BLI_assert, blender::MutableSpan< T >::size(), blender::math::transform_point(), and verts.
Referenced by apply_crazyspace_to_translations(), blender::ed::sculpt_paint::PositionDeformData::deform(), and blender::ed::sculpt_paint::undo::restore_position_from_undo_step().
|
inline |
Definition at line 336 of file mesh_brush_common.hh.
References apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::hardness, and blender::ed::sculpt_paint::StrokeCache::radius.
| void blender::ed::sculpt_paint::apply_hardness_to_distances | ( | float | radius, |
| float | hardness, | ||
| MutableSpan< float > | distances ) |
Scale the distances based on the brush radius and the cached "hardness" setting, which increases the strength of the effect for vertices towards the outside of the radius.
Definition at line 6862 of file sculpt.cc.
References apply_hardness_to_distances(), blender::MutableSpan< T >::index_range(), and blender::math::rcp().
Referenced by apply_hardness_to_distances(), apply_hardness_to_distances(), calc_bmesh(), calc_faces(), calc_factors_common_bmesh(), calc_factors_common_from_orig_data_bmesh(), calc_factors_common_from_orig_data_grids(), calc_factors_common_from_orig_data_mesh(), calc_factors_common_grids(), calc_factors_common_mesh(), calc_factors_common_mesh_indexed(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), calc_grids(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::paint::image::do_paint_pixels(), blender::ed::sculpt_paint::color::do_smear_brush_task(), sample_node_surface_bmesh(), sample_node_surface_grids(), and sample_node_surface_mesh().
|
static |
Definition at line 349 of file sculpt_transform.cc.
References BKE_kelvinlet_grab_triscale(), and params.
Referenced by elastic_transform_node_bmesh(), elastic_transform_node_grids(), and elastic_transform_node_mesh().
| void blender::ed::sculpt_paint::apply_translations | ( | Span< float3 > | translations, |
| const Set< BMVert *, 0 > & | verts ) |
Definition at line 6987 of file sculpt.cc.
References add_v3_v3(), apply_translations(), BLI_assert, blender::Span< T >::size(), and verts.
| void blender::ed::sculpt_paint::apply_translations | ( | Span< float3 > | translations, |
| Span< int > | grids, | ||
| SubdivCCG & | subdiv_ccg ) |
Definition at line 6970 of file sculpt.cc.
References apply_translations(), BKE_subdiv_ccg_key_top_level(), BLI_assert, CCGKey::grid_area, blender::MutableSpan< T >::index_range(), blender::Span< T >::index_range(), SubdivCCG::positions, blender::Span< T >::size(), blender::MutableSpan< T >::slice(), and blender::Span< T >::slice().
| void blender::ed::sculpt_paint::apply_translations | ( | Span< float3 > | translations, |
| Span< int > | verts, | ||
| MutableSpan< float3 > | positions ) |
Many brushes end up calculating translations from the original positions. Instead of applying these directly to the modified values, it's helpful to process them separately to easily calculate various effects like clipping. After they are processed, this function can be used to simply add them to the final vertex positions.
Definition at line 6958 of file sculpt.cc.
References apply_translations(), BLI_assert, blender::Span< T >::size(), and verts.
Referenced by blender::ed::sculpt_paint::project::apply_projection_bmesh(), blender::ed::sculpt_paint::project::apply_projection_grids(), apply_translations(), apply_translations(), apply_translations(), blender::ed::sculpt_paint::boundary::calc_bend_bmesh(), blender::ed::sculpt_paint::boundary::calc_bend_grids(), calc_bmesh(), blender::ed::sculpt_paint::pose::calc_bmesh(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), blender::ed::sculpt_paint::filter::calc_erase_displacement_filter(), blender::ed::sculpt_paint::boundary::calc_grab_bmesh(), blender::ed::sculpt_paint::boundary::calc_grab_grids(), calc_grids(), blender::ed::sculpt_paint::pose::calc_grids(), blender::ed::sculpt_paint::boundary::calc_inflate_bmesh(), blender::ed::sculpt_paint::filter::calc_inflate_filter(), blender::ed::sculpt_paint::boundary::calc_inflate_grids(), blender::ed::sculpt_paint::filter::calc_random_filter(), blender::ed::sculpt_paint::filter::calc_relax_face_sets_filter(), blender::ed::sculpt_paint::filter::calc_relax_filter(), blender::ed::sculpt_paint::filter::calc_scale_filter(), blender::ed::sculpt_paint::filter::calc_sharpen_filter(), blender::ed::sculpt_paint::boundary::calc_slide_bmesh(), blender::ed::sculpt_paint::boundary::calc_slide_grids(), blender::ed::sculpt_paint::boundary::calc_smooth_bmesh(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_smooth_grids(), blender::ed::sculpt_paint::filter::calc_sphere_filter(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_bmesh(), blender::ed::sculpt_paint::boundary::calc_twist_grids(), blender::ed::sculpt_paint::PositionDeformData::deform(), elastic_transform_node_bmesh(), elastic_transform_node_grids(), blender::ed::sculpt_paint::undo::restore_position_from_undo_step(), transform_node_bmesh(), transform_node_grids(), and update_shape_keys().
|
static |
Definition at line 1351 of file sculpt.cc.
Referenced by accumulate_area_center().
|
static |
Definition at line 1312 of file sculpt.cc.
References SculptSession::cache, SculptSession::cursor_radius, Brush::normal_radius_factor, Brush::ob_mode, OB_MODE_SCULPT, and blender::ed::sculpt_paint::StrokeCache::radius.
Referenced by calc_area_normal_and_center_node_bmesh(), calc_area_normal_and_center_node_grids(), and calc_area_normal_and_center_node_mesh().
|
static |
Definition at line 1321 of file sculpt.cc.
References Brush::area_radius_factor, BRUSH_AREA_RADIUS_PRESSURE, SculptSession::cache, SculptSession::cursor_radius, ELEM, Brush::flag2, Brush::normal_radius_factor, Brush::ob_mode, OB_MODE_SCULPT, blender::ed::sculpt_paint::StrokeCache::pressure, blender::ed::sculpt_paint::StrokeCache::radius, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_FILL, and SCULPT_BRUSH_TYPE_SCRAPE.
Referenced by calc_area_normal_and_center_node_bmesh(), calc_area_normal_and_center_node_grids(), and calc_area_normal_and_center_node_mesh().
|
static |
Definition at line 1344 of file sculpt.cc.
Referenced by accumulate_area_normal().
|
static |
Definition at line 168 of file brush_asset_ops.cc.
References blender::asset_system::AssetLibrary::catalog_service(), blender::asset_system::AssetCatalogService::create_catalog(), and blender::asset_system::AssetCatalogService::find_catalog_by_path().
Referenced by asset_library_ensure_catalogs_in_path().
|
static |
Definition at line 184 of file brush_asset_ops.cc.
References asset_library_ensure_catalog(), blender::asset_system::AssetLibrary::catalog_service(), blender::asset_system::AssetCatalogService::find_catalog_by_path(), and blender::asset_system::AssetCatalogPath::iterate_components().
Referenced by brush_asset_edit_metadata_exec(), and brush_asset_save_as_exec().
|
static |
Definition at line 778 of file sculpt_transform.cc.
References average_mask_border_position(), combine_average_position_accumulation(), depsgraph, blender::index_mask::IndexMask::index_range(), node_fully_masked_or_hidden(), blender::bke::pbvh::Tree::nodes(), blender::math::safe_divide(), SculptSession::subdiv_ccg, sum(), and blender::bke::pbvh::Tree::type().
Referenced by average_mask_border_position(), and set_pivot_position_exec().
|
static |
Definition at line 656 of file sculpt_transform.cc.
References combine_average_position_accumulation(), depsgraph, blender::ed::sculpt_paint::LocalData::factors, blender::bke::pbvh::Grids, blender::index_mask::IndexMask::index_range(), blender::bke::pbvh::Mesh, node_fully_masked_or_hidden(), blender::bke::pbvh::Tree::nodes(), blender::threading::parallel_reduce(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::LocalData::positions, blender::math::safe_divide(), blender::bke::pbvh::search_nodes(), SculptSession::subdiv_ccg, sum(), blender::bke::pbvh::Tree::type(), and blender::bke::pbvh::vert_positions_eval().
Referenced by set_pivot_position_exec().
|
static |
Definition at line 51 of file brush_asset_ops.cc.
References blender::bke::asset_edit_id_from_weak_reference(), BKE_paint_get_active_from_context(), BKE_report(), CTX_data_main(), ID_BR, blender::asset_system::AssetRepresentation::make_weak_reference(), NA_ACTIVATED, NC_ASSET, NC_SCENE, ND_TOOLSETTINGS, blender::ed::asset::operator_asset_reference_props_get_asset_from_all_library(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RPT_WARNING, WM_main_add_notifier(), and WM_toolsystem_activate_brush_and_tool().
Referenced by BRUSH_OT_asset_activate().
|
static |
Definition at line 662 of file brush_asset_ops.cc.
References blender::bke::asset_edit_id_delete(), AssetWeakReference::asset_library_identifier, BKE_paint_brush(), BKE_paint_brush_set_default(), BKE_paint_get_active_from_context(), BKE_preferences_asset_library_find_by_name(), Paint::brush_asset_reference, CTX_data_main(), Brush::id, NA_EDITED, NA_REMOVED, NC_ASSET, NC_BRUSH, ND_ASSET_LIST, OPERATOR_FINISHED, refresh_asset_library(), wmOperator::reports, and WM_main_add_notifier().
Referenced by BRUSH_OT_asset_delete().
|
static |
Definition at line 687 of file brush_asset_ops.cc.
References ALERT_ICON_WARNING, BKE_paint_brush(), BKE_paint_get_active_from_context(), ID_IS_LINKED, IFACE_, and WM_operator_confirm_ex().
Referenced by BRUSH_OT_asset_delete().
|
static |
Definition at line 643 of file brush_asset_ops.cc.
References blender::bke::asset_edit_id_is_writable(), BKE_paint_brush(), BKE_paint_get_active_from_context(), CTX_wm_operator_poll_msg_set(), Brush::id, and ID_IS_LINKED.
Referenced by BRUSH_OT_asset_delete().
|
static |
Definition at line 422 of file brush_asset_ops.cc.
References AS_asset_full_path_explode_from_weak_ref(), AS_asset_library_load(), ID::asset_data, blender::bke::asset_edit_id_save(), asset_library_ensure_catalogs_in_path(), AssetMetaData::author, BKE_asset_metadata_catalog_id_set(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BLI_assert, BLI_assert_unreachable, Paint::brush_asset_reference, blender::asset_system::AssetCatalog::catalog_id, blender::asset_system::AssetLibrary::catalog_service(), CTX_data_main(), AssetMetaData::description, FILE_MAX_LIBEXTRA, blender::ed::asset::find_asset_from_weak_ref(), Brush::id, ID_IS_ASSET, library_to_library_ref(), MAX_NAME, MEM_SAFE_FREE, NA_EDITED, NC_ASSET, ND_ASSET_LIST, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::asset_system::AssetRepresentation::owner_asset_library(), wmOperator::ptr, refresh_asset_library(), wmOperator::reports, RNA_string_get(), RNA_string_get_alloc(), blender::asset_system::AssetCatalog::simple_name, WM_main_add_notifier(), and blender::asset_system::AssetCatalogService::write_to_disk().
Referenced by BRUSH_OT_asset_edit_metadata().
|
static |
Definition at line 474 of file brush_asset_ops.cc.
References AssetMetaData::author, BKE_paint_get_active_from_context(), Paint::brush_asset_reference, AssetMetaData::catalog_id, blender::asset_system::AssetLibrary::catalog_service(), AssetMetaData::description, blender::ed::asset::find_asset_from_weak_ref(), blender::asset_system::AssetCatalogService::find_catalog(), blender::asset_system::AssetRepresentation::get_metadata(), IFACE_, OPERATOR_CANCELLED, blender::asset_system::AssetRepresentation::owner_asset_library(), wmOperator::ptr, wmOperator::reports, RNA_string_set(), RNA_struct_property_is_set(), and WM_operator_props_dialog_popup().
Referenced by BRUSH_OT_asset_edit_metadata().
|
static |
Definition at line 526 of file brush_asset_ops.cc.
References blender::bke::asset_edit_id_is_writable(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BLI_assert_unreachable, Paint::brush_asset_reference, CTX_wm_operator_poll_msg_set(), blender::ed::asset::find_asset_from_weak_ref(), Brush::id, ID_IS_ASSET, library_is_editable(), library_to_library_ref(), and blender::asset_system::AssetRepresentation::owner_asset_library().
Referenced by BRUSH_OT_asset_edit_metadata(), and BRUSH_OT_asset_load_preview().
|
static |
Definition at line 583 of file brush_asset_ops.cc.
References blender::bke::asset_edit_id_save(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_previewimg_id_custom_set(), BKE_reportf(), BLI_assert, BLI_is_file(), Paint::brush_asset_reference, CTX_data_main(), FILE_MAX, blender::ed::asset::find_asset_from_weak_ref(), Brush::id, ID_IS_ASSET, library_to_library_ref(), NA_EDITED, NC_ASSET, ND_ASSET_LIST, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::asset_system::AssetRepresentation::owner_asset_library(), wmOperator::ptr, refresh_asset_library(), wmOperator::reports, RNA_string_get(), RPT_ERROR, and WM_main_add_notifier().
Referenced by brush_asset_load_preview_invoke(), and BRUSH_OT_asset_load_preview().
|
static |
Definition at line 616 of file brush_asset_ops.cc.
References brush_asset_load_preview_exec(), wmOperator::ptr, RNA_struct_property_is_set(), and WM_operator_filesel().
Referenced by BRUSH_OT_asset_load_preview().
|
static |
Definition at line 785 of file brush_asset_ops.cc.
References blender::bke::asset_edit_id_revert(), BKE_paint_brush(), BKE_paint_brush_set(), BKE_paint_brush_set_default(), BKE_paint_get_active_from_context(), BLI_assert, CTX_data_main(), GS, Brush::id, ID_BR, NA_EDITED, NC_BRUSH, NC_TEXTURE, ND_NODES, OPERATOR_FINISHED, wmOperator::reports, and WM_main_add_notifier().
Referenced by BRUSH_OT_asset_revert().
|
static |
Definition at line 774 of file brush_asset_ops.cc.
References blender::bke::asset_edit_id_is_editable(), BKE_paint_brush(), BKE_paint_get_active_from_context(), Paint::brush_asset_reference, and Brush::id.
Referenced by BRUSH_OT_asset_revert().
|
static |
Definition at line 217 of file brush_asset_ops.cc.
References AS_asset_library_load(), ID::asset_data, blender::bke::asset_edit_id_from_weak_reference(), blender::bke::asset_edit_id_save_as(), asset_library_ensure_catalogs_in_path(), BKE_asset_metadata_catalog_id_set(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_report(), BLI_assert, blender::asset_system::AssetCatalog::catalog_id, blender::asset_system::AssetLibrary::catalog_service(), CTX_data_main(), blender::ed::asset::generate_preview(), get_asset_library_from_prop(), Brush::has_unsaved_changes, Brush::id, ID_BR, ID_IS_ASSET, blender::ed::asset::mark_id(), MAX_NAME, NA_ADDED, NA_EDITED, ID::name, NC_ASSET, NC_BRUSH, ND_ASSET_LIST, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, refresh_asset_library(), wmOperator::reports, RNA_property_is_set(), RNA_property_string_get(), RNA_string_get(), RNA_struct_find_property(), RPT_ERROR, RPT_WARNING, show_catalog_in_asset_shelf(), blender::asset_system::AssetCatalog::simple_name, STRNCPY, user_library_to_library_ref(), WM_main_add_notifier(), WM_toolsystem_activate_brush_and_tool(), and blender::asset_system::AssetCatalogService::write_to_disk().
Referenced by BRUSH_OT_asset_save_as().
|
static |
Definition at line 297 of file brush_asset_ops.cc.
References BKE_paint_get_active_from_context(), BLI_assert_unreachable, Paint::brush_asset_reference, blender::StringRefNull::c_str(), AssetMetaData::catalog_id, blender::asset_system::AssetLibrary::catalog_service(), blender::ed::asset::find_asset_from_weak_ref(), blender::asset_system::AssetCatalogService::find_catalog(), blender::asset_system::AssetRepresentation::get_metadata(), blender::asset_system::AssetRepresentation::get_name(), IFACE_, library_is_editable(), blender::ed::asset::library_reference_to_enum_value(), library_to_library_ref(), OPERATOR_CANCELLED, blender::asset_system::AssetRepresentation::owner_asset_library(), wmOperator::ptr, wmOperator::reports, RNA_enum_set(), RNA_string_set(), RNA_struct_property_is_set(), RNA_struct_property_is_set_ex(), user_library_to_library_ref(), and WM_operator_props_dialog_popup().
Referenced by BRUSH_OT_asset_save_as().
|
static |
Definition at line 140 of file brush_asset_ops.cc.
References BKE_paint_brush(), BKE_paint_get_active_from_context(), BLI_listbase_is_empty(), Paint::brush_asset_reference, and CTX_wm_operator_poll_msg_set().
Referenced by BRUSH_OT_asset_save_as().
|
static |
Definition at line 739 of file brush_asset_ops.cc.
References blender::bke::asset_edit_id_save(), AssetWeakReference::asset_library_identifier, BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_preferences_asset_library_find_by_name(), BLI_assert, Paint::brush_asset_reference, CTX_data_main(), Brush::has_unsaved_changes, Brush::id, ID_IS_ASSET, NA_EDITED, NC_ASSET, NC_BRUSH, ND_ASSET_LIST, OPERATOR_CANCELLED, OPERATOR_FINISHED, refresh_asset_library(), wmOperator::reports, and WM_main_add_notifier().
Referenced by BRUSH_OT_asset_save().
|
static |
Definition at line 715 of file brush_asset_ops.cc.
References blender::bke::asset_edit_id_is_editable(), blender::bke::asset_edit_id_is_writable(), BKE_paint_brush(), BKE_paint_get_active_from_context(), Paint::brush_asset_reference, CTX_wm_operator_poll_msg_set(), Brush::id, and ID_IS_ASSET.
Referenced by BRUSH_OT_asset_save().
|
static |
Definition at line 4039 of file sculpt.cc.
References SculptSession::active_vert(), SculptSession::active_vert_position(), add_v3_v3(), UnifiedPaintSettings::anchored_initial_mouse, UnifiedPaintSettings::anchored_size, blender::math::AxisAngleBase< T, AngleT >::angle(), blender::math::AxisAngleBase< T, AngleT >::axis(), BRUSH_ANCHORED, BRUSH_CLOTH_DEFORM_SNAKE_HOOK, brush_delta_update(), BRUSH_GRAB_ACTIVE_VERTEX, brush_needs_rake_rotation(), brush_uses_topology_rake(), SculptSession::cache, Brush::cloth_deform_type, copy_v2_v2(), copy_v3_v3(), depsgraph, UnifiedPaintSettings::draw_anchored, ED_view3d_win_to_3d(), ELEM, eps, Brush::falloff_shape, Brush::flag, SculptRakeData::follow_co, SculptRakeData::follow_dist, blender::ed::sculpt_paint::StrokeCache::grab_delta, blender::ed::sculpt_paint::StrokeCache::initial_mouse, invert_m4_m4(), is_zero_v3(), len_squared_v3v3(), blender::ed::sculpt_paint::StrokeCache::location, blender::ed::sculpt_paint::StrokeCache::mouse_event, mul_mat3_m4_v3(), mul_v3_m4v3(), need_delta_for_tip_orientation(), need_delta_from_anchored_origin(), normalize_v3(), blender::ed::sculpt_paint::StrokeCache::old_grab_location, blender::ed::sculpt_paint::StrokeCache::orig_grab_location, PAINT_FALLOFF_SHAPE_TUBE, UnifiedPaintSettings::pixel_radius, project_plane_v3_v3v3(), blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::StrokeCache::rake_data, rake_data_update(), Brush::rake_factor, blender::ed::sculpt_paint::StrokeCache::rake_rotation, blender::ed::sculpt_paint::StrokeCache::rake_rotation_symm, ViewContext::region, Object::sculpt, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_BOUNDARY, SCULPT_BRUSH_TYPE_CLAY_STRIPS, SCULPT_BRUSH_TYPE_CLAY_THUMB, SCULPT_BRUSH_TYPE_CLOTH, SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_MULTIPLANE_SCRAPE, SCULPT_BRUSH_TYPE_NUDGE, SCULPT_BRUSH_TYPE_PAINT, SCULPT_BRUSH_TYPE_PINCH, SCULPT_BRUSH_TYPE_POSE, SCULPT_BRUSH_TYPE_SMEAR, SCULPT_BRUSH_TYPE_SNAKE_HOOK, SCULPT_BRUSH_TYPE_THUMB, SCULPT_RAKE_BRUSH_FACTOR, SCULPT_stroke_is_first_brush_step_of_symmetry_pass(), sqrtf, square_f(), sub_v3_v3(), sub_v3_v3v3(), blender::math::to_quaternion(), blender::bke::pbvh::Tree::type(), v2, ViewContext::v3d, blender::ed::sculpt_paint::StrokeCache::vc, vert_positions_for_grab_active_get(), blender::ed::sculpt_paint::StrokeCache::view_normal, and zero_v3().
Referenced by brush_delta_update(), and sculpt_update_cache_variants().
|
static |
Definition at line 3980 of file sculpt.cc.
References brush_dynamic_size_get(), clay_thumb_get_stabilized_pressure(), max_ff(), pow3f(), powf, blender::ed::sculpt_paint::StrokeCache::pressure, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_CLAY, SCULPT_BRUSH_TYPE_CLAY_STRIPS, and SCULPT_BRUSH_TYPE_CLAY_THUMB.
Referenced by brush_dynamic_size_get(), and sculpt_update_cache_variants().
|
static |
Definition at line 5284 of file sculpt.cc.
References BKE_brush_mask_texture_get(), BKE_paint_brush(), brush_exit_tex(), Tex::nodetree, ntreeTexEndExecTree(), OB_MODE_SCULPT, Sculpt::paint, bNodeTree::runtime, and MTex::tex.
Referenced by brush_exit_tex(), sculpt_brush_stroke_cancel(), and stroke_done().
|
static |
Definition at line 808 of file sculpt.cc.
References Brush::rake_factor, Brush::sculpt_brush_type, and SCULPT_BRUSH_TYPE_HAS_RAKE.
Referenced by brush_delta_update().
| void blender::ed::sculpt_paint::BRUSH_OT_asset_activate | ( | wmOperatorType * | ot | ) |
Definition at line 84 of file brush_asset_ops.cc.
References brush_asset_activate_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, blender::ed::asset::operator_asset_reference_props_register(), ot, and wmOperatorType::srna.
| void blender::ed::sculpt_paint::BRUSH_OT_asset_delete | ( | wmOperatorType * | ot | ) |
Definition at line 704 of file brush_asset_ops.cc.
References brush_asset_delete_exec(), brush_asset_delete_invoke(), brush_asset_delete_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, and wmOperatorType::poll.
| void blender::ed::sculpt_paint::BRUSH_OT_asset_edit_metadata | ( | wmOperatorType * | ot | ) |
Definition at line 565 of file brush_asset_ops.cc.
References brush_asset_edit_metadata_exec(), brush_asset_edit_metadata_invoke(), brush_asset_edit_metadata_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, MAX_NAME, wmOperatorType::name, ot, wmOperatorType::poll, PROP_STRING_SEARCH_SUGGESTION, RNA_def_property_string_search_func_runtime(), RNA_def_string(), wmOperatorType::srna, and visit_active_library_catalogs_catalog_for_search_fn().
| void blender::ed::sculpt_paint::BRUSH_OT_asset_load_preview | ( | wmOperatorType * | ot | ) |
Definition at line 624 of file brush_asset_ops.cc.
References brush_asset_edit_metadata_poll(), brush_asset_load_preview_exec(), brush_asset_load_preview_invoke(), wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
| void blender::ed::sculpt_paint::BRUSH_OT_asset_revert | ( | wmOperatorType * | ot | ) |
Definition at line 807 of file brush_asset_ops.cc.
References brush_asset_revert_exec(), brush_asset_revert_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
| void blender::ed::sculpt_paint::BRUSH_OT_asset_save | ( | wmOperatorType * | ot | ) |
Definition at line 764 of file brush_asset_ops.cc.
References brush_asset_save_exec(), brush_asset_save_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
| void blender::ed::sculpt_paint::BRUSH_OT_asset_save_as | ( | wmOperatorType * | ot | ) |
Definition at line 397 of file brush_asset_ops.cc.
References brush_asset_save_as_exec(), brush_asset_save_as_invoke(), brush_asset_save_as_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, MAX_NAME, wmOperatorType::name, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_ENUM, PROP_NONE, PROP_STRING_SEARCH_SUGGESTION, rna_asset_library_reference_itemf(), RNA_def_enum_funcs(), RNA_def_property(), RNA_def_property_string_search_func_runtime(), RNA_def_property_ui_text(), RNA_def_string(), wmOperatorType::srna, and visit_library_prop_catalogs_catalog_for_search_fn().
| float blender::ed::sculpt_paint::brush_radius_factor | ( | const Brush & | brush, |
| const StrokeExtension & | stroke_extension ) |
Definition at line 85 of file curves_sculpt_ops.cc.
References BKE_brush_use_size_pressure(), and blender::ed::sculpt_paint::StrokeExtension::pressure.
Referenced by brush_radius_get(), blender::ed::sculpt_paint::CombOperationExecutor::execute(), blender::ed::sculpt_paint::CurvesEffectOperationExecutor::execute(), blender::ed::sculpt_paint::DeleteOperationExecutor::execute(), blender::ed::sculpt_paint::DensitySubtractOperationExecutor::execute(), blender::ed::sculpt_paint::PinchOperationExecutor::execute(), blender::ed::sculpt_paint::PuffOperationExecutor::execute(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::execute(), blender::ed::sculpt_paint::SlideOperationExecutor::execute(), blender::ed::sculpt_paint::SmoothOperationExecutor::execute(), and blender::ed::sculpt_paint::SnakeHookOperatorExecutor::execute().
| float blender::ed::sculpt_paint::brush_radius_get | ( | const Scene & | scene, |
| const Brush & | brush, | ||
| const StrokeExtension & | stroke_extension ) |
Definition at line 93 of file curves_sculpt_ops.cc.
References BKE_brush_size_get(), and brush_radius_factor().
Referenced by blender::ed::sculpt_paint::AddOperationExecutor::execute(), and blender::ed::sculpt_paint::DensityAddOperationExecutor::execute().
| float blender::ed::sculpt_paint::brush_strength_factor | ( | const Brush & | brush, |
| const StrokeExtension & | stroke_extension ) |
Definition at line 100 of file curves_sculpt_ops.cc.
References BKE_brush_use_alpha_pressure(), and blender::ed::sculpt_paint::StrokeExtension::pressure.
Referenced by brush_strength_get().
| float blender::ed::sculpt_paint::brush_strength_get | ( | const Scene & | scene, |
| const Brush & | brush, | ||
| const StrokeExtension & | stroke_extension ) |
Definition at line 108 of file curves_sculpt_ops.cc.
References BKE_brush_alpha_get(), and brush_strength_factor().
Referenced by blender::ed::sculpt_paint::CombOperationExecutor::execute(), blender::ed::sculpt_paint::CurvesEffectOperationExecutor::execute(), blender::ed::sculpt_paint::DensityAddOperationExecutor::execute(), blender::ed::sculpt_paint::DensitySubtractOperationExecutor::execute(), blender::ed::sculpt_paint::PuffOperationExecutor::execute(), blender::ed::sculpt_paint::SlideOperationExecutor::execute(), blender::ed::sculpt_paint::SmoothOperationExecutor::execute(), and blender::ed::sculpt_paint::SnakeHookOperatorExecutor::execute().
|
static |
Definition at line 5466 of file sculpt.cc.
References brush_stroke_modal(), wmOperator::customdata, and paint_stroke_modal().
Referenced by brush_stroke_modal(), and SCULPT_OT_brush_stroke().
Definition at line 1729 of file paint_stroke.cc.
References BKE_paint_brush(), BKE_paint_get_active_from_context(), CTX_data_active_object(), CTX_wm_area(), CTX_wm_region(), ELEM, RGN_TYPE_WINDOW, SPACE_IMAGE, SPACE_VIEW3D, and TOOLREF_FLAG_USE_BRUSHES.
Referenced by paint_brush_cursor_poll(), and paint_brush_tool_poll().
|
static |
Definition at line 762 of file sculpt.cc.
References ELEM, SCULPT_BRUSH_TYPE_BOUNDARY, SCULPT_BRUSH_TYPE_DRAW_SHARP, SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_LAYER, SCULPT_BRUSH_TYPE_POSE, SCULPT_BRUSH_TYPE_ROTATE, SCULPT_BRUSH_TYPE_SMOOTH, and SCULPT_BRUSH_TYPE_THUMB.
Referenced by do_brush_action(), and dynamic_topology_update().
|
static |
Definition at line 776 of file sculpt.cc.
References SculptSession::bm, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_HAS_TOPOLOGY_RAKE, and Brush::topology_rake_factor.
Referenced by brush_delta_update(), do_brush_action(), and sculpt_brush_needs_normal().
|
static |
Definition at line 4185 of file sculpt.cc.
References BRUSH_PAINT_DENSITY_PRESSURE, BRUSH_PAINT_DENSITY_PRESSURE_INVERT, BRUSH_PAINT_FLOW_PRESSURE, BRUSH_PAINT_FLOW_PRESSURE_INVERT, BRUSH_PAINT_HARDNESS_PRESSURE, BRUSH_PAINT_HARDNESS_PRESSURE_INVERT, BRUSH_PAINT_WET_MIX_PRESSURE, BRUSH_PAINT_WET_MIX_PRESSURE_INVERT, BRUSH_PAINT_WET_PERSISTENCE_PRESSURE, BRUSH_PAINT_WET_PERSISTENCE_PRESSURE_INVERT, cache_paint_invariants_update(), blender::ed::sculpt_paint::StrokeCache::density, Brush::density, blender::ed::sculpt_paint::StrokeCache::flow, Brush::flow, blender::ed::sculpt_paint::StrokeCache::hardness, Brush::hardness, blender::ed::sculpt_paint::StrokeCache::paint_brush, Brush::paint_flags, pow2f(), blender::ed::sculpt_paint::StrokeCache::pressure, blender::ed::sculpt_paint::StrokeCache::wet_mix, Brush::wet_mix, blender::ed::sculpt_paint::StrokeCache::wet_persistence, and Brush::wet_persistence.
Referenced by cache_paint_invariants_update(), and sculpt_update_cache_variants().
| void blender::ed::sculpt_paint::calc_area_center | ( | const Depsgraph & | depsgraph, |
| const Brush & | brush, | ||
| const Object & | ob, | ||
| const IndexMask & | node_mask, | ||
| float | r_area_co[3] ) |
Definition at line 1746 of file sculpt.cc.
References SculptSession::bm, blender::bke::pbvh::BMesh, calc_area_normal_and_center_reduce(), Object::data, depsgraph, blender::index_mask::IndexMask::index_range(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), blender::threading::parallel_reduce(), blender::bke::object::pbvh_get(), blender::bke::Point, Object::sculpt, blender::ed::sculpt_paint::dyntopo::stroke_is_dyntopo(), blender::bke::pbvh::Tree::type(), blender::bke::pbvh::vert_normals_eval(), and blender::bke::pbvh::vert_positions_eval().
Referenced by calc_brush_plane().
| std::optional< float3 > blender::ed::sculpt_paint::calc_area_normal | ( | const Depsgraph & | depsgraph, |
| const Brush & | brush, | ||
| const Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 1848 of file sculpt.cc.
References SculptSession::bm, calc_area_normal(), calc_area_normal_and_center_reduce(), Object::data, depsgraph, blender::index_mask::IndexMask::index_range(), blender::bke::pbvh::Tree::nodes(), Object::sculpt, and blender::bke::pbvh::Tree::type().
Referenced by blender::ed::sculpt_paint::filter::cache_init(), calc_area_normal(), calc_sculpt_normal(), do_clay_strips_brush(), do_clay_thumb_brush(), do_multiplane_scrape_brush(), and blender::ed::sculpt_paint::vwpaint::pbvh_gather_generic().
| void blender::ed::sculpt_paint::calc_area_normal_and_center | ( | const Depsgraph & | depsgraph, |
| const Brush & | brush, | ||
| const Object & | ob, | ||
| const IndexMask & | node_mask, | ||
| float | r_area_no[3], | ||
| float | r_area_co[3] ) |
This calculates flatten center and area normal together, amortizing the memory bandwidth and loop overhead to calculate both at the same time.
Definition at line 1944 of file sculpt.cc.
References SculptSession::bm, calc_area_normal_and_center(), calc_area_normal_and_center_reduce(), Object::data, depsgraph, blender::index_mask::IndexMask::index_range(), blender::bke::pbvh::Tree::nodes(), Object::sculpt, and blender::bke::pbvh::Tree::type().
Referenced by calc_area_normal_and_center(), and calc_brush_plane().
|
static |
Definition at line 1585 of file sculpt.cc.
References blender::ed::sculpt_paint::StrokeCache::accum, accumulate_area_center(), accumulate_area_normal(), area_normal_and_center_get_normal_radius(), area_normal_and_center_get_position_radius(), BKE_pbvh_bmesh_node_unique_verts(), BKE_pbvh_node_get_bm_orco_data(), BM_elem_flag_test, BM_ELEM_HIDDEN, SculptSession::bm_log, SculptSession::cache, calc_brush_distances_squared(), closest_on_tri_to_point_v3(), SculptSession::cursor_location, SculptSession::cursor_view_normal, blender::ed::sculpt_paint::SampleLocalData::distances, blender::math::dot(), Brush::falloff_shape, gather_bmesh_positions(), blender::ed::sculpt_paint::undo::get_bmesh_log_entry(), blender::Span< T >::index_range(), blender::ed::sculpt_paint::StrokeCache::location_symm, blender::math::normal_tri(), normals, orig_position_data_gather_bmesh(), blender::ed::sculpt_paint::SampleLocalData::positions, blender::math::rcp(), blender::Vector< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::Span< T >::size(), UNPACK3, verts, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
|
static |
Definition at line 1479 of file sculpt.cc.
References blender::ed::sculpt_paint::StrokeCache::accum, accumulate_area_center(), accumulate_area_normal(), area_normal_and_center_get_normal_radius(), area_normal_and_center_get_position_radius(), BKE_subdiv_ccg_key_top_level(), SculptSession::cache, calc_brush_distances_squared(), SculptSession::cursor_location, SculptSession::cursor_view_normal, blender::ed::sculpt_paint::SampleLocalData::distances, blender::math::dot(), Brush::falloff_shape, gather_grids_positions(), CCGKey::grid_area, SubdivCCG::grid_hidden, blender::bke::ccg::grid_range(), blender::Span< T >::index_range(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), blender::ed::sculpt_paint::StrokeCache::location_symm, SubdivCCG::normals, orig_position_data_lookup_grids(), blender::ed::sculpt_paint::SampleLocalData::positions, blender::math::rcp(), blender::Vector< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::Span< T >::size(), SculptSession::subdiv_ccg, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
|
static |
Definition at line 1391 of file sculpt.cc.
References blender::ed::sculpt_paint::StrokeCache::accum, accumulate_area_center(), accumulate_area_normal(), area_normal_and_center_get_normal_radius(), area_normal_and_center_get_position_radius(), SculptSession::cache, calc_brush_distances_squared(), SculptSession::cursor_location, SculptSession::cursor_view_normal, blender::ed::sculpt_paint::SampleLocalData::distances, blender::math::dot(), Brush::falloff_shape, blender::Span< T >::is_empty(), blender::ed::sculpt_paint::StrokeCache::location_symm, orig_position_data_lookup_mesh(), blender::math::rcp(), blender::Vector< T, InlineBufferCapacity, Allocator >::reinitialize(), verts, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
|
static |
Definition at line 1728 of file sculpt.cc.
References blender::ed::sculpt_paint::AreaNormalCenterData::area_cos, and b.
Referenced by calc_area_center(), calc_area_normal(), and calc_area_normal_and_center().
|
static |
Definition at line 460 of file multiplane_scrape.cc.
References apply_hardness_to_distances(), apply_translations(), blender::ed::sculpt_paint::StrokeCache::automasking, BKE_pbvh_bmesh_node_unique_verts(), SculptSession::bm, BRUSH_FRONTFACE, SculptSession::cache, calc_bmesh(), calc_brush_distances(), calc_brush_strength_factors(), calc_distances(), calc_front_face(), calc_translations(), clip_and_lock_translations(), depsgraph, blender::ed::sculpt_paint::LocalData::distances, blender::ed::sculpt_paint::LocalData::factors, Brush::falloff_shape, fill_factor_from_hide_and_mask(), filter_distances_with_radius(), filter_plane_side_factors(), filter_plane_trim_limit_factors(), filter_region_clip_factors(), Brush::flag, gather_bmesh_positions(), blender::ed::sculpt_paint::LocalData::local_positions, blender::ed::sculpt_paint::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), scale_factors(), scale_translations(), transform_positions(), blender::ed::sculpt_paint::LocalData::translations, verts, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by calc_bmesh(), and do_multiplane_scrape_brush().
| void blender::ed::sculpt_paint::calc_brush_cube_distances | ( | const Brush & | brush, |
| const float4x4 & | mat, | ||
| Span< float3 > | positions, | ||
| MutableSpan< float > | r_distances, | ||
| MutableSpan< float > | factors ) |
Definition at line 6823 of file sculpt.cc.
References blender::math::abs(), BLI_assert, calc_brush_cube_distances(), blender::math::distance(), blender::MutableSpan< T >::size(), Brush::tip_roundness, and blender::math::transform_point().
| void blender::ed::sculpt_paint::calc_brush_cube_distances | ( | const Brush & | brush, |
| const float4x4 & | mat, | ||
| Span< float3 > | positions, | ||
| Span< int > | verts, | ||
| MutableSpan< float > | r_distances, | ||
| MutableSpan< float > | factors ) |
Calculate distances based on a "square" brush tip falloff and ignore vertices that are too far away.
Definition at line 6783 of file sculpt.cc.
References blender::math::abs(), BLI_assert, calc_brush_cube_distances(), blender::math::distance(), blender::MutableSpan< T >::size(), Brush::tip_roundness, blender::math::transform_point(), and verts.
Referenced by calc_brush_cube_distances(), calc_brush_cube_distances(), and blender::ed::sculpt_paint::color::do_paint_brush_task().
| void blender::ed::sculpt_paint::calc_brush_distances | ( | const SculptSession & | ss, |
| Span< float3 > | positions, | ||
| eBrushFalloffShape | falloff_shape, | ||
| MutableSpan< float > | r_distances ) |
Definition at line 6761 of file sculpt.cc.
References calc_brush_distances(), and calc_brush_distances_squared().
| void blender::ed::sculpt_paint::calc_brush_distances | ( | const SculptSession & | ss, |
| Span< float3 > | vert_positions, | ||
| Span< int > | vert_indices, | ||
| eBrushFalloffShape | falloff_shape, | ||
| MutableSpan< float > | r_distances ) |
Calculate distances based on the distance from the brush cursor and various other settings. Also ignore vertices that are too far from the cursor.
Definition at line 6722 of file sculpt.cc.
References calc_brush_distances(), calc_brush_distances_squared(), and verts.
Referenced by calc_bmesh(), calc_brush_distances(), calc_brush_distances(), calc_faces(), calc_factors_common_bmesh(), calc_factors_common_from_orig_data_bmesh(), calc_factors_common_from_orig_data_grids(), calc_factors_common_from_orig_data_mesh(), calc_factors_common_grids(), calc_factors_common_mesh(), calc_factors_common_mesh_indexed(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), calc_grids(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::paint::image::do_paint_pixels(), blender::ed::sculpt_paint::color::do_sample_wet_paint_task(), blender::ed::sculpt_paint::color::do_smear_brush_task(), do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), do_wpaint_brush_blur(), do_wpaint_brush_draw(), do_wpaint_brush_smear(), sample_node_surface_bmesh(), sample_node_surface_grids(), sample_node_surface_mesh(), and vpaint_do_draw().
| void blender::ed::sculpt_paint::calc_brush_distances_squared | ( | const SculptSession & | ss, |
| Span< float3 > | positions, | ||
| eBrushFalloffShape | falloff_shape, | ||
| MutableSpan< float > | r_distances ) |
Definition at line 6734 of file sculpt.cc.
References BLI_assert, SculptSession::cache, calc_brush_distances_squared(), closest_to_plane_normalized_v3(), SculptSession::cursor_location, blender::math::distance_squared(), SculptSession::filter_cache, blender::ed::sculpt_paint::StrokeCache::location_symm, PAINT_FALLOFF_SHAPE_TUBE, plane_from_point_normal_v3(), blender::MutableSpan< T >::size(), blender::ed::sculpt_paint::filter::Cache::view_normal, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
| void blender::ed::sculpt_paint::calc_brush_distances_squared | ( | const SculptSession & | ss, |
| Span< float3 > | vert_positions, | ||
| Span< int > | vert_indices, | ||
| eBrushFalloffShape | falloff_shape, | ||
| MutableSpan< float > | r_distances ) |
Definition at line 6694 of file sculpt.cc.
References BLI_assert, SculptSession::cache, calc_brush_distances_squared(), closest_to_plane_normalized_v3(), SculptSession::cursor_location, blender::math::distance_squared(), SculptSession::filter_cache, blender::ed::sculpt_paint::StrokeCache::location_symm, PAINT_FALLOFF_SHAPE_TUBE, plane_from_point_normal_v3(), blender::MutableSpan< T >::size(), verts, blender::ed::sculpt_paint::filter::Cache::view_normal, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by calc_area_normal_and_center_node_bmesh(), calc_area_normal_and_center_node_grids(), calc_area_normal_and_center_node_mesh(), calc_brush_distances(), calc_brush_distances(), calc_brush_distances_squared(), and calc_brush_distances_squared().
|
static |
Definition at line 2481 of file sculpt.cc.
References angle(), SculptSession::cache, calc_local_from_screen(), copy_m4_m4(), copy_v3_v3(), cosf, cross_v3_v3v3(), invert_m4_m4(), blender::ed::sculpt_paint::StrokeCache::location_symm, mul_m4_m4m4(), normalize_m4(), normalize_v3_v3(), blender::ed::sculpt_paint::StrokeCache::radius, Object::runtime, scale_m4_fl(), Object::sculpt, blender::ed::sculpt_paint::StrokeCache::sculpt_normal, sinf, blender::ed::sculpt_paint::StrokeCache::special_rotation, v, and blender::ed::sculpt_paint::StrokeCache::vc.
| void blender::ed::sculpt_paint::calc_brush_plane | ( | const Depsgraph & | depsgraph, |
| const Brush & | brush, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask, | ||
| float3 & | r_area_no, | ||
| float3 & | r_area_co ) |
Definition at line 2789 of file sculpt.cc.
References add_v3_v3(), ARRAY_SET_ITEMS, BRUSH_ORIGINAL_NORMAL, BRUSH_ORIGINAL_PLANE, SculptSession::cache, calc_area_center(), calc_area_normal_and_center(), copy_v3_v3(), depsgraph, Brush::falloff_shape, Brush::flag, blender::ed::sculpt_paint::StrokeCache::last_center, blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, mul_m4_v3(), normalize_v3(), PAINT_FALLOFF_SHAPE_TUBE, blender::ed::sculpt_paint::StrokeCache::plane_offset, project_plane_v3_v3v3(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), Object::sculpt, SCULPT_DISP_DIR_AREA, SCULPT_DISP_DIR_VIEW, SCULPT_DISP_DIR_X, SCULPT_DISP_DIR_Y, SCULPT_DISP_DIR_Z, blender::ed::sculpt_paint::StrokeCache::sculpt_normal, Brush::sculpt_plane, SCULPT_stroke_is_first_brush_step_of_symmetry_pass(), SCULPT_stroke_is_main_symmetry_pass(), blender::ed::sculpt_paint::StrokeCache::symm_rot_mat, symmetry_flip(), blender::ed::sculpt_paint::StrokeCache::view_normal, blender::ed::sculpt_paint::StrokeCache::view_normal_symm, and zero_v3().
Referenced by blender::ed::sculpt_paint::cloth::cloth_brush_apply_brush_foces(), do_clay_brush(), do_clay_strips_brush(), do_clay_thumb_brush(), do_multiplane_scrape_brush(), and do_pinch_brush().
| void blender::ed::sculpt_paint::calc_brush_strength_factors | ( | const StrokeCache & | cache, |
| const Brush & | brush, | ||
| Span< float > | distances, | ||
| MutableSpan< float > | factors ) |
Modify the factors based on distances to the brush cursor, using various brush settings.
Definition at line 6889 of file sculpt.cc.
References BKE_brush_calc_curve_factors(), calc_brush_strength_factors(), Brush::curve, Brush::curve_preset, and blender::ed::sculpt_paint::StrokeCache::radius.
Referenced by calc_bmesh(), calc_brush_strength_factors(), calc_faces(), calc_factors_common_bmesh(), calc_factors_common_from_orig_data_bmesh(), calc_factors_common_from_orig_data_grids(), calc_factors_common_from_orig_data_mesh(), calc_factors_common_grids(), calc_factors_common_mesh(), calc_factors_common_mesh_indexed(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), calc_grids(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::paint::image::do_paint_pixels(), blender::ed::sculpt_paint::color::do_smear_brush_task(), do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), do_wpaint_brush_blur(), do_wpaint_brush_draw(), do_wpaint_brush_smear(), and vpaint_do_draw().
| void blender::ed::sculpt_paint::calc_brush_texture_factors | ( | const SculptSession & | ss, |
| const Brush & | brush, | ||
| Span< float3 > | positions, | ||
| MutableSpan< float > | factors ) |
Definition at line 6923 of file sculpt.cc.
References BKE_brush_mask_texture_get(), BLI_assert, BLI_task_parallel_thread_id(), calc_brush_texture_factors(), OB_MODE_SCULPT, sculpt_apply_texture(), blender::MutableSpan< T >::size(), and MTex::tex.
| void blender::ed::sculpt_paint::calc_brush_texture_factors | ( | const SculptSession & | ss, |
| const Brush & | brush, | ||
| Span< float3 > | vert_positions, | ||
| Span< int > | vert_indices, | ||
| MutableSpan< float > | factors ) |
Modify brush influence factors to include sampled texture values.
Definition at line 6898 of file sculpt.cc.
References BKE_brush_mask_texture_get(), BLI_assert, BLI_task_parallel_thread_id(), calc_brush_texture_factors(), OB_MODE_SCULPT, sculpt_apply_texture(), blender::MutableSpan< T >::size(), MTex::tex, and verts.
Referenced by calc_brush_texture_factors(), calc_brush_texture_factors(), calc_factors_common_bmesh(), calc_factors_common_from_orig_data_bmesh(), calc_factors_common_from_orig_data_grids(), calc_factors_common_from_orig_data_mesh(), calc_factors_common_grids(), calc_factors_common_mesh(), calc_factors_common_mesh_indexed(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::paint::image::do_paint_pixels(), and blender::ed::sculpt_paint::color::do_smear_brush_task().
|
static |
Definition at line 85 of file multiplane_scrape.cc.
References BLI_assert, blender::Span< T >::index_range(), blender::math::length(), blender::MutableSpan< T >::size(), and blender::Span< T >::size().
Referenced by calc_bmesh(), calc_faces(), and calc_grids().
|
static |
Definition at line 340 of file multiplane_scrape.cc.
References apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, BRUSH_FRONTFACE, SculptSession::cache, calc_brush_distances(), calc_brush_strength_factors(), calc_distances(), calc_faces(), calc_front_face(), calc_translations(), clip_and_lock_translations(), blender::ed::sculpt_paint::PositionDeformData::deform(), depsgraph, blender::ed::sculpt_paint::LocalData::distances, blender::ed::sculpt_paint::PositionDeformData::eval, blender::ed::sculpt_paint::LocalData::factors, Brush::falloff_shape, fill_factor_from_hide_and_mask(), filter_distances_with_radius(), filter_plane_side_factors(), filter_plane_trim_limit_factors(), filter_region_clip_factors(), Brush::flag, gather_data_mesh(), blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::LocalData::local_positions, blender::ed::sculpt_paint::MeshAttributeData::mask, blender::ed::sculpt_paint::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), scale_factors(), scale_translations(), transform_positions(), blender::ed::sculpt_paint::LocalData::translations, verts, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by calc_faces(), and do_multiplane_scrape_brush().
| void blender::ed::sculpt_paint::calc_factors_common_bmesh | ( | const Depsgraph & | depsgraph, |
| const Brush & | brush, | ||
| const Object & | object, | ||
| Span< float3 > | positions, | ||
| bke::pbvh::BMeshNode & | node, | ||
| Vector< float > & | r_factors, | ||
| Vector< float > & | r_distances ) |
Definition at line 6304 of file sculpt.cc.
References apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, BKE_pbvh_bmesh_node_unique_verts(), SculptSession::bm, BRUSH_FRONTFACE, SculptSession::cache, calc_brush_distances(), calc_brush_strength_factors(), calc_brush_texture_factors(), calc_factors_common_bmesh(), calc_front_face(), depsgraph, Brush::falloff_shape, fill_factor_from_hide_and_mask(), filter_distances_with_radius(), filter_region_clip_factors(), Brush::flag, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), verts, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by calc_factors_common_bmesh().
| void blender::ed::sculpt_paint::calc_factors_common_from_orig_data_bmesh | ( | const Depsgraph & | depsgraph, |
| const Brush & | brush, | ||
| const Object & | object, | ||
| Span< float3 > | positions, | ||
| Span< float3 > | normals, | ||
| bke::pbvh::BMeshNode & | node, | ||
| Vector< float > & | r_factors, | ||
| Vector< float > & | r_distances ) |
Definition at line 6408 of file sculpt.cc.
References apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, BKE_pbvh_bmesh_node_unique_verts(), SculptSession::bm, BRUSH_FRONTFACE, SculptSession::cache, calc_brush_distances(), calc_brush_strength_factors(), calc_brush_texture_factors(), calc_factors_common_from_orig_data_bmesh(), calc_front_face(), depsgraph, Brush::falloff_shape, fill_factor_from_hide_and_mask(), filter_distances_with_radius(), filter_region_clip_factors(), Brush::flag, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), verts, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by calc_factors_common_from_orig_data_bmesh().
| void blender::ed::sculpt_paint::calc_factors_common_from_orig_data_grids | ( | const Depsgraph & | depsgraph, |
| const Brush & | brush, | ||
| const Object & | object, | ||
| Span< float3 > | positions, | ||
| Span< float3 > | normals, | ||
| const bke::pbvh::GridsNode & | node, | ||
| Vector< float > & | r_factors, | ||
| Vector< float > & | r_distances ) |
Definition at line 6373 of file sculpt.cc.
References apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, BRUSH_FRONTFACE, SculptSession::cache, calc_brush_distances(), calc_brush_strength_factors(), calc_brush_texture_factors(), calc_factors_common_from_orig_data_grids(), calc_front_face(), depsgraph, Brush::falloff_shape, fill_factor_from_hide_and_mask(), filter_distances_with_radius(), filter_region_clip_factors(), Brush::flag, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), SculptSession::subdiv_ccg, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by calc_factors_common_from_orig_data_grids().
| void blender::ed::sculpt_paint::calc_factors_common_from_orig_data_mesh | ( | const Depsgraph & | depsgraph, |
| const Brush & | brush, | ||
| const Object & | object, | ||
| const MeshAttributeData & | attribute_data, | ||
| Span< float3 > | positions, | ||
| Span< float3 > | normals, | ||
| const bke::pbvh::MeshNode & | node, | ||
| Vector< float > & | r_factors, | ||
| Vector< float > & | r_distances ) |
Definition at line 6337 of file sculpt.cc.
References apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, BRUSH_FRONTFACE, SculptSession::cache, calc_brush_distances(), calc_brush_strength_factors(), calc_brush_texture_factors(), calc_factors_common_from_orig_data_mesh(), calc_front_face(), depsgraph, Brush::falloff_shape, fill_factor_from_hide_and_mask(), filter_distances_with_radius(), filter_region_clip_factors(), Brush::flag, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::MeshAttributeData::mask, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), verts, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by calc_factors_common_from_orig_data_mesh().
| void blender::ed::sculpt_paint::calc_factors_common_grids | ( | const Depsgraph & | depsgraph, |
| const Brush & | brush, | ||
| const Object & | object, | ||
| Span< float3 > | positions, | ||
| const bke::pbvh::GridsNode & | node, | ||
| Vector< float > & | r_factors, | ||
| Vector< float > & | r_distances ) |
Definition at line 6270 of file sculpt.cc.
References apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, BRUSH_FRONTFACE, SculptSession::cache, calc_brush_distances(), calc_brush_strength_factors(), calc_brush_texture_factors(), calc_factors_common_grids(), calc_front_face(), depsgraph, Brush::falloff_shape, fill_factor_from_hide_and_mask(), filter_distances_with_radius(), filter_region_clip_factors(), Brush::flag, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), SculptSession::subdiv_ccg, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by calc_factors_common_grids().
| void blender::ed::sculpt_paint::calc_factors_common_mesh | ( | const Depsgraph & | depsgraph, |
| const Brush & | brush, | ||
| const Object & | object, | ||
| const MeshAttributeData & | attribute_data, | ||
| Span< float3 > | positions, | ||
| Span< float3 > | vert_normals, | ||
| const bke::pbvh::MeshNode & | node, | ||
| Vector< float > & | r_factors, | ||
| Vector< float > & | r_distances ) |
Definition at line 6235 of file sculpt.cc.
References apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, BRUSH_FRONTFACE, SculptSession::cache, calc_brush_distances(), calc_brush_strength_factors(), calc_brush_texture_factors(), calc_factors_common_mesh(), calc_front_face(), depsgraph, Brush::falloff_shape, fill_factor_from_hide_and_mask(), filter_distances_with_radius(), filter_region_clip_factors(), Brush::flag, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::MeshAttributeData::mask, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), verts, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by calc_factors_common_mesh().
| void blender::ed::sculpt_paint::calc_factors_common_mesh_indexed | ( | const Depsgraph & | depsgraph, |
| const Brush & | brush, | ||
| const Object & | object, | ||
| const MeshAttributeData & | attribute_data, | ||
| Span< float3 > | vert_positions, | ||
| Span< float3 > | vert_normals, | ||
| const bke::pbvh::MeshNode & | node, | ||
| Vector< float > & | r_factors, | ||
| Vector< float > & | r_distances ) |
Definition at line 6199 of file sculpt.cc.
References apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, BRUSH_FRONTFACE, SculptSession::cache, calc_brush_distances(), calc_brush_strength_factors(), calc_brush_texture_factors(), calc_factors_common_mesh_indexed(), calc_front_face(), depsgraph, Brush::falloff_shape, fill_factor_from_hide_and_mask(), filter_distances_with_radius(), filter_region_clip_factors(), Brush::flag, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::MeshAttributeData::mask, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), verts, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by calc_factors_common_mesh_indexed().
| void blender::ed::sculpt_paint::calc_front_face | ( | const float3 & | view_normal, |
| const Set< BMFace *, 0 > & | faces, | ||
| MutableSpan< float > | factors ) |
Definition at line 6625 of file sculpt.cc.
References BLI_assert, calc_front_face(), blender::math::dot(), faces, and blender::MutableSpan< T >::size().
| void blender::ed::sculpt_paint::calc_front_face | ( | const float3 & | view_normal, |
| const Set< BMVert *, 0 > & | verts, | ||
| MutableSpan< float > | factors ) |
Definition at line 6611 of file sculpt.cc.
References BLI_assert, calc_front_face(), blender::math::dot(), blender::MutableSpan< T >::size(), and verts.
| void blender::ed::sculpt_paint::calc_front_face | ( | const float3 & | view_normal, |
| const SubdivCCG & | subdiv_ccg, | ||
| Span< int > | grids, | ||
| MutableSpan< float > | factors ) |
Definition at line 6592 of file sculpt.cc.
References BKE_subdiv_ccg_key_top_level(), BLI_assert, calc_front_face(), blender::math::dot(), CCGKey::grid_area, blender::MutableSpan< T >::index_range(), blender::Span< T >::index_range(), SubdivCCG::normals, blender::MutableSpan< T >::size(), blender::Span< T >::size(), blender::MutableSpan< T >::slice(), and blender::Span< T >::slice().
| void blender::ed::sculpt_paint::calc_front_face | ( | const float3 & | view_normal, |
| Span< float3 > | normals, | ||
| MutableSpan< float > | factors ) |
Disable brush influence when vertex normals point away from the view.
Definition at line 6581 of file sculpt.cc.
References BLI_assert, calc_front_face(), blender::math::dot(), and blender::MutableSpan< T >::size().
Referenced by calc_bmesh(), calc_faces(), calc_factors_common_bmesh(), calc_factors_common_from_orig_data_bmesh(), calc_factors_common_from_orig_data_grids(), calc_factors_common_from_orig_data_mesh(), calc_factors_common_grids(), calc_factors_common_mesh(), calc_factors_common_mesh_indexed(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), calc_front_face(), calc_front_face(), calc_front_face(), calc_front_face(), calc_front_face(), calc_grids(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::color::do_smear_brush_task(), sample_node_surface_bmesh(), sample_node_surface_grids(), and sample_node_surface_mesh().
| void blender::ed::sculpt_paint::calc_front_face | ( | const float3 & | view_normal, |
| Span< float3 > | vert_normals, | ||
| Span< int > | vert_indices, | ||
| MutableSpan< float > | factors ) |
Definition at line 6568 of file sculpt.cc.
References BLI_assert, calc_front_face(), blender::math::dot(), blender::MutableSpan< T >::size(), and verts.
|
static |
Definition at line 401 of file multiplane_scrape.cc.
References apply_hardness_to_distances(), apply_translations(), blender::ed::sculpt_paint::StrokeCache::automasking, BRUSH_FRONTFACE, SculptSession::cache, calc_brush_distances(), calc_brush_strength_factors(), calc_distances(), calc_front_face(), calc_grids(), calc_translations(), clip_and_lock_translations(), depsgraph, blender::ed::sculpt_paint::LocalData::distances, blender::ed::sculpt_paint::LocalData::factors, Brush::falloff_shape, fill_factor_from_hide_and_mask(), filter_distances_with_radius(), filter_plane_side_factors(), filter_plane_trim_limit_factors(), filter_region_clip_factors(), Brush::flag, gather_grids_positions(), blender::ed::sculpt_paint::LocalData::local_positions, blender::ed::sculpt_paint::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), scale_factors(), scale_translations(), SculptSession::subdiv_ccg, transform_positions(), blender::ed::sculpt_paint::LocalData::translations, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by calc_grids(), and do_multiplane_scrape_brush().
|
static |
Definition at line 2463 of file sculpt.cc.
References add_v3_v3(), ED_view3d_calc_zfac(), ED_view3d_win_to_delta(), Object::loc, mul_m4_v3(), mul_v3_m4v3(), normalize_v3(), ViewContext::obact, ViewContext::region, and ViewContext::rv3d.
Referenced by calc_brush_local_mat().
|
static |
Definition at line 2408 of file sculpt.cc.
References BKE_paint_brush_for_read(), BLI_assert_unreachable, SculptSession::cache, calc_area_normal(), depsgraph, Sculpt::paint, Object::sculpt, SCULPT_DISP_DIR_AREA, SCULPT_DISP_DIR_VIEW, SCULPT_DISP_DIR_X, SCULPT_DISP_DIR_Y, SCULPT_DISP_DIR_Z, Brush::sculpt_plane, and blender::ed::sculpt_paint::StrokeCache::view_normal.
Referenced by update_sculpt_normal().
| void blender::ed::sculpt_paint::calc_smooth_translations | ( | const Depsgraph & | depsgraph, |
| const Object & | object, | ||
| const IndexMask & | node_mask, | ||
| MutableSpan< float3 > | translations ) |
The brush uses translations calculated at the beginning of the stroke. They can't be calculated dynamically because changing positions will influence neighboring translations. However we can reduce the cost in some cases by skipping initializing values for vertices in hidden or masked nodes.
Definition at line 191 of file enhance_details.cc.
References SculptSession::bm, BM_mesh_elem_index_ensure(), BM_mesh_elem_table_ensure(), BM_VERT, blender::bke::pbvh::BMesh, depsgraph, blender::index_mask::IndexMask::foreach_index(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::MeshAttributeData::hide_poly, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), SculptSession::subdiv_ccg, blender::bke::pbvh::Tree::type(), and blender::bke::pbvh::vert_positions_eval().
Referenced by do_enhance_details_brush(), blender::ed::sculpt_paint::filter::mesh_filter_sharpen_init(), and blender::ed::sculpt_paint::filter::sculpt_filter_specific_init().
|
static |
Definition at line 161 of file sculpt_transform.cc.
References SCULPT_get_vertex_symm_area(), and blender::math::transform_point().
Referenced by transform_node_bmesh(), transform_node_grids(), and transform_node_mesh().
|
static |
Definition at line 339 of file sculpt_transform.cc.
References blender::math::transform_point().
Referenced by elastic_transform_node_bmesh(), elastic_transform_node_grids(), and elastic_transform_node_mesh().
|
static |
Definition at line 99 of file multiplane_scrape.cc.
References closest(), and closest_to_plane_normalized_v3().
Referenced by calc_bmesh(), calc_faces(), and calc_grids().
| void blender::ed::sculpt_paint::calc_translations_to_plane | ( | Span< float3 > | positions, |
| const float4 & | plane, | ||
| MutableSpan< float3 > | translations ) |
Definition at line 7492 of file sculpt.cc.
References calc_translations_to_plane(), closest(), and closest_to_plane_normalized_v3().
| void blender::ed::sculpt_paint::calc_translations_to_plane | ( | Span< float3 > | vert_positions, |
| Span< int > | verts, | ||
| const float4 & | plane, | ||
| MutableSpan< float3 > | translations ) |
Find the translation from each vertex position to the closest point on the plane.
Definition at line 7479 of file sculpt.cc.
References calc_translations_to_plane(), closest(), closest_to_plane_normalized_v3(), and verts.
Referenced by blender::ed::sculpt_paint::project::apply_projection_bmesh(), blender::ed::sculpt_paint::project::apply_projection_grids(), blender::ed::sculpt_paint::project::apply_projection_mesh(), calc_translations_to_plane(), and calc_translations_to_plane().
| void blender::ed::sculpt_paint::calc_vert_neighbors | ( | const SubdivCCG & | subdiv_ccg, |
| Span< int > | grids, | ||
| MutableSpan< Vector< SubdivCCGCoord > > | result ) |
Definition at line 7344 of file sculpt.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), BKE_subdiv_ccg_key_top_level(), BKE_subdiv_ccg_neighbor_coords_get(), BLI_assert, calc_vert_neighbors(), CCG_grid_xy_to_index(), SubdivCCGNeighbors::coords, CCGKey::grid_area, SubdivCCGCoord::grid_index, CCGKey::grid_size, blender::Span< T >::index_range(), blender::Span< T >::size(), x, and y.
| void blender::ed::sculpt_paint::calc_vert_neighbors | ( | OffsetIndices< int > | faces, |
| Span< int > | corner_verts, | ||
| GroupedSpan< int > | vert_to_face, | ||
| Span< bool > | hide_poly, | ||
| Span< int > | verts, | ||
| MutableSpan< Vector< int > > | result ) |
Find vertices connected to the indexed vertices across faces.
Does not handle boundary vertices differently, so this method is generally inappropriate for functions that are related to coordinates. See calc_vert_neighbors_interior
Definition at line 7330 of file sculpt.cc.
References BLI_assert, calc_vert_neighbors(), blender::Span< T >::size(), vert_neighbors_get_mesh(), and verts.
Referenced by blender::ed::sculpt_paint::smooth::blur_geometry_data_array(), blender::ed::sculpt_paint::filter::calc_sharpen_filter(), blender::ed::sculpt_paint::boundary::calc_smooth_bmesh(), blender::ed::sculpt_paint::boundary::calc_smooth_grids(), blender::ed::sculpt_paint::boundary::calc_smooth_mesh(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), calc_vert_neighbors(), calc_vert_neighbors(), calc_vert_neighbors(), blender::ed::sculpt_paint::color::color_filter_task(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::cloth::ensure_nodes_constraints(), blender::ed::sculpt_paint::pose::grow_factors_mesh(), blender::ed::sculpt_paint::mask::grow_mask_mesh(), blender::ed::sculpt_paint::filter::mesh_filter_sharpen_init(), blender::ed::sculpt_paint::color::sculpt_color_presmooth_init(), blender::ed::sculpt_paint::mask::sharpen_mask_mesh(), blender::ed::sculpt_paint::mask::shrink_mask_mesh(), and blender::ed::sculpt_paint::mask::smooth_mask_mesh().
| void blender::ed::sculpt_paint::calc_vert_neighbors | ( | Set< BMVert *, 0 > | verts, |
| const MutableSpan< Vector< BMVert * > > | result ) |
Definition at line 7372 of file sculpt.cc.
References BLI_assert, calc_vert_neighbors(), vert_neighbors_get_bmesh(), and verts.
| void blender::ed::sculpt_paint::calc_vert_neighbors | ( | Set< BMVert *, 0 > | verts, |
| MutableSpan< Vector< BMVert * > > | result ) |
| void blender::ed::sculpt_paint::calc_vert_neighbors_interior | ( | const Set< BMVert *, 0 > & | verts, |
| MutableSpan< Vector< BMVert * > > | result ) |
Definition at line 7465 of file sculpt.cc.
References BLI_assert, calc_vert_neighbors_interior(), vert_neighbors_get_interior_bmesh(), and verts.
| void blender::ed::sculpt_paint::calc_vert_neighbors_interior | ( | OffsetIndices< int > | faces, |
| Span< int > | corner_verts, | ||
| BitSpan | boundary_verts, | ||
| const SubdivCCG & | subdiv_ccg, | ||
| Span< int > | grids, | ||
| MutableSpan< Vector< SubdivCCGCoord > > | result ) |
Definition at line 7414 of file sculpt.cc.
References BKE_subdiv_ccg_coord_is_mesh_boundary(), BKE_subdiv_ccg_key_top_level(), BKE_subdiv_ccg_neighbor_coords_get(), BLI_assert, calc_vert_neighbors_interior(), CCG_grid_xy_to_index(), blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), SubdivCCGNeighbors::coords, CCGKey::grid_area, SubdivCCGCoord::grid_index, CCGKey::grid_size, blender::Span< T >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::remove_if(), blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), x, and y.
| void blender::ed::sculpt_paint::calc_vert_neighbors_interior | ( | OffsetIndices< int > | faces, |
| Span< int > | corner_verts, | ||
| GroupedSpan< int > | vert_to_face, | ||
| BitSpan | boundary_verts, | ||
| Span< bool > | hide_poly, | ||
| Span< int > | verts, | ||
| MutableSpan< Vector< int > > | result ) |
Find vertices connected to the indexed vertices across faces. For boundary vertices (stored in the boundary_verts argument), only include other boundary vertices. Also skip connectivity across hidden faces and skip neighbors of corner vertices.
Definition at line 7385 of file sculpt.cc.
References BLI_assert, calc_vert_neighbors_interior(), blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), blender::Vector< T, InlineBufferCapacity, Allocator >::remove_if(), blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), vert_neighbors_get_mesh(), and verts.
Referenced by blender::ed::sculpt_paint::smooth::calc_relaxed_translations_bmesh(), blender::ed::sculpt_paint::smooth::calc_relaxed_translations_faces(), blender::ed::sculpt_paint::smooth::calc_relaxed_translations_grids(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), calc_vert_neighbors_interior(), calc_vert_neighbors_interior(), and calc_vert_neighbors_interior().
| float blender::ed::sculpt_paint::clay_thumb_get_stabilized_pressure | ( | const StrokeCache & | cache | ) |
Definition at line 262 of file clay_thumb.cc.
References blender::ed::sculpt_paint::StrokeCache::clay_thumb_brush, and blender::ed::sculpt_paint::StrokeCache::pressure_stabilizer.
Referenced by brush_dynamic_size_get(), and do_clay_thumb_brush().
| void blender::ed::sculpt_paint::clip_and_lock_translations | ( | const Sculpt & | sd, |
| const SculptSession & | ss, | ||
| Span< float3 > | positions, | ||
| MutableSpan< float3 > | translations ) |
Definition at line 7064 of file sculpt.cc.
References blender::math::abs(), BLI_assert, SculptSession::cache, clip_and_lock_translations(), ClipX, blender::ed::sculpt_paint::StrokeCache::flag, Sculpt::flags, blender::ed::sculpt_paint::StrokeCache::mat, blender::ed::sculpt_paint::StrokeCache::mat_inv, blender::ed::sculpt_paint::StrokeCache::mirror_modifier_clip, SCULPT_LOCK_X, blender::MutableSpan< T >::size(), blender::ed::sculpt_paint::StrokeCache::tolerance, and blender::math::transform_point().
| void blender::ed::sculpt_paint::clip_and_lock_translations | ( | const Sculpt & | sd, |
| const SculptSession & | ss, | ||
| Span< float3 > | positions, | ||
| Span< int > | verts, | ||
| MutableSpan< float3 > | translations ) |
Modify translations based on sculpt mode axis locking and mirroring clipping.
Definition at line 7022 of file sculpt.cc.
References blender::math::abs(), BLI_assert, SculptSession::cache, clip_and_lock_translations(), ClipX, blender::ed::sculpt_paint::StrokeCache::flag, Sculpt::flags, blender::ed::sculpt_paint::StrokeCache::mat, blender::ed::sculpt_paint::StrokeCache::mat_inv, blender::ed::sculpt_paint::StrokeCache::mirror_modifier_clip, SCULPT_LOCK_X, blender::MutableSpan< T >::size(), blender::ed::sculpt_paint::StrokeCache::tolerance, blender::math::transform_point(), and verts.
Referenced by blender::ed::sculpt_paint::project::apply_projection_bmesh(), blender::ed::sculpt_paint::project::apply_projection_grids(), blender::ed::sculpt_paint::project::apply_projection_mesh(), blender::ed::sculpt_paint::boundary::calc_bend_bmesh(), blender::ed::sculpt_paint::boundary::calc_bend_grids(), blender::ed::sculpt_paint::boundary::calc_bend_mesh(), calc_bmesh(), blender::ed::sculpt_paint::pose::calc_bmesh(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), blender::ed::sculpt_paint::filter::calc_erase_displacement_filter(), calc_faces(), blender::ed::sculpt_paint::boundary::calc_grab_bmesh(), blender::ed::sculpt_paint::boundary::calc_grab_grids(), blender::ed::sculpt_paint::boundary::calc_grab_mesh(), calc_grids(), blender::ed::sculpt_paint::pose::calc_grids(), blender::ed::sculpt_paint::boundary::calc_inflate_bmesh(), blender::ed::sculpt_paint::filter::calc_inflate_filter(), blender::ed::sculpt_paint::boundary::calc_inflate_grids(), blender::ed::sculpt_paint::boundary::calc_inflate_mesh(), blender::ed::sculpt_paint::pose::calc_mesh(), blender::ed::sculpt_paint::filter::calc_random_filter(), blender::ed::sculpt_paint::filter::calc_relax_face_sets_filter(), blender::ed::sculpt_paint::filter::calc_relax_filter(), blender::ed::sculpt_paint::filter::calc_scale_filter(), blender::ed::sculpt_paint::filter::calc_sharpen_filter(), blender::ed::sculpt_paint::boundary::calc_slide_bmesh(), blender::ed::sculpt_paint::boundary::calc_slide_grids(), blender::ed::sculpt_paint::boundary::calc_slide_mesh(), blender::ed::sculpt_paint::boundary::calc_smooth_bmesh(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_smooth_grids(), blender::ed::sculpt_paint::boundary::calc_smooth_mesh(), blender::ed::sculpt_paint::filter::calc_sphere_filter(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_bmesh(), blender::ed::sculpt_paint::boundary::calc_twist_grids(), blender::ed::sculpt_paint::boundary::calc_twist_mesh(), clip_and_lock_translations(), clip_and_lock_translations(), blender::ed::sculpt_paint::cloth::do_simulation_step(), blender::ed::sculpt_paint::face_set::edit_fairing(), elastic_transform_node_bmesh(), elastic_transform_node_grids(), elastic_transform_node_mesh(), transform_node_bmesh(), transform_node_grids(), and transform_node_mesh().
|
static |
Definition at line 638 of file sculpt_transform.cc.
References b, and blender::ed::sculpt_paint::AveragePositionAccumulation::position.
Referenced by average_mask_border_position(), and average_unmasked_position().
|
static |
Definition at line 7132 of file sculpt.cc.
References copy_indices(), and indices.
Referenced by copy_indices(), and blender::ed::sculpt_paint::PositionDeformData::deform().
| OffsetIndices< int > blender::ed::sculpt_paint::create_node_vert_offsets | ( | const CCGKey & | key, |
| const Span< bke::pbvh::GridsNode > | nodes, | ||
| const IndexMask & | nodes_mask, | ||
| Array< int > & | node_data ) |
Definition at line 7306 of file sculpt.cc.
References create_node_vert_offsets(), blender::index_mask::IndexMask::foreach_index(), CCGKey::grid_area, pos, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::index_mask::IndexMask::size(), and size().
| OffsetIndices< int > blender::ed::sculpt_paint::create_node_vert_offsets | ( | const Span< bke::pbvh::MeshNode > | nodes, |
| const IndexMask & | nodes_mask, | ||
| Array< int > & | node_data ) |
Creates OffsetIndices based on each node's unique vertex count, allowing for easy slicing of a new array.
Definition at line 7296 of file sculpt.cc.
References create_node_vert_offsets(), blender::index_mask::IndexMask::foreach_index(), pos, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::index_mask::IndexMask::size(), and size().
Referenced by create_node_vert_offsets(), create_node_vert_offsets(), and blender::ed::sculpt_paint::mask::sculpt_mask_filter_exec().
| OffsetIndices< int > blender::ed::sculpt_paint::create_node_vert_offsets_bmesh | ( | const Span< bke::pbvh::BMeshNode > | nodes, |
| const IndexMask & | nodes_mask, | ||
| Array< int > & | node_data ) |
Definition at line 7318 of file sculpt.cc.
References BKE_pbvh_bmesh_node_unique_verts(), create_node_vert_offsets_bmesh(), blender::index_mask::IndexMask::foreach_index(), pos, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::index_mask::IndexMask::size(), and blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size().
Referenced by create_node_vert_offsets_bmesh(), and blender::ed::sculpt_paint::mask::sculpt_mask_filter_exec().
|
static |
Definition at line 1044 of file paint_cursor.cc.
References copy_v3_v3(), ED_view3d_project_v3(), imm_draw_circle_fill_3d(), and mul_m4_v3().
Referenced by cursor_draw_point_with_symmetry(), cursor_draw_tiling_preview(), paint_cursor_draw_3d_view_brush_cursor_inactive(), paint_cursor_pose_brush_origins_draw(), and paint_cursor_preview_boundary_data_pivot_draw().
|
static |
Definition at line 1110 of file paint_cursor.cc.
References cursor_draw_point_screen_space(), cursor_draw_tiling_preview(), ELEM, int, M_PI, mul_m4_v3(), Sculpt::radial_symm, rotate_m4(), SCULPT_mesh_symmetry_xyz_get(), symmetry_flip(), and unit_m4().
Referenced by paint_cursor_draw_3d_view_brush_cursor_inactive().
|
static |
Definition at line 1061 of file paint_cursor.cc.
References BKE_object_get_evaluated_mesh_no_subsurf(), BLI_assert, copy_v3_v3(), copy_v3_v3_int(), cursor_draw_point_screen_space(), Object::data, blender::Bounds< T >::max, blender::Bounds< T >::min, OB_MESH, Sculpt::paint, PAINT_TILE_X, Paint::symmetry_flags, Paint::tile_offset, and Object::type.
Referenced by cursor_draw_point_with_symmetry().
|
static |
Definition at line 141 of file paint_image_2d_curve_mask.cc.
References CurveMaskCache::curve_mask, CurveMaskCache::curve_mask_size, diameter_to_curve_mask_size(), and MEM_mallocN.
Referenced by paint_curve_mask_cache_update().
|
static |
Definition at line 135 of file paint_image_2d_curve_mask.cc.
References CurveMaskCache::curve_mask, CurveMaskCache::curve_mask_size, and MEM_SAFE_FREE.
Referenced by paint_curve_mask_cache_free_data(), and paint_curve_mask_cache_update().
|
static |
Definition at line 344 of file curves_sculpt_ops.cc.
References blender::ed::curves::curves_poll(), curves_sculptmode_toggle_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
|
static |
Definition at line 1037 of file paint_stroke.cc.
References CURVES_SCULPT_BRUSH_TYPE_ADD, CURVES_SCULPT_BRUSH_TYPE_DENSITY, and ELEM.
Referenced by paint_space_stroke_enabled().
| bool blender::ed::sculpt_paint::curves_sculpt_poll | ( | bContext * | C | ) |
Definition at line 62 of file curves_sculpt_ops.cc.
References CTX_data_active_object(), Object::mode, and OB_MODE_SCULPT_CURVES.
Referenced by curves_sculpt_poll_view3d().
| bool blender::ed::sculpt_paint::curves_sculpt_poll_view3d | ( | bContext * | C | ) |
Definition at line 68 of file curves_sculpt_ops.cc.
References CTX_wm_region_view3d(), and curves_sculpt_poll().
Referenced by curves_sculptmode_enter().
|
static |
Definition at line 281 of file curves_sculpt_ops.cc.
References BKE_paint_brushes_ensure(), BKE_paint_ensure(), BKE_paint_get_active_from_paintmode(), copy_v3_v3_uchar(), CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), CTX_wm_message_bus(), curves_sculpt_poll_view3d(), DEG_id_tag_update(), ED_paint_cursor_start(), Object::id, ID_RECALC_SYNC_TO_EVAL, Object::mode, NC_SCENE, ND_MODE, OB_MODE_SCULPT_CURVES, CurvesSculpt::paint, Paint::paint_cursor_col, PAINT_CURSOR_SCULPT_CURVES, paint_init_pivot(), SculptCurves, WM_event_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by curves_sculptmode_toggle_exec().
|
static |
Definition at line 309 of file curves_sculpt_ops.cc.
References CTX_data_active_object(), Object::mode, and OB_MODE_OBJECT.
Referenced by curves_sculptmode_toggle_exec().
|
static |
Definition at line 315 of file curves_sculpt_ops.cc.
References CTX_data_active_object(), CTX_wm_message_bus(), curves_sculptmode_enter(), curves_sculptmode_exit(), DEG_id_tag_update(), Object::id, ID_RECALC_SYNC_TO_EVAL, Object::mode, blender::ed::object::mode_compat_set(), NC_SCENE, ND_MODE, OB_MODE_SCULPT_CURVES, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, WM_event_add_notifier(), WM_msg_publish_rna_prop, and WM_toolsystem_update_from_context_view3d().
Referenced by CURVES_OT_sculptmode_toggle().
|
static |
Definition at line 125 of file paint_image_2d_curve_mask.cc.
Referenced by curve_mask_allocate(), and is_curve_mask_size_valid().
| void blender::ed::sculpt_paint::do_bmesh_topology_rake_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask, | ||
| const float | input_strength ) |
Definition at line 76 of file bmesh_topology_rake.cc.
References BKE_paint_brush_for_read(), SculptSession::cache, count, depsgraph, blender::math::dot(), blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::math::is_zero(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Tree::nodes(), blender::math::normalize(), Sculpt::paint, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::StrokeCache::pressure, blender::ed::sculpt_paint::StrokeCache::sculpt_normal_symm, blender::bke::pbvh::Tree::tag_positions_changed(), and blender::bke::pbvh::update_node_bounds_bmesh().
Referenced by do_brush_action().
|
static |
Definition at line 3022 of file sculpt.cc.
References blender::ed::sculpt_paint::StrokeCache::accum, blender::ed::sculpt_paint::face_set::active_face_set_get(), add_v3_v3(), blender::bke::pbvh::all_leaf_nodes(), blender::ed::sculpt_paint::StrokeCache::alt_smooth, blender::ed::sculpt_paint::StrokeCache::automasking, Brush::autosmooth_factor, UnifiedPaintSettings::average_stroke_accum, UnifiedPaintSettings::average_stroke_counter, BKE_brush_has_cube_tip(), BLI_assert, blender::ed::sculpt_paint::cloth::brush_affected_nodes_gather(), BRUSH_ANCHORED, BRUSH_DEFORM_TARGET_CLOTH_SIM, BRUSH_DIR_IN, BRUSH_INVERSE_SMOOTH_PRESSURE, BRUSH_INVERT_TO_SCRAPE_FILL, MTex::brush_map_mode, BRUSH_MASK_DRAW, BRUSH_MASK_SMOOTH, BRUSH_ORIGINAL_NORMAL, blender::ed::sculpt_paint::cloth::brush_simulation_create(), BRUSH_SMOOTH_DEFORM_LAPLACIAN, BRUSH_SMOOTH_DEFORM_SURFACE, blender::ed::sculpt_paint::cloth::brush_store_simulation_state(), brush_type_needs_original(), BRUSH_USE_COLOR_AS_DISPLACEMENT, brush_uses_topology_rake(), blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, blender::ed::sculpt_paint::auto_mask::cache_init(), blender::ed::sculpt_paint::StrokeCache::cloth_sim, copy_v3_v3(), Brush::deform_target, depsgraph, do_blob_brush(), do_bmesh_topology_rake_brush(), blender::ed::sculpt_paint::boundary::do_boundary_brush(), do_clay_brush(), do_clay_strips_brush(), do_clay_thumb_brush(), blender::ed::sculpt_paint::cloth::do_cloth_brush(), do_crease_brush(), do_displacement_eraser_brush(), do_displacement_smear_brush(), do_draw_brush(), do_draw_face_sets_brush(), do_draw_sharp_brush(), do_draw_vector_displacement_brush(), do_elastic_deform_brush(), do_enhance_details_brush(), do_fill_brush(), do_flatten_brush(), do_grab_brush(), do_gravity_brush(), do_inflate_brush(), do_layer_brush(), do_mask_brush(), do_multiplane_scrape_brush(), do_nudge_brush(), blender::ed::sculpt_paint::color::do_paint_brush(), do_pinch_brush(), blender::ed::sculpt_paint::pose::do_pose_brush(), do_relax_face_sets_brush(), do_rotate_brush(), do_scrape_brush(), blender::ed::sculpt_paint::cloth::do_simulation_step(), blender::ed::sculpt_paint::color::do_smear_brush(), do_smooth_brush(), do_smooth_mask_brush(), do_snake_hook_brush(), do_surface_smooth_brush(), do_thumb_brush(), do_topology_relax_brush(), do_topology_slide_brush(), ELEM, blender::ed::sculpt_paint::cloth::ensure_nodes_constraints(), Brush::falloff_shape, blender::ed::sculpt_paint::face_set::find_next_available_id(), Brush::flag, Brush::flag2, blender::ed::sculpt_paint::StrokeCache::invert, invert(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::index_mask::IndexMask::is_empty(), blender::ed::sculpt_paint::auto_mask::is_enabled(), UnifiedPaintSettings::last_stroke_valid, blender::ed::sculpt_paint::StrokeCache::location, blender::ed::sculpt_paint::StrokeCache::location_symm, M_SQRT2, Brush::mask_tool, Brush::mtex, MTEX_MAP_MODE_AREA, mul_m4_v3(), blender::ed::sculpt_paint::StrokeCache::paint_face_set, PAINT_FALLOFF_SHAPE_SPHERE, pbvh_gather_generic(), pbvh_gather_texpaint(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::StrokeCache::pen_flip, blender::ed::sculpt_paint::pose::pose_brush_init(), blender::ed::sculpt_paint::StrokeCache::pressure, push_undo_nodes(), Sculpt, Object::sculpt, sculpt_brush_needs_normal(), Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_BLOB, SCULPT_BRUSH_TYPE_BOUNDARY, SCULPT_BRUSH_TYPE_CLAY, SCULPT_BRUSH_TYPE_CLAY_STRIPS, SCULPT_BRUSH_TYPE_CLAY_THUMB, SCULPT_BRUSH_TYPE_CLOTH, SCULPT_BRUSH_TYPE_CREASE, SCULPT_BRUSH_TYPE_DISPLACEMENT_ERASER, SCULPT_BRUSH_TYPE_DISPLACEMENT_SMEAR, SCULPT_BRUSH_TYPE_DRAW, SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, SCULPT_BRUSH_TYPE_DRAW_SHARP, SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, SCULPT_BRUSH_TYPE_FILL, SCULPT_BRUSH_TYPE_FLATTEN, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_INFLATE, SCULPT_BRUSH_TYPE_LAYER, SCULPT_BRUSH_TYPE_MASK, SCULPT_BRUSH_TYPE_MULTIPLANE_SCRAPE, SCULPT_brush_type_needs_all_pbvh_nodes(), SCULPT_BRUSH_TYPE_NUDGE, SCULPT_BRUSH_TYPE_PAINT, SCULPT_BRUSH_TYPE_PINCH, SCULPT_BRUSH_TYPE_POSE, SCULPT_BRUSH_TYPE_ROTATE, SCULPT_BRUSH_TYPE_SCRAPE, SCULPT_BRUSH_TYPE_SLIDE_RELAX, SCULPT_BRUSH_TYPE_SMEAR, SCULPT_BRUSH_TYPE_SMOOTH, SCULPT_BRUSH_TYPE_SNAKE_HOOK, SCULPT_BRUSH_TYPE_THUMB, sculpt_needs_pbvh_pixels(), sculpt_pbvh_update_pixels(), SCULPT_stroke_is_first_brush_step(), SCULPT_stroke_is_main_symmetry_pass(), SCULPT_vertex_count_get(), blender::ed::sculpt_paint::cloth::sim_activate_nodes(), Brush::smooth_deform_type, blender::ed::sculpt_paint::StrokeCache::supports_gravity, blender::ed::sculpt_paint::StrokeCache::surface_smooth_laplacian_disp, Brush::topology_rake_factor, true, update_brush_local_mat(), and update_sculpt_normal().
Referenced by stroke_update_step().
| void blender::ed::sculpt_paint::do_clay_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 152 of file clay.cc.
References BKE_paint_brush_for_read(), BLI_ASSERT_UNIT_V3, blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, calc_brush_plane(), depsgraph, blender::ed::sculpt_paint::PositionDeformData::eval, fabsf, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), 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::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), plane_from_point_normal_v3(), SubdivCCG::positions, blender::ed::sculpt_paint::StrokeCache::scale, SCULPT_brush_plane_offset_get(), blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), 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_brush_action().
| void blender::ed::sculpt_paint::do_clay_strips_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 254 of file clay_strips.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, BRUSH_ORIGINAL_NORMAL, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, calc_area_normal(), calc_brush_plane(), blender::math::cross(), depsgraph, Brush::flag, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), blender::math::from_scale(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::MatBase< float, 4, 4 >::identity(), blender::math::invert(), blender::math::is_zero(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::MatBase< T, NumCol, NumRow, Alignment >::location(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), blender::math::normalize(), Sculpt::paint, blender::bke::object::pbvh_get(), plane_from_point_normal_v3(), SubdivCCG::positions, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::StrokeCache::scale, SCULPT_brush_plane_offset_get(), SCULPT_DISP_DIR_AREA, Brush::sculpt_plane, SCULPT_tilt_apply_to_normal(), blender::bke::pbvh::Tree::tag_positions_changed(), Brush::tilt_strength_factor, Brush::tip_scale_x, blender::bke::pbvh::Tree::type(), 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 do_brush_action().
| void blender::ed::sculpt_paint::do_clay_thumb_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 142 of file clay_thumb.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, BRUSH_ORIGINAL_NORMAL, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, calc_area_normal(), calc_brush_plane(), blender::ed::sculpt_paint::StrokeCache::clay_thumb_brush, clay_thumb_get_stabilized_pressure(), blender::math::cross(), DEG2RADF, depsgraph, Brush::flag, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), blender::math::from_scale(), blender::ed::sculpt_paint::StrokeCache::front_angle, blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::MatBase< float, 4, 4 >::identity(), invert_m4_m4(), 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, mul_m4_m4m4(), blender::bke::pbvh::Tree::nodes(), normalize_m4(), Sculpt::paint, blender::bke::object::pbvh_get(), plane_from_point_normal_v3(), SubdivCCG::positions, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::ed::sculpt_paint::StrokeCache::radius, rotate_v3_v3v3fl(), SCULPT_DISP_DIR_AREA, Brush::sculpt_plane, SCULPT_stroke_is_first_brush_step_of_symmetry_pass(), SCULPT_stroke_is_main_symmetry_pass(), blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), 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 do_brush_action().
| void blender::ed::sculpt_paint::do_displacement_eraser_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 81 of file multires_displacement_eraser.cc.
References BKE_paint_brush_for_read(), blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, depsgraph, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), SubdivCCG::grid_area, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), SubdivCCG::positions, blender::bke::pbvh::Tree::tag_positions_changed(), and blender::bke::pbvh::update_node_bounds_grids().
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::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 BKE_paint_brush_for_read(), BKE_subdiv_ccg_key_top_level(), blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, depsgraph, blender::ed::sculpt_paint::StrokeCache::displacement_smear, do_displacement_smear_brush(), blender::index_mask::IndexMask::foreach_index(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::ed::sculpt_paint::StrokeCache::limit_surface_co, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::ed::sculpt_paint::StrokeCache::prev_displacement, Object::sculpt, SculptSession::subdiv_ccg, and blender::bke::pbvh::Tree::tag_positions_changed().
Referenced by do_brush_action(), and do_displacement_smear_brush().
| void blender::ed::sculpt_paint::do_draw_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
A simple normal-direction displacement.
Definition at line 180 of file draw.cc.
References BKE_paint_brush_for_read(), blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, depsgraph, offset_positions(), Sculpt::paint, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::StrokeCache::scale, and SCULPT_tilt_effective_normal_get().
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::do_draw_face_sets_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 424 of file draw_face_sets.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, depsgraph, blender::bke::pbvh::Grids, blender::bke::pbvh::Mesh, Sculpt::paint, and blender::bke::object::pbvh_get().
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::do_draw_sharp_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 183 of file draw_sharp.cc.
References BKE_paint_brush_for_read(), blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, depsgraph, offset_positions(), Sculpt::paint, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::StrokeCache::scale, and SCULPT_tilt_effective_normal_get().
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::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 220 of file draw_vector_displacement.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, depsgraph, blender::ed::sculpt_paint::PositionDeformData::eval, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), SubdivCCG::positions, blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), 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_brush_action().
| void blender::ed::sculpt_paint::do_elastic_deform_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 207 of file elastic_deform.cc.
References BKE_kelvinlet_init_params(), BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, BRUSH_ELASTIC_DEFORM_TWIST, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, depsgraph, Brush::elastic_deform_type, Brush::elastic_deform_volume_preservation, ELEM, blender::ed::sculpt_paint::PositionDeformData::eval, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, 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::bke::pbvh::Tree::nodes(), blender::ed::sculpt_paint::StrokeCache::normal_weight, Sculpt::paint, params, blender::bke::object::pbvh_get(), SubdivCCG::positions, blender::ed::sculpt_paint::StrokeCache::radius, sculpt_project_v3_normal_align(), blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), and blender::bke::pbvh::update_node_bounds_mesh().
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::do_enhance_details_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 243 of file enhance_details.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, calc_smooth_translations(), depsgraph, blender::ed::sculpt_paint::StrokeCache::detail_directions, blender::ed::sculpt_paint::PositionDeformData::eval, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, node_fully_masked_or_hidden(), blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), SubdivCCG::positions, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), SCULPT_stroke_is_first_brush_step(), SCULPT_vertex_count_get(), blender::bke::pbvh::search_nodes(), blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), 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_brush_action().
| void blender::ed::sculpt_paint::do_fill_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 271 of file plane.cc.
References depsgraph, filter_above_plane_factors(), and verts.
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::do_grab_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 163 of file grab.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, depsgraph, blender::ed::sculpt_paint::PositionDeformData::eval, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), blender::ed::sculpt_paint::StrokeCache::normal_weight, Sculpt::paint, blender::bke::object::pbvh_get(), SubdivCCG::positions, sculpt_project_v3_normal_align(), blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), and blender::bke::pbvh::update_node_bounds_mesh().
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::do_gravity_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 211 of file draw.cc.
References SculptSession::cache, depsgraph, blender::ed::sculpt_paint::StrokeCache::gravity_direction_symm, Sculpt::gravity_factor, offset_positions(), blender::ed::sculpt_paint::StrokeCache::radius_squared, and blender::ed::sculpt_paint::StrokeCache::scale.
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::do_inflate_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 133 of file inflate.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, depsgraph, blender::ed::sculpt_paint::PositionDeformData::eval, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), SubdivCCG::positions, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::StrokeCache::scale, blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), 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_brush_action().
| void blender::ed::sculpt_paint::do_layer_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 350 of file editors/sculpt_paint/brushes/layer.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, BRUSH_PERSISTENT, SculptSession::cache, depsgraph, blender::ed::sculpt_paint::PositionDeformData::eval, Brush::flag, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::MutableSpan< T >::is_empty(), blender::Span< T >::is_empty(), blender::ed::sculpt_paint::StrokeCache::layer_displacement_factor, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), blender::bke::Point, SubdivCCG::positions, SCULPT_vertex_count_get(), blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), 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_brush_action().
| void blender::ed::sculpt_paint::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 205 of file editors/sculpt_paint/brushes/mask.cc.
References BKE_paint_brush_for_read(), BKE_subdiv_ccg_key_top_level(), SculptSession::bm, blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, CD_PROP_FLOAT, CustomData_get_offset_named(), depsgraph, blender::index_mask::IndexMask::foreach_index(), blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), 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::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), blender::bke::Point, SculptSession::subdiv_ccg, blender::bke::pbvh::Tree::tag_masks_changed(), blender::bke::pbvh::Tree::type(), BMesh::vdata, blender::bke::pbvh::vert_normals_eval(), and blender::bke::pbvh::vert_positions_eval().
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::do_multiplane_scrape_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 518 of file multiplane_scrape.cc.
References angle_v3v3(), BKE_paint_brush_for_read(), BRUSH_MULTIPLANE_SCRAPE_DYNAMIC, BRUSH_ORIGINAL_NORMAL, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, calc_area_normal(), calc_bmesh(), calc_brush_plane(), calc_faces(), calc_grids(), blender::math::cross(), DEG2RADF, depsgraph, do_multiplane_scrape_brush(), blender::math::dot(), Brush::flag, Brush::flag2, float, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, SubdivCCG::grid_area, blender::math::interpolate(), blender::math::invert(), is_zero_v3(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::MatBase< T, NumCol, NumRow, Alignment >::location(), blender::ed::sculpt_paint::StrokeCache::location_symm, blender::math::midpoint(), blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, mul_v3_mat3_m4v3(), blender::ed::sculpt_paint::StrokeCache::multiplane_scrape_angle, Brush::multiplane_scrape_angle, blender::bke::pbvh::Tree::nodes(), blender::math::normalize(), normalize_m4(), normalize_v3(), Sculpt::paint, plane_from_point_normal_v3(), SubdivCCG::positions, blender::ed::sculpt_paint::StrokeCache::pressure, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), RAD2DEGF, blender::ed::sculpt_paint::StrokeCache::radial_symmetry_pass, blender::ed::sculpt_paint::StrokeCache::radius, rotate_v3_v3v3fl(), sample, sample_surface(), blender::ed::sculpt_paint::StrokeCache::scale, SCULPT_brush_plane_offset_get(), SCULPT_DISP_DIR_AREA, Brush::sculpt_plane, SCULPT_stroke_is_first_brush_step_of_symmetry_pass(), blender::ed::sculpt_paint::StrokeCache::stroke_local_mat, blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), 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 do_brush_action(), and do_multiplane_scrape_brush().
| void blender::ed::sculpt_paint::do_nudge_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 197 of file draw.cc.
References blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, blender::math::cross(), depsgraph, blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, offset_positions(), and blender::ed::sculpt_paint::StrokeCache::sculpt_normal_symm.
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::do_pinch_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 175 of file pinch.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, calc_brush_plane(), blender::math::cross(), depsgraph, blender::ed::sculpt_paint::PositionDeformData::eval, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, 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::bke::pbvh::Tree::nodes(), blender::math::normalize(), normalize_m4(), Sculpt::paint, blender::bke::object::pbvh_get(), SubdivCCG::positions, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), SCULPT_stroke_is_first_brush_step_of_symmetry_pass(), blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), 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 do_brush_action().
|
static |
Definition at line 3481 of file sculpt.cc.
References SculptSession::cache, depsgraph, do_tiled(), M_PI, Sculpt::radial_symm, blender::ed::sculpt_paint::StrokeCache::radial_symmetry_pass, Object::sculpt, and SCULPT_cache_calc_brushdata_symm().
Referenced by do_symmetrical_brush_actions().
| void blender::ed::sculpt_paint::do_relax_face_sets_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 772 of file relax.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, depsgraph, blender::ed::sculpt_paint::boundary::ensure_boundary_info(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::StrokeCache::iteration_count, blender::bke::pbvh::Mesh, Sculpt::paint, blender::bke::object::pbvh_get(), and blender::bke::pbvh::Tree::type().
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::do_rotate_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 170 of file editors/sculpt_paint/brushes/rotate.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, SculptSession::cache, depsgraph, blender::ed::sculpt_paint::PositionDeformData::eval, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), 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::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), SubdivCCG::positions, blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), 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 do_brush_action().
| void blender::ed::sculpt_paint::do_scrape_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 293 of file plane.cc.
References depsgraph, filter_below_plane_factors(), and verts.
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::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 227 of file smooth.cc.
References BKE_paint_brush_for_read(), SculptSession::bm, BM_mesh_elem_index_ensure(), BM_mesh_elem_table_ensure(), BM_VERT, blender::bke::pbvh::BMesh, SculptVertexInfo::boundary, brush_strength(), depsgraph, blender::ed::sculpt_paint::boundary::ensure_boundary_info(), blender::index_mask::IndexMask::foreach_index(), blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), blender::bke::pbvh::update_bounds(), and SculptSession::vertex_info.
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::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 291 of file smooth_mask.cc.
References BKE_paint_brush_for_read(), SculptSession::bm, BM_mesh_elem_index_ensure(), BM_mesh_elem_table_ensure(), BM_VERT, blender::bke::pbvh::BMesh, brush_strength(), CD_PROP_FLOAT, CustomData_get_offset_named(), depsgraph, blender::ed::sculpt_paint::boundary::ensure_boundary_info(), blender::index_mask::IndexMask::foreach_index(), blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), SculptSession::subdiv_ccg, blender::bke::pbvh::Tree::tag_masks_changed(), blender::bke::pbvh::Tree::type(), blender::bke::pbvh::update_mask_bmesh(), blender::bke::pbvh::update_mask_grids(), and BMesh::vdata.
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::do_snake_hook_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 353 of file snake_hook.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, Brush::crease_pinch_factor, depsgraph, blender::ed::sculpt_paint::PositionDeformData::eval, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), blender::ed::sculpt_paint::StrokeCache::normal_weight, Sculpt::paint, blender::bke::object::pbvh_get(), SubdivCCG::positions, sculpt_project_v3_normal_align(), blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), 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_brush_action().
| void blender::ed::sculpt_paint::do_surface_smooth_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 381 of file surface_smooth.cc.
References BKE_paint_brush_for_read(), SculptSession::bm, BM_mesh_elem_index_ensure(), BM_VERT, blender::bke::pbvh::BMesh, SculptSession::cache, depsgraph, blender::bke::pbvh::Grids, blender::bke::pbvh::Mesh, Sculpt::paint, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::StrokeCache::surface_smooth_laplacian_disp, blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), and blender::bke::pbvh::update_bounds().
Referenced by do_brush_action().
|
static |
Definition at line 3518 of file sculpt.cc.
References BKE_paint_brush_for_read(), brush_strength(), blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, calc_symmetry_feather(), depsgraph, do_radial_symmetry(), do_tiled(), blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, Sculpt::paint, blender::ed::sculpt_paint::StrokeCache::radial_symmetry_pass, Object::sculpt, SCULPT_cache_calc_brushdata_symm(), SCULPT_is_symmetry_iteration_valid(), SCULPT_mesh_symmetry_xyz_get(), and blender::ed::sculpt_paint::StrokeCache::symmetry.
Referenced by stroke_update_step().
| void blender::ed::sculpt_paint::do_thumb_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 134 of file thumb.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, blender::math::cross(), depsgraph, blender::ed::sculpt_paint::PositionDeformData::eval, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), SubdivCCG::positions, blender::ed::sculpt_paint::StrokeCache::sculpt_normal_symm, blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), and blender::bke::pbvh::update_node_bounds_mesh().
Referenced by do_brush_action().
|
static |
Definition at line 3414 of file sculpt.cc.
References BKE_object_boundbox_get(), SculptSession::cache, copy_v3_v3(), copy_v3_v3_int(), depsgraph, blender::ed::sculpt_paint::StrokeCache::initial_location_symm, blender::ed::sculpt_paint::StrokeCache::location_symm, blender::Bounds< T >::max, blender::Bounds< T >::min, Sculpt::paint, PAINT_TILE_X, blender::ed::sculpt_paint::StrokeCache::plane_offset, blender::ed::sculpt_paint::StrokeCache::radius, Object::sculpt, Paint::symmetry_flags, Paint::tile_offset, and blender::ed::sculpt_paint::StrokeCache::tile_pass.
Referenced by do_radial_symmetry(), and do_symmetrical_brush_actions().
| void blender::ed::sculpt_paint::do_topology_relax_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 806 of file relax.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, depsgraph, blender::ed::sculpt_paint::boundary::ensure_boundary_info(), blender::bke::pbvh::Grids, blender::bke::pbvh::Mesh, Sculpt::paint, blender::bke::object::pbvh_get(), and SCULPT_stroke_is_first_brush_step_of_symmetry_pass().
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::do_topology_slide_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 269 of file topology_slide.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, SculptSession::cache, depsgraph, blender::ed::sculpt_paint::PositionDeformData::eval, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), SubdivCCG::positions, SCULPT_stroke_is_first_brush_step_of_symmetry_pass(), blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), and blender::bke::pbvh::update_node_bounds_mesh().
Referenced by do_brush_action().
| BLI_INLINE void blender::ed::sculpt_paint::draw_bezier_handle_lines | ( | uint | pos, |
| const float | sel_col[4], | ||
| BezTriple * | bez ) |
Definition at line 892 of file paint_cursor.cc.
References BezTriple::f1, BezTriple::f2, BezTriple::f3, GPU_line_width(), GPU_PRIM_LINE_STRIP, GPU_PRIM_LINES, immBegin(), immEnd(), immUniformColor4f(), immUniformColor4fv(), immVertex2fv(), pos, and BezTriple::vec.
Referenced by paint_draw_curve_cursor().
| BLI_INLINE void blender::ed::sculpt_paint::draw_rect_point | ( | uint | pos, |
| const float | sel_col[4], | ||
| const float | handle_col[4], | ||
| const float * | co, | ||
| float | width, | ||
| bool | selected ) |
Definition at line 867 of file paint_cursor.cc.
References GPU_line_width(), imm_draw_box_wire_2d(), immUniformColor4f(), immUniformColor4fv(), pos, and w().
Referenced by paint_draw_curve_cursor().
| BLI_INLINE void blender::ed::sculpt_paint::draw_tri_point | ( | uint | pos, |
| const float | sel_col[4], | ||
| const float | pivot_col[4], | ||
| float * | co, | ||
| float | width, | ||
| bool | selected ) |
Definition at line 833 of file paint_cursor.cc.
References GPU_line_width(), GPU_PRIM_LINE_LOOP, immBegin(), immEnd(), immUniformColor4f(), immUniformColor4fv(), immVertex2fv(), pos, and w().
Referenced by paint_draw_curve_cursor().
|
static |
Definition at line 2904 of file sculpt.cc.
References blender::ed::sculpt_paint::StrokeCache::accum, BKE_pbvh_bmesh_node_save_orig(), BKE_pbvh_node_mark_topology_update(), SculptSession::bm, SculptSession::bm_log, blender::bke::pbvh::bmesh_update_topology(), SculptVertexInfo::boundary, BRUSH_FRONTFACE, blender::ed::sculpt_paint::dyntopo::detail_size::brush_to_detail_size(), brush_type_needs_original(), SculptSession::cache, blender::bits::BitVector< InlineBufferCapacity, Allocator >::clear(), Sculpt::constant_detail, blender::ed::sculpt_paint::dyntopo::detail_size::constant_to_detail_size(), copy_v3_v3(), depsgraph, Sculpt::detail_percent, Sculpt::detail_size, blender::ed::sculpt_paint::StrokeCache::dyntopo_pixel_radius, blender::ed::sculpt_paint::dyntopo::detail_size::EDGE_LENGTH_MIN_FACTOR, Brush::falloff_shape, Brush::flag, Sculpt::flags, blender::index_mask::IndexMask::foreach_index(), blender::index_mask::IndexMask::is_empty(), blender::ed::sculpt_paint::StrokeCache::location, blender::ed::sculpt_paint::StrokeCache::location_symm, blender::ed::sculpt_paint::undo::Mask, mul_m4_v3(), blender::bke::pbvh::Tree::nodes(), PAINT_FALLOFF_SHAPE_SPHERE, PBVH_Collapse, pbvh_gather_generic(), blender::bke::object::pbvh_get(), PBVH_Subdivide, blender::ed::sculpt_paint::undo::Position, blender::ed::sculpt_paint::undo::push_nodes(), blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::dyntopo::detail_size::relative_to_detail_size(), Object::sculpt, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_MASK, SCULPT_BRUSH_TYPE_SIMPLIFY, SCULPT_DYNTOPO_COLLAPSE, SCULPT_DYNTOPO_DETAIL_BRUSH, SCULPT_DYNTOPO_DETAIL_CONSTANT, SCULPT_DYNTOPO_DETAIL_MANUAL, SCULPT_DYNTOPO_SUBDIVIDE, blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::tag_topology_changed(), true, SculptSession::vertex_info, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by stroke_update_step().
|
static |
Definition at line 423 of file sculpt_transform.cc.
References apply_kelvinet_to_translations(), apply_translations(), BKE_pbvh_bmesh_node_unique_verts(), SculptSession::bm, calc_transform_translations(), clip_and_lock_translations(), blender::ed::sculpt_paint::TransformLocalData::factors, gather_bmesh_positions(), params, blender::ed::sculpt_paint::TransformLocalData::positions, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), scale_factors(), scale_translations(), blender::ed::sculpt_paint::TransformLocalData::translations, and verts.
Referenced by transform_radius_elastic().
|
static |
Definition at line 392 of file sculpt_transform.cc.
References apply_kelvinet_to_translations(), apply_translations(), calc_transform_translations(), clip_and_lock_translations(), blender::ed::sculpt_paint::TransformLocalData::factors, gather_grids_positions(), params, blender::ed::sculpt_paint::TransformLocalData::positions, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), scale_factors(), scale_translations(), SculptSession::subdiv_ccg, and blender::ed::sculpt_paint::TransformLocalData::translations.
Referenced by transform_radius_elastic().
|
static |
Definition at line 360 of file sculpt_transform.cc.
References apply_kelvinet_to_translations(), calc_transform_translations(), clip_and_lock_translations(), blender::ed::sculpt_paint::PositionDeformData::deform(), blender::ed::sculpt_paint::PositionDeformData::eval, blender::ed::sculpt_paint::TransformLocalData::factors, gather_data_mesh(), blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::MeshAttributeData::mask, params, blender::ed::sculpt_paint::TransformLocalData::positions, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), scale_factors(), scale_translations(), blender::ed::sculpt_paint::TransformLocalData::translations, and verts.
Referenced by transform_radius_elastic().
Definition at line 578 of file sculpt_transform.cc.
References SculptSession::filter_cache, flush_update_done(), Position, blender::ed::sculpt_paint::undo::push_end(), and Object::sculpt.
|
static |
Definition at line 1215 of file grease_pencil_draw_ops.cc.
References blender::VectorSet< Key, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::bke::greasepencil::Layer::frames(), GP_TOOL_FLAG_RETAIN_LAST, GP_USE_MULTI_FRAME_EDITING, ToolSettings::gpencil_flags, blender::animrig::is_autokey_on(), and blender::bke::greasepencil::Layer::start_frame_at().
Referenced by grease_pencil_apply_fill().
Definition at line 353 of file sculpt_ops.cc.
References UnifiedPaintSettings::average_stroke_accum, UnifiedPaintSettings::average_stroke_counter, blender::bke::pbvh::bounds_get(), copy_v3_v3(), UnifiedPaintSettings::last_stroke_valid, blender::Bounds< T >::max, blender::math::midpoint(), blender::Bounds< T >::min, blender::bke::object::pbvh_get(), and blender::math::transform_point().
Referenced by blender::ed::sculpt_paint::vwpaint::init_session(), and object_sculpt_mode_enter().
|
static |
Definition at line 5504 of file sculpt.cc.
References SculptFakeNeighbors::current_max_distance, SculptFakeNeighbors::fake_neighbor_index, fake_neighbor_init(), FAKE_NEIGHBOR_NONE, SculptSession::fake_neighbors, and SCULPT_vertex_count_get().
Referenced by fake_neighbor_init().
|
static |
Definition at line 5620 of file sculpt.cc.
References BKE_subdiv_ccg_key_top_level(), bm, SculptSession::bm, BM_vert_at_index(), BMVert::co, Object::data, depsgraph, FAKE_NEIGHBOR_NONE, fake_neighbor_search(), fake_neighbor_search_bmesh(), fake_neighbor_search_grids(), fake_neighbor_search_mesh(), SubdivCCG::grid_hidden, blender::index_mask::IndexMask::index_range(), blender::Span< T >::index_range(), blender::index_mask::IndexMask::is_empty(), node_in_sphere(), blender::bke::pbvh::Tree::nodes(), SubdivCCG::positions, Object::sculpt, blender::index_mask::IndexMask::slice(), SculptSession::subdiv_ccg, BMesh::totvert, and blender::bke::pbvh::Tree::type().
Referenced by fake_neighbor_search().
|
static |
Definition at line 5592 of file sculpt.cc.
References BKE_pbvh_bmesh_node_unique_verts(), BM_elem_flag_test, BM_ELEM_HIDDEN, BM_elem_index_get, blender::ed::sculpt_paint::NearestVertData::distance_sq, blender::math::distance_squared(), SculptFakeNeighbors::fake_neighbor_index, FAKE_NEIGHBOR_NONE, fake_neighbor_search_bmesh(), SculptSession::fake_neighbors, and blender::ed::sculpt_paint::NearestVertData::vert.
Referenced by fake_neighbor_search(), and fake_neighbor_search_bmesh().
|
static |
Definition at line 5563 of file sculpt.cc.
References BKE_subdiv_ccg_foreach_visible_grid_vert(), blender::ed::sculpt_paint::NearestVertData::distance_sq, blender::math::distance_squared(), SculptFakeNeighbors::fake_neighbor_index, FAKE_NEIGHBOR_NONE, fake_neighbor_search_grids(), SculptSession::fake_neighbors, and blender::ed::sculpt_paint::NearestVertData::vert.
Referenced by fake_neighbor_search(), and fake_neighbor_search_grids().
|
static |
Definition at line 5536 of file sculpt.cc.
References blender::ed::sculpt_paint::NearestVertData::distance_sq, blender::math::distance_squared(), SculptFakeNeighbors::fake_neighbor_index, FAKE_NEIGHBOR_NONE, fake_neighbor_search_mesh(), SculptSession::fake_neighbors, blender::Span< T >::is_empty(), and blender::ed::sculpt_paint::NearestVertData::vert.
Referenced by fake_neighbor_search(), and fake_neighbor_search_mesh().
|
static |
Definition at line 2246 of file paint_vertex.cc.
References BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_ALL, BKE_mesh_from_object(), DEG_id_tag_update(), fill_mesh_color(), ID_RECALC_SYNC_TO_EVAL, ME_EDIT_PAINT_FACE_SEL, and ME_EDIT_PAINT_VERT_SEL.
Referenced by object_active_color_fill(), and vertex_color_set_exec().
|
static |
Definition at line 2130 of file paint_vertex.cc.
References bm, BM_ELEM_CD_GET_VOID_P, BM_elem_flag_test, BM_ELEM_SELECT, BM_FACES_OF_MESH, BM_ITER_MESH, l, BMFace::l_first, BMLoop::next, and BMLoop::v.
Referenced by fill_mesh_color().
| void blender::ed::sculpt_paint::fill_factor_from_hide | ( | const Set< BMVert *, 0 > & | verts, |
| MutableSpan< float > | r_factors ) |
Definition at line 6479 of file sculpt.cc.
References BLI_assert, BM_elem_flag_test_bool, BM_ELEM_HIDDEN, fill_factor_from_hide(), blender::MutableSpan< T >::size(), and verts.
| void blender::ed::sculpt_paint::fill_factor_from_hide | ( | const SubdivCCG & | subdiv_ccg, |
| Span< int > | grids, | ||
| MutableSpan< float > | r_factors ) |
Definition at line 6458 of file sculpt.cc.
References BKE_subdiv_ccg_key_top_level(), BLI_assert, blender::MutableSpan< T >::fill(), fill_factor_from_hide(), CCGKey::grid_area, SubdivCCG::grid_hidden, blender::Span< T >::index_range(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), blender::MutableSpan< T >::size(), and blender::Span< T >::size().
| void blender::ed::sculpt_paint::fill_factor_from_hide | ( | Span< bool > | hide_vert, |
| Span< int > | verts, | ||
| MutableSpan< float > | r_factors ) |
Calculate initial influence factors based on vertex visibility.
Definition at line 6442 of file sculpt.cc.
References BLI_assert, blender::MutableSpan< T >::fill(), fill_factor_from_hide(), blender::Span< T >::is_empty(), blender::MutableSpan< T >::size(), and verts.
Referenced by blender::ed::sculpt_paint::mask::apply_mask_bmesh(), blender::ed::sculpt_paint::mask::apply_mask_grids(), blender::ed::sculpt_paint::mask::apply_mask_mesh(), blender::ed::sculpt_paint::color::do_sample_wet_paint_task(), do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), do_wpaint_brush_blur(), do_wpaint_brush_draw(), do_wpaint_brush_smear(), fill_factor_from_hide(), fill_factor_from_hide(), fill_factor_from_hide(), and vpaint_do_draw().
| void blender::ed::sculpt_paint::fill_factor_from_hide_and_mask | ( | const BMesh & | bm, |
| const Set< BMVert *, 0 > & | verts, | ||
| MutableSpan< float > | r_factors ) |
Definition at line 6515 of file sculpt.cc.
References BLI_assert, bm, BM_ELEM_CD_GET_FLOAT, BM_elem_flag_test, BM_ELEM_HIDDEN, CD_PROP_FLOAT, CustomData_get_offset_named(), fill_factor_from_hide_and_mask(), blender::MutableSpan< T >::size(), BMesh::vdata, and verts.
| void blender::ed::sculpt_paint::fill_factor_from_hide_and_mask | ( | const SubdivCCG & | subdiv_ccg, |
| Span< int > | grids, | ||
| MutableSpan< float > | r_factors ) |
Definition at line 6533 of file sculpt.cc.
References BKE_subdiv_ccg_key_top_level(), BLI_assert, blender::MutableSpan< T >::fill(), fill_factor_from_hide_and_mask(), CCGKey::grid_area, SubdivCCG::grid_hidden, blender::MutableSpan< T >::index_range(), blender::Span< T >::index_range(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), SubdivCCG::masks, blender::MutableSpan< T >::size(), blender::Span< T >::size(), blender::MutableSpan< T >::slice(), and blender::Span< T >::slice().
| void blender::ed::sculpt_paint::fill_factor_from_hide_and_mask | ( | Span< bool > | hide_vert, |
| Span< float > | mask, | ||
| Span< int > | verts, | ||
| MutableSpan< float > | r_factors ) |
Calculate initial influence factors based on vertex visibility and masking.
Definition at line 6490 of file sculpt.cc.
References BLI_assert, blender::MutableSpan< T >::fill(), fill_factor_from_hide_and_mask(), blender::Span< T >::is_empty(), blender::MutableSpan< T >::size(), and verts.
Referenced by calc_bmesh(), calc_faces(), calc_factors_common_bmesh(), calc_factors_common_from_orig_data_bmesh(), calc_factors_common_from_orig_data_grids(), calc_factors_common_from_orig_data_mesh(), calc_factors_common_grids(), calc_factors_common_mesh(), calc_factors_common_mesh_indexed(), calc_grids(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::color::do_smear_brush_task(), fill_factor_from_hide_and_mask(), fill_factor_from_hide_and_mask(), and fill_factor_from_hide_and_mask().
|
static |
Definition at line 2197 of file paint_vertex.cc.
References BKE_attribute_domain(), BKE_id_attributes_color_find(), bm, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, fill_bm_face_or_corner_attribute(), fill_mesh_face_or_corner_attribute(), and AttributeOwner::from_id().
Referenced by fill_active_color().
|
static |
Definition at line 2154 of file paint_vertex.cc.
References BKE_mesh_tessface_clear(), blender::bke::Face, blender::Span< T >::is_empty(), and blender::bke::Point.
Referenced by fill_mesh_color().
| void blender::ed::sculpt_paint::filter_above_plane_factors | ( | Span< float3 > | positions, |
| const float4 & | plane, | ||
| MutableSpan< float > | factors ) |
Definition at line 7569 of file sculpt.cc.
References filter_above_plane_factors(), and plane_point_side_v3().
| void blender::ed::sculpt_paint::filter_above_plane_factors | ( | Span< float3 > | vert_positions, |
| Span< int > | verts, | ||
| const float4 & | plane, | ||
| MutableSpan< float > | factors ) |
Definition at line 7557 of file sculpt.cc.
References filter_above_plane_factors(), plane_point_side_v3(), and verts.
Referenced by do_fill_brush(), filter_above_plane_factors(), and filter_above_plane_factors().
| void blender::ed::sculpt_paint::filter_below_plane_factors | ( | Span< float3 > | positions, |
| const float4 & | plane, | ||
| MutableSpan< float > | factors ) |
Definition at line 7546 of file sculpt.cc.
References filter_below_plane_factors(), and plane_point_side_v3().
| void blender::ed::sculpt_paint::filter_below_plane_factors | ( | Span< float3 > | vert_positions, |
| Span< int > | verts, | ||
| const float4 & | plane, | ||
| MutableSpan< float > | factors ) |
Ignore points below the plane.
Definition at line 7534 of file sculpt.cc.
References filter_below_plane_factors(), plane_point_side_v3(), and verts.
Referenced by do_scrape_brush(), filter_below_plane_factors(), and filter_below_plane_factors().
| void blender::ed::sculpt_paint::filter_distances_with_radius | ( | float | radius, |
| Span< float > | distances, | ||
| MutableSpan< float > | factors ) |
Set the factor to zero for all distances greater than the radius.
Definition at line 6772 of file sculpt.cc.
References filter_distances_with_radius(), and blender::Span< T >::index_range().
Referenced by calc_bmesh(), calc_faces(), calc_factors_common_bmesh(), calc_factors_common_from_orig_data_bmesh(), calc_factors_common_from_orig_data_grids(), calc_factors_common_from_orig_data_mesh(), calc_factors_common_grids(), calc_factors_common_mesh(), calc_factors_common_mesh_indexed(), calc_grids(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::paint::image::do_paint_pixels(), blender::ed::sculpt_paint::color::do_sample_wet_paint_task(), blender::ed::sculpt_paint::color::do_smear_brush_task(), do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), do_wpaint_brush_blur(), do_wpaint_brush_draw(), do_wpaint_brush_smear(), filter_distances_with_radius(), sample_node_surface_bmesh(), sample_node_surface_grids(), sample_node_surface_mesh(), and vpaint_do_draw().
|
static |
Definition at line 69 of file multiplane_scrape.cc.
References BLI_assert, blender::Span< T >::index_range(), plane_point_side_v3(), blender::MutableSpan< T >::size(), and blender::Span< T >::size().
Referenced by calc_bmesh(), calc_faces(), and calc_grids().
| void blender::ed::sculpt_paint::filter_plane_trim_limit_factors | ( | const Brush & | brush, |
| const StrokeCache & | cache, | ||
| Span< float3 > | translations, | ||
| MutableSpan< float > | factors ) |
Ignore points that fall below the "plane trim" threshold for the brush.
Definition at line 7518 of file sculpt.cc.
References BRUSH_PLANE_TRIM, filter_plane_trim_limit_factors(), Brush::flag, blender::Span< T >::index_range(), blender::math::length_squared(), blender::ed::sculpt_paint::StrokeCache::plane_trim_squared, and blender::ed::sculpt_paint::StrokeCache::radius_squared.
Referenced by calc_bmesh(), calc_faces(), calc_grids(), and filter_plane_trim_limit_factors().
| void blender::ed::sculpt_paint::filter_region_clip_factors | ( | const SculptSession & | ss, |
| Span< float3 > | positions, | ||
| MutableSpan< float > | factors ) |
Definition at line 6667 of file sculpt.cc.
References BLI_assert, SculptSession::cache, ED_view3d_clipping_test(), filter_region_clip_factors(), blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, blender::ed::sculpt_paint::StrokeCache::radial_symmetry_pass, SculptSession::rv3d, ViewContext::rv3d, RV3D_CLIPPING_ENABLED, blender::MutableSpan< T >::size(), blender::ed::sculpt_paint::StrokeCache::symm_rot_mat_inv, symmetry_flip(), blender::math::transform_point(), SculptSession::v3d, ViewContext::v3d, and blender::ed::sculpt_paint::StrokeCache::vc.
| void blender::ed::sculpt_paint::filter_region_clip_factors | ( | const SculptSession & | ss, |
| Span< float3 > | vert_positions, | ||
| Span< int > | verts, | ||
| MutableSpan< float > | factors ) |
When the 3D view's clipping planes are enabled, brushes shouldn't have any effect on vertices outside of the planes, because they're not visible. This function disables the factors for those vertices.
Definition at line 6639 of file sculpt.cc.
References BLI_assert, SculptSession::cache, ED_view3d_clipping_test(), filter_region_clip_factors(), blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, blender::ed::sculpt_paint::StrokeCache::radial_symmetry_pass, SculptSession::rv3d, ViewContext::rv3d, RV3D_CLIPPING_ENABLED, blender::MutableSpan< T >::size(), blender::ed::sculpt_paint::StrokeCache::symm_rot_mat_inv, symmetry_flip(), blender::math::transform_point(), SculptSession::v3d, ViewContext::v3d, blender::ed::sculpt_paint::StrokeCache::vc, and verts.
Referenced by calc_bmesh(), calc_faces(), calc_factors_common_bmesh(), calc_factors_common_from_orig_data_bmesh(), calc_factors_common_from_orig_data_grids(), calc_factors_common_from_orig_data_mesh(), calc_factors_common_grids(), calc_factors_common_mesh(), calc_factors_common_mesh_indexed(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), calc_grids(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::color::do_smear_brush_task(), filter_region_clip_factors(), filter_region_clip_factors(), sample_node_surface_bmesh(), sample_node_surface_grids(), and sample_node_surface_mesh().
|
static |
Definition at line 173 of file sculpt_transform.cc.
References PAINT_SYMM_X, PAINT_SYMM_Y, PAINT_SYMM_Z, transform_mirror_max_distance_eps, and z().
Referenced by transform_node_bmesh(), transform_node_grids(), and transform_node_mesh().
| void blender::ed::sculpt_paint::filter_verts_outside_symmetry_area | ( | Span< float3 > | positions, |
| const float3 & | pivot, | ||
| ePaintSymmetryFlags | symm, | ||
| MutableSpan< float > | factors ) |
Ignores verts outside of a symmetric area defined by a pivot point.
Definition at line 7504 of file sculpt.cc.
References BLI_assert, filter_verts_outside_symmetry_area(), SCULPT_check_vertex_pivot_symmetry(), and blender::MutableSpan< T >::size().
Referenced by blender::ed::sculpt_paint::boundary::calc_bend_bmesh(), blender::ed::sculpt_paint::boundary::calc_bend_grids(), blender::ed::sculpt_paint::boundary::calc_bend_mesh(), blender::ed::sculpt_paint::boundary::calc_grab_bmesh(), blender::ed::sculpt_paint::boundary::calc_grab_grids(), blender::ed::sculpt_paint::boundary::calc_grab_mesh(), blender::ed::sculpt_paint::boundary::calc_inflate_bmesh(), blender::ed::sculpt_paint::boundary::calc_inflate_grids(), blender::ed::sculpt_paint::boundary::calc_inflate_mesh(), blender::ed::sculpt_paint::boundary::calc_slide_bmesh(), blender::ed::sculpt_paint::boundary::calc_slide_grids(), blender::ed::sculpt_paint::boundary::calc_slide_mesh(), blender::ed::sculpt_paint::boundary::calc_smooth_bmesh(), blender::ed::sculpt_paint::boundary::calc_smooth_grids(), blender::ed::sculpt_paint::boundary::calc_smooth_mesh(), blender::ed::sculpt_paint::boundary::calc_twist_bmesh(), blender::ed::sculpt_paint::boundary::calc_twist_grids(), blender::ed::sculpt_paint::boundary::calc_twist_mesh(), and filter_verts_outside_symmetry_area().
|
static |
Determine the 3D position of a brush based on curve segments under a screen position.
Definition at line 51 of file curves_sculpt_brush.cc.
References b, closest_to_line_segment_v2(), closest_to_line_segment_v3(), blender::ed::sculpt_paint::BrushPositionCandidate::depth_sq_cu, blender::ed::sculpt_paint::BrushPositionCandidate::distance_sq_re, blender::math::distance_squared(), ED_view3d_ob_project_mat_get(), ED_view3d_project_float_v2_m4(), FLT_MAX, init(), blender::math::interpolate(), blender::threading::parallel_reduce(), blender::ed::sculpt_paint::BrushPositionCandidate::position_cu, pow2f(), and UI_UNIT_X.
Referenced by sample_curves_3d_brush().
| Vector< int > blender::ed::sculpt_paint::find_symm_verts | ( | const Depsgraph & | depsgraph, |
| const Object & | object, | ||
| const int | original_vert, | ||
| const float | max_distance ) |
Definition at line 659 of file sculpt_expand.cc.
References BLI_assert_unreachable, blender::bke::pbvh::BMesh, depsgraph, find_symm_verts_bmesh(), find_symm_verts_grids(), find_symm_verts_mesh(), blender::bke::pbvh::Grids, blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), and blender::bke::pbvh::Tree::type().
Referenced by blender::ed::sculpt_paint::expand::boundary_topology_falloff_create(), blender::ed::sculpt_paint::expand::diagonals_falloff_create(), blender::ed::sculpt_paint::expand::find_active_connected_components_from_vert(), blender::ed::sculpt_paint::expand::geodesic_falloff_create(), blender::ed::sculpt_paint::expand::normals_falloff_create(), blender::ed::sculpt_paint::expand::spherical_falloff_create(), and blender::ed::sculpt_paint::expand::topology_falloff_create().
| Vector< int > blender::ed::sculpt_paint::find_symm_verts_bmesh | ( | const Object & | object, |
| const int | original_vert, | ||
| const float | max_distance ) |
Definition at line 627 of file sculpt_expand.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), bm, SculptSession::bm, BM_elem_index_get, BM_vert_at_index(), BMVert::co, blender::Vector< T, InlineBufferCapacity, Allocator >::end(), nearest_vert_calc_bmesh(), blender::bke::object::pbvh_get(), SCULPT_is_symmetry_iteration_valid(), SCULPT_mesh_symmetry_xyz_get(), and symmetry_flip().
Referenced by blender::ed::sculpt_paint::pose::calc_pose_origin_and_factor_bmesh(), blender::ed::sculpt_paint::auto_mask::fill_topology_automasking_factors_bmesh(), find_symm_verts(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_bmesh(), and blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_bmesh().
| Vector< int > blender::ed::sculpt_paint::find_symm_verts_grids | ( | const Object & | object, |
| const int | original_vert, | ||
| const float | max_distance ) |
Definition at line 594 of file sculpt_expand.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), BKE_subdiv_ccg_key_top_level(), blender::Vector< T, InlineBufferCapacity, Allocator >::end(), nearest_vert_calc_grids(), blender::bke::object::pbvh_get(), SubdivCCG::positions, SCULPT_is_symmetry_iteration_valid(), SCULPT_mesh_symmetry_xyz_get(), SculptSession::subdiv_ccg, and symmetry_flip().
Referenced by blender::ed::sculpt_paint::pose::calc_pose_origin_and_factor_grids(), blender::ed::sculpt_paint::auto_mask::fill_topology_automasking_factors_grids(), find_symm_verts(), and blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_grids().
| Vector< int > blender::ed::sculpt_paint::find_symm_verts_mesh | ( | const Depsgraph & | depsgraph, |
| const Object & | object, | ||
| int | original_vert, | ||
| float | max_distance = std::numeric_limits< float >::max() ) |
Utility functions to get the closest vertices after flipping an original vertex position for all symmetry passes. The returned vector is sorted.
Definition at line 559 of file sculpt_expand.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), depsgraph, blender::Vector< T, InlineBufferCapacity, Allocator >::end(), nearest_vert_calc_mesh(), blender::bke::object::pbvh_get(), blender::bke::Point, SCULPT_is_symmetry_iteration_valid(), SCULPT_mesh_symmetry_xyz_get(), symmetry_flip(), and blender::bke::pbvh::vert_positions_eval().
Referenced by blender::ed::sculpt_paint::pose::calc_pose_origin_and_factor_mesh(), blender::ed::sculpt_paint::auto_mask::fill_topology_automasking_factors_mesh(), find_symm_verts(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_mesh(), and blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_mesh().
| bke::SpanAttributeWriter< float > blender::ed::sculpt_paint::float_selection_ensure | ( | Curves & | curves_id | ) |
Definition at line 11 of file curves_sculpt_selection.cc.
References CD_PROP_BOOL, CD_PROP_FLOAT, Curves::geometry, blender::VArrayCommon< T >::materialize(), MEM_malloc_arrayN, and Curves::selection_domain.
Referenced by blender::ed::sculpt_paint::SelectionPaintOperationExecutor::execute(), blender::ed::sculpt_paint::select_grow::select_grow_update(), and blender::ed::sculpt_paint::select_random::select_random_exec().
| void blender::ed::sculpt_paint::flush_update_done | ( | const bContext * | C, |
| Object & | ob, | ||
| UpdateType | update_type ) |
Triggers redraws, updates, and dependency graph tags as necessary when a brush stroke finishes.
Definition at line 5055 of file sculpt.cc.
References BKE_pbvh_bmesh_after_stroke(), BKE_sculptsession_use_pbvh_draw(), SculptSession::bm, CTX_wm_manager(), CTX_wm_region_view3d(), Object::data, DEG_id_tag_update(), ED_area_tag_redraw_regiontype(), ED_region_tag_redraw(), flush_update_done(), Object::id, ID_REAL_USERS, ID_RECALC_GEOMETRY, LISTBASE_FOREACH, RegionView3D::rflag, RGN_TYPE_WINDOW, Object::sculpt, SCULPT_fake_neighbors_free(), SPACE_IMAGE, SPACE_VIEW3D, SpaceLink::spacetype, blender::bke::pbvh::Tree::type(), wmWindowManager::windows, and WM_window_get_active_screen().
Referenced by blender::ed::sculpt_paint::face_set::edit_modify_coordinates(), end_transform(), blender::ed::sculpt_paint::expand::finish(), flush_update_done(), blender::ed::sculpt_paint::project::gesture_end(), blender::ed::sculpt_paint::mask::mask_by_color_invoke(), blender::ed::sculpt_paint::mask::mask_from_boundary_exec(), blender::ed::sculpt_paint::mask::mask_from_cavity_exec(), blender::ed::sculpt_paint::expand::restore_original_state(), blender::ed::sculpt_paint::cloth::sculpt_cloth_filter_modal(), blender::ed::sculpt_paint::color::sculpt_color_filter_end(), blender::ed::sculpt_paint::mask::sculpt_mask_filter_exec(), blender::ed::sculpt_paint::filter::sculpt_mesh_filter_end(), and stroke_done().
| void blender::ed::sculpt_paint::flush_update_step | ( | bContext * | C, |
| UpdateType | update_type ) |
Triggers redraws, updates, and dependency graph tags as necessary after each brush calculation.
Definition at line 4960 of file sculpt.cc.
References BKE_sculptsession_use_pbvh_draw(), SculptSession::cache, CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_wm_region(), CTX_wm_region_view3d(), blender::ed::sculpt_paint::StrokeCache::current_r, Object::data, DEG_id_tag_update(), depsgraph, ED_region_tag_redraw(), ED_region_tag_redraw_partial(), extend_redraw_rect_previous(), flush_update_step(), Object::id, ID_RECALC_GEOMETRY, ID_RECALC_SHADING, SculptSession::modifier, SculptSession::multires, MULTIRES_COORDS_MODIFIED, multires_mark_as_modified(), RegionView3D::rflag, Object::runtime, RV3D_PAINTING, Object::sculpt, SCULPT_get_redraw_rect(), SculptSession::shapekey_active, blender::bke::pbvh::Tree::type(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by blender::ed::sculpt_paint::face_set::edit_modify_coordinates(), flush_update_step(), blender::ed::sculpt_paint::project::gesture_end(), blender::ed::sculpt_paint::expand::restore_original_state(), blender::ed::sculpt_paint::cloth::sculpt_cloth_filter_modal(), blender::ed::sculpt_paint::color::sculpt_color_filter_apply(), blender::ed::sculpt_paint::mask::sculpt_mask_filter_exec(), blender::ed::sculpt_paint::filter::sculpt_mesh_filter_apply(), stroke_update_step(), blender::ed::sculpt_paint::expand::update_for_vert(), and update_modal_transform().
| void blender::ed::sculpt_paint::gather_bmesh_normals | ( | const Set< BMVert *, 0 > & | verts, |
| MutableSpan< float3 > | normals ) |
Definition at line 6072 of file sculpt.cc.
References gather_bmesh_normals(), and verts.
Referenced by blender::ed::sculpt_paint::cloth::apply_filter_forces_bmesh(), blender::ed::sculpt_paint::project::apply_projection_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), gather_bmesh_normals(), and sample_node_surface_bmesh().
| void blender::ed::sculpt_paint::gather_bmesh_positions | ( | const Set< BMVert *, 0 > & | verts, |
| MutableSpan< float3 > | positions ) |
Definition at line 6054 of file sculpt.cc.
References BLI_assert, gather_bmesh_positions(), and verts.
Referenced by blender::ed::sculpt_paint::cloth::apply_filter_forces_bmesh(), blender::ed::sculpt_paint::project::apply_projection_bmesh(), calc_area_normal_and_center_node_bmesh(), blender::ed::sculpt_paint::boundary::calc_bend_bmesh(), calc_bmesh(), blender::ed::sculpt_paint::pose::calc_bmesh(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::boundary::calc_grab_bmesh(), blender::ed::sculpt_paint::boundary::calc_inflate_bmesh(), blender::ed::sculpt_paint::filter::calc_inflate_filter(), blender::ed::sculpt_paint::filter::calc_random_filter(), blender::ed::sculpt_paint::filter::calc_relax_face_sets_filter(), blender::ed::sculpt_paint::filter::calc_relax_filter(), blender::ed::sculpt_paint::filter::calc_scale_filter(), blender::ed::sculpt_paint::filter::calc_sharpen_filter(), blender::ed::sculpt_paint::boundary::calc_slide_bmesh(), blender::ed::sculpt_paint::boundary::calc_smooth_bmesh(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), blender::ed::sculpt_paint::filter::calc_sphere_filter(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_bmesh(), elastic_transform_node_bmesh(), gather_bmesh_positions(), gather_bmesh_positions(), and sample_node_surface_bmesh().
|
inline |
Definition at line 141 of file mesh_brush_common.hh.
References gather_bmesh_positions(), and verts.
| MutableSpan< T > blender::ed::sculpt_paint::gather_data_bmesh | ( | const Span< T > | src, |
| const Set< BMVert *, 0 > & | verts, | ||
| Vector< T > & | dst ) |
Definition at line 113 of file mesh_brush_common.hh.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), gather_data_bmesh(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), and verts.
| void blender::ed::sculpt_paint::gather_data_bmesh | ( | Span< T > | src, |
| const Set< BMVert *, 0 > & | verts, | ||
| MutableSpan< T > | node_data ) |
Definition at line 6108 of file sculpt.cc.
References BLI_assert, BM_elem_index_get, gather_data_bmesh(), blender::MutableSpan< T >::size(), and verts.
Referenced by blender::ed::sculpt_paint::boundary::calc_bend_bmesh(), blender::ed::sculpt_paint::pose::calc_bmesh(), blender::ed::sculpt_paint::cloth::calc_constraint_factors(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), blender::ed::sculpt_paint::boundary::calc_grab_bmesh(), blender::ed::sculpt_paint::boundary::calc_inflate_bmesh(), blender::ed::sculpt_paint::filter::calc_sharpen_filter(), blender::ed::sculpt_paint::boundary::calc_slide_bmesh(), blender::ed::sculpt_paint::boundary::calc_smooth_bmesh(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_bmesh(), gather_data_bmesh(), and gather_data_bmesh().
| template void blender::ed::sculpt_paint::gather_data_bmesh< float > | ( | Span< float > | , |
| const Set< BMVert *, 0 > & | , | ||
| MutableSpan< float > | ) |
| template void blender::ed::sculpt_paint::gather_data_bmesh< float3 > | ( | Span< float3 > | , |
| const Set< BMVert *, 0 > & | , | ||
| MutableSpan< float3 > | ) |
| template void blender::ed::sculpt_paint::gather_data_bmesh< int > | ( | Span< int > | , |
| const Set< BMVert *, 0 > & | , | ||
| MutableSpan< int > | ) |
| MutableSpan< T > blender::ed::sculpt_paint::gather_data_grids | ( | const SubdivCCG & | subdiv_ccg, |
| const Span< T > | src, | ||
| const Span< int > | grids, | ||
| Vector< T > & | dst ) |
Definition at line 99 of file mesh_brush_common.hh.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), BKE_subdiv_ccg_key_top_level(), gather_data_grids(), CCGKey::grid_area, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), and blender::Span< T >::size().
| void blender::ed::sculpt_paint::gather_data_grids | ( | const SubdivCCG & | subdiv_ccg, |
| Span< T > | src, | ||
| Span< int > | grids, | ||
| MutableSpan< T > | node_data ) |
Definition at line 6092 of file sculpt.cc.
References BKE_subdiv_ccg_key_top_level(), BLI_assert, blender::MutableSpan< T >::copy_from(), gather_data_grids(), CCGKey::grid_area, blender::Span< T >::index_range(), blender::MutableSpan< T >::size(), blender::Span< T >::size(), blender::MutableSpan< T >::slice(), and blender::Span< T >::slice().
Referenced by blender::ed::sculpt_paint::boundary::calc_bend_grids(), blender::ed::sculpt_paint::cloth::calc_constraint_factors(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), blender::ed::sculpt_paint::filter::calc_erase_displacement_filter(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::boundary::calc_grab_grids(), blender::ed::sculpt_paint::pose::calc_grids(), blender::ed::sculpt_paint::boundary::calc_inflate_grids(), blender::ed::sculpt_paint::filter::calc_sharpen_filter(), blender::ed::sculpt_paint::boundary::calc_slide_grids(), blender::ed::sculpt_paint::boundary::calc_smooth_grids(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_grids(), blender::ed::sculpt_paint::mask::decrease_contrast_mask_grids(), gather_data_grids(), gather_data_grids(), gather_grids_normals(), gather_grids_positions(), blender::ed::sculpt_paint::mask::gather_mask_grids(), blender::ed::sculpt_paint::mask::increase_contrast_mask_grids(), blender::ed::sculpt_paint::mask::sharpen_mask_grids(), blender::ed::sculpt_paint::undo::store_mask_grids(), and blender::ed::sculpt_paint::undo::store_positions_grids().
| template void blender::ed::sculpt_paint::gather_data_grids< float > | ( | const SubdivCCG & | , |
| Span< float > | , | ||
| Span< int > | , | ||
| MutableSpan< float > | ) |
| template void blender::ed::sculpt_paint::gather_data_grids< float3 > | ( | const SubdivCCG & | , |
| Span< float3 > | , | ||
| Span< int > | , | ||
| MutableSpan< float3 > | ) |
| template void blender::ed::sculpt_paint::gather_data_grids< int > | ( | const SubdivCCG & | , |
| Span< int > | , | ||
| Span< int > | , | ||
| MutableSpan< int > | ) |
| MutableSpan< T > blender::ed::sculpt_paint::gather_data_mesh | ( | const Span< T > | src, |
| const Span< int > | indices, | ||
| Vector< T > & | dst ) |
Definition at line 87 of file mesh_brush_common.hh.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), gather_data_mesh(), and blender::Vector< T, InlineBufferCapacity, Allocator >::resize().
| void blender::ed::sculpt_paint::gather_data_mesh | ( | Span< T > | src, |
| Span< int > | indices, | ||
| MutableSpan< T > | dst ) |
Gather data from an array aligned with all geometry vertices.
Definition at line 6082 of file sculpt.cc.
References BLI_assert, gather_data_mesh(), and blender::MutableSpan< T >::size().
Referenced by blender::ed::sculpt_paint::cloth::apply_filter_forces_mesh(), blender::ed::sculpt_paint::mask::apply_mask_mesh(), blender::ed::sculpt_paint::project::apply_projection_mesh(), blender::ed::sculpt_paint::cloth::apply_scale_filter(), blender::ed::sculpt_paint::boundary::calc_bend_mesh(), blender::ed::sculpt_paint::cloth::calc_constraint_factors(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), calc_faces(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), blender::ed::sculpt_paint::boundary::calc_grab_mesh(), blender::ed::sculpt_paint::filter::calc_inflate_filter(), blender::ed::sculpt_paint::boundary::calc_inflate_mesh(), blender::ed::sculpt_paint::pose::calc_mesh(), blender::ed::sculpt_paint::filter::calc_random_filter(), blender::ed::sculpt_paint::filter::calc_scale_filter(), blender::ed::sculpt_paint::filter::calc_sharpen_filter(), blender::ed::sculpt_paint::boundary::calc_slide_mesh(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_smooth_mesh(), blender::ed::sculpt_paint::filter::calc_sphere_filter(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_mesh(), blender::ed::sculpt_paint::mask::decrease_contrast_mask_mesh(), blender::ed::sculpt_paint::color::do_paint_brush_task(), elastic_transform_node_mesh(), blender::ed::sculpt_paint::face_set::face_hide_update(), blender::ed::sculpt_paint::face_set::face_sets_update(), blender::ed::sculpt_paint::hide::flush_face_changes_node(), gather_data_mesh(), gather_data_mesh(), blender::ed::sculpt_paint::mask::increase_contrast_mask_mesh(), sample_node_surface_mesh(), blender::ed::sculpt_paint::mask::sharpen_mask_mesh(), blender::ed::sculpt_paint::cloth::solve_verts_simulation(), blender::ed::sculpt_paint::undo::store_face_sets(), blender::ed::sculpt_paint::undo::store_mask_mesh(), blender::ed::sculpt_paint::undo::store_positions_mesh(), blender::ed::sculpt_paint::mask::update_mask_mesh(), and blender::ed::sculpt_paint::hide::vert_hide_update().
| template void blender::ed::sculpt_paint::gather_data_mesh< bool > | ( | Span< bool > | , |
| Span< int > | , | ||
| MutableSpan< bool > | ) |
| template void blender::ed::sculpt_paint::gather_data_mesh< float > | ( | Span< float > | , |
| Span< int > | , | ||
| MutableSpan< float > | ) |
| template void blender::ed::sculpt_paint::gather_data_mesh< float3 > | ( | Span< float3 > | , |
| Span< int > | , | ||
| MutableSpan< float3 > | ) |
| template void blender::ed::sculpt_paint::gather_data_mesh< float4 > | ( | Span< float4 > | , |
| Span< int > | , | ||
| MutableSpan< float4 > | ) |
| template void blender::ed::sculpt_paint::gather_data_mesh< int > | ( | Span< int > | , |
| Span< int > | , | ||
| MutableSpan< int > | ) |
| void blender::ed::sculpt_paint::gather_grids_normals | ( | const SubdivCCG & | subdiv_ccg, |
| Span< int > | grids, | ||
| MutableSpan< float3 > | normals ) |
Fill the output array with all normals in the grids referenced by the indices.
Definition at line 6065 of file sculpt.cc.
References gather_data_grids(), gather_grids_normals(), and SubdivCCG::normals.
Referenced by blender::ed::sculpt_paint::cloth::apply_filter_forces_grids(), blender::ed::sculpt_paint::project::apply_projection_grids(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), gather_grids_normals(), and sample_node_surface_grids().
|
inline |
Fill the output array with all positions in the geometry referenced by the indices.
Definition at line 131 of file mesh_brush_common.hh.
References BKE_subdiv_ccg_key_top_level(), gather_data_grids(), CCGKey::grid_area, SubdivCCG::positions, and blender::Span< T >::size().
Referenced by blender::ed::sculpt_paint::cloth::apply_filter_forces_grids(), blender::ed::sculpt_paint::project::apply_projection_grids(), calc_area_normal_and_center_node_grids(), blender::ed::sculpt_paint::boundary::calc_bend_grids(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), blender::ed::sculpt_paint::filter::calc_erase_displacement_filter(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::boundary::calc_grab_grids(), calc_grids(), blender::ed::sculpt_paint::pose::calc_grids(), blender::ed::sculpt_paint::filter::calc_inflate_filter(), blender::ed::sculpt_paint::boundary::calc_inflate_grids(), blender::ed::sculpt_paint::filter::calc_random_filter(), blender::ed::sculpt_paint::filter::calc_relax_face_sets_filter(), blender::ed::sculpt_paint::filter::calc_relax_filter(), blender::ed::sculpt_paint::filter::calc_scale_filter(), blender::ed::sculpt_paint::filter::calc_sharpen_filter(), blender::ed::sculpt_paint::boundary::calc_slide_grids(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_smooth_grids(), blender::ed::sculpt_paint::filter::calc_sphere_filter(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_grids(), elastic_transform_node_grids(), and sample_node_surface_grids().
| void blender::ed::sculpt_paint::geometry_preview_lines_update | ( | Depsgraph & | depsgraph, |
| Object & | object, | ||
| SculptSession & | ss, | ||
| float | radius ) |
Definition at line 227 of file grab.cc.
References SculptSession::active_vert(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), BKE_sculpt_update_object_for_edit(), blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), SculptSession::deform_modifiers_active, depsgraph, blender::math::distance_squared(), blender::bke::Face, blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), SculptSession::preview_verts, SculptSession::shapekey_active, blender::bke::pbvh::Tree::type(), vert_neighbors_get_mesh(), and blender::bke::pbvh::vert_positions_eval().
Referenced by paint_cursor_draw_3d_view_brush_cursor_inactive().
|
static |
Definition at line 161 of file brush_asset_ops.cc.
References BKE_preferences_asset_library_find_index(), AssetLibraryReference::custom_library_index, blender::ed::asset::library_reference_from_enum_value(), ptr, and RNA_enum_get().
Referenced by brush_asset_save_as_exec(), and visit_library_prop_catalogs_catalog_for_search_fn().
|
static |
Definition at line 1172 of file grease_pencil_draw_ops.cc.
References BLI_assert, blender::VArray< T >::ForFunc(), GP_FILL_GPLMODE_ABOVE, GP_FILL_GPLMODE_ACTIVE, GP_FILL_GPLMODE_ALL_ABOVE, GP_FILL_GPLMODE_ALL_BELOW, GP_FILL_GPLMODE_BELOW, GP_FILL_GPLMODE_VISIBLE, and blender::IndexRange::size().
Referenced by grease_pencil_apply_fill().
|
static |
Definition at line 87 of file grease_pencil_draw_ops.cc.
References BKE_paint_brush_for_read(), BKE_paint_get_active_from_context(), BKE_paintmode_get_active_from_context(), BLI_assert_unreachable, BRUSH_STROKE_ERASE, BRUSH_STROKE_SMOOTH, GPAINT_BRUSH_TYPE_DRAW, GPAINT_BRUSH_TYPE_ERASE, GPAINT_BRUSH_TYPE_FILL, GPAINT_BRUSH_TYPE_TINT, GPencil, Brush::gpencil_brush_type, Brush::gpencil_sculpt_brush_type, Brush::gpencil_vertex_brush_type, Brush::gpencil_weight_brush_type, GPSCULPT_BRUSH_TYPE_CLONE, GPSCULPT_BRUSH_TYPE_GRAB, GPSCULPT_BRUSH_TYPE_PINCH, GPSCULPT_BRUSH_TYPE_PUSH, GPSCULPT_BRUSH_TYPE_RANDOMIZE, GPSCULPT_BRUSH_TYPE_SMOOTH, GPSCULPT_BRUSH_TYPE_STRENGTH, GPSCULPT_BRUSH_TYPE_THICKNESS, GPSCULPT_BRUSH_TYPE_TWIST, GPVERTEX_BRUSH_TYPE_AVERAGE, GPVERTEX_BRUSH_TYPE_BLUR, GPVERTEX_BRUSH_TYPE_DRAW, GPVERTEX_BRUSH_TYPE_REPLACE, GPVERTEX_BRUSH_TYPE_SMEAR, GPVERTEX_BRUSH_TYPE_TINT, GPWEIGHT_BRUSH_TYPE_AVERAGE, GPWEIGHT_BRUSH_TYPE_BLUR, GPWEIGHT_BRUSH_TYPE_DRAW, GPWEIGHT_BRUSH_TYPE_SMEAR, blender::ed::sculpt_paint::greasepencil::new_clone_operation(), blender::ed::sculpt_paint::greasepencil::new_erase_operation(), blender::ed::sculpt_paint::greasepencil::new_grab_operation(), blender::ed::sculpt_paint::greasepencil::new_paint_operation(), blender::ed::sculpt_paint::greasepencil::new_pinch_operation(), blender::ed::sculpt_paint::greasepencil::new_push_operation(), blender::ed::sculpt_paint::greasepencil::new_randomize_operation(), blender::ed::sculpt_paint::greasepencil::new_smooth_operation(), blender::ed::sculpt_paint::greasepencil::new_strength_operation(), blender::ed::sculpt_paint::greasepencil::new_thickness_operation(), blender::ed::sculpt_paint::greasepencil::new_tint_operation(), blender::ed::sculpt_paint::greasepencil::new_twist_operation(), blender::ed::sculpt_paint::greasepencil::new_vertex_average_operation(), blender::ed::sculpt_paint::greasepencil::new_vertex_blur_operation(), blender::ed::sculpt_paint::greasepencil::new_vertex_paint_operation(), blender::ed::sculpt_paint::greasepencil::new_vertex_replace_operation(), blender::ed::sculpt_paint::greasepencil::new_vertex_smear_operation(), blender::ed::sculpt_paint::greasepencil::new_weight_paint_average_operation(), blender::ed::sculpt_paint::greasepencil::new_weight_paint_blur_operation(), blender::ed::sculpt_paint::greasepencil::new_weight_paint_draw_operation(), blender::ed::sculpt_paint::greasepencil::new_weight_paint_smear_operation(), wmOperator::ptr, RNA_enum_get(), SculptGreasePencil, VertexGPencil, and WeightGPencil.
Referenced by stroke_update_step().
| Vector< float4x4 > blender::ed::sculpt_paint::get_symmetry_brush_transforms | ( | const eCurvesSymmetryType | symmetry | ) |
Definition at line 321 of file curves_sculpt_brush.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), CURVES_SYMMETRY_X, CURVES_SYMMETRY_Y, CURVES_SYMMETRY_Z, blender::MatBase< float, 4, 4 >::identity(), x, y, and z().
Referenced by blender::ed::sculpt_paint::CombOperationExecutor::comb_projected_with_symmetry(), blender::ed::sculpt_paint::CombOperationExecutor::comb_spherical_with_symmetry(), blender::ed::sculpt_paint::DeleteOperationExecutor::delete_projected_with_symmetry(), blender::ed::sculpt_paint::DeleteOperationExecutor::delete_spherical_with_symmetry(), blender::ed::sculpt_paint::PuffOperationExecutor::find_curve_weights_projected_with_symmetry(), blender::ed::sculpt_paint::SlideOperationExecutor::find_curves_to_slide_with_symmetry(), blender::ed::sculpt_paint::PuffOperationExecutor::find_curves_weights_spherical_with_symmetry(), blender::ed::sculpt_paint::SmoothOperationExecutor::find_projected_smooth_factors_with_symmetry(), blender::ed::sculpt_paint::SmoothOperationExecutor::find_spherical_smooth_factors_with_symmetry(), blender::ed::sculpt_paint::CurvesEffectOperationExecutor::gather_influences_projected(), blender::ed::sculpt_paint::CurvesEffectOperationExecutor::gather_influences_spherical(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_curve_selection_projected_with_symmetry(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_curve_selection_spherical_with_symmetry(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_point_selection_projected_with_symmetry(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_point_selection_spherical_with_symmetry(), blender::ed::sculpt_paint::PinchOperationExecutor::pinch_projected_with_symmetry(), blender::ed::sculpt_paint::PinchOperationExecutor::pinch_spherical_with_symmetry(), blender::ed::sculpt_paint::SnakeHookOperatorExecutor::projected_snake_hook_with_symmetry(), blender::ed::sculpt_paint::DensitySubtractOperationExecutor::reduce_density_projected_with_symmetry(), blender::ed::sculpt_paint::DensitySubtractOperationExecutor::reduce_density_spherical_with_symmetry(), blender::ed::sculpt_paint::AddOperationExecutor::sample_in_center_with_symmetry(), blender::ed::sculpt_paint::AddOperationExecutor::sample_projected_with_symmetry(), blender::ed::sculpt_paint::DensityAddOperationExecutor::sample_projected_with_symmetry(), blender::ed::sculpt_paint::AddOperationExecutor::sample_spherical_with_symmetry(), blender::ed::sculpt_paint::DensityAddOperationExecutor::sample_spherical_with_symmetry(), and blender::ed::sculpt_paint::SnakeHookOperatorExecutor::spherical_snake_hook_with_symmetry().
|
static |
Definition at line 1332 of file grease_pencil_draw_ops.cc.
References blender::IndexRange::after(), blender::bke::CurvesGeometry::attributes(), blender::bke::CurvesGeometry::attributes_for_write(), BKE_brush_tag_unsaved_changes(), BKE_paint_brush(), BLI_rcti_isect_pt_v(), blender::ed::greasepencil::calculate_texture_space(), blender::bke::AttributeAccessor::contains(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_region(), CTX_wm_window(), blender::bke::Curve, blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), wmOperator::customdata, ED_view3d_viewcontext_init(), ensure_editable_drawings(), BrushGpencilSettings::fill_extend_fac, BrushGpencilSettings::fill_layer_mode, BrushGpencilSettings::fill_simplylvl, BrushGpencilSettings::fill_threshold, blender::bke::SpanAttributeWriter< T >::finish(), blender::ed::greasepencil::FitToView, BrushGpencilSettings::flag, blender::bke::GeometrySet::from_curves(), Curves::geometry, blender::bke::GeometrySet::get_curves_for_write(), get_fill_boundary_layers(), GP_BRUSH_FILL_HIDE, ToolSettings::gp_paint, GP_TOOL_FLAG_PAINT_ONBACK, ToolSettings::gpencil_flags, Brush::gpencil_settings, grease_pencil_fill_get_extension_data(), blender::bke::GeometrySet::has_curves(), blender::geometry::join_geometries(), blender::bke::greasepencil::LEGACY_RADIUS_CONVERSION_FACTOR, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), wmEvent::mval, GpPaint::paint, simplify_fixed(), smooth_fill_strokes(), blender::bke::CurvesGeometry::tag_topology_changed(), ViewContext::v3d, WM_cursor_modal_restore(), and wmEvent::xy.
Referenced by grease_pencil_fill_event_modal_map().
|
static |
Definition at line 1508 of file paint_cursor.cc.
References BKE_brush_color_get(), BKE_brush_size_get(), BKE_grease_pencil_object_material_from_brush_get(), BLI_rcti_isect_pt(), blender::ed::sculpt_paint::PaintCursorContext::brush, BRUSH_LOCK_SIZE, BRUSH_SMOOTH_STROKE, blender::ed::sculpt_paint::PaintCursorContext::C, CTX_data_active_object(), ELEM, Brush::flag, ToolSettings::gp_paint, GPAINT_BRUSH_TYPE_DRAW, GPAINT_BRUSH_TYPE_ERASE, GPAINT_BRUSH_TYPE_FILL, GPAINT_BRUSH_TYPE_TINT, GPencil, Brush::gpencil_brush_type, Brush::gpencil_settings, GPPAINT_FLAG_USE_VERTEXCOLOR, GPPAINT_MODE_BOTH, GPPAINT_MODE_STROKE, GPU_line_width(), grease_pencil_eraser_draw(), imm_draw_circle_wire_2d(), immUniformColor4f(), int, blender::ed::sculpt_paint::PaintCursorContext::mode, GpPaint::mode, OB_GREASE_PENCIL, blender::ed::sculpt_paint::PaintCursorContext::paint, Paint::paint_cursor_col, blender::ed::sculpt_paint::PaintCursorContext::pixel_radius, blender::ed::sculpt_paint::PaintCursorContext::pos, blender::ed::greasepencil::DrawingPlacement::project(), project_brush_radius(), blender::ed::sculpt_paint::PaintCursorContext::region, Brush::rgb, GreasePencil::runtime, blender::ed::sculpt_paint::PaintCursorContext::scene, ViewContext::scene, Brush::size, MaterialGPencilStyle::stroke_rgba, Scene::toolsettings, Brush::unprojected_radius, ViewContext::v3d, blender::ed::sculpt_paint::PaintCursorContext::vc, BrushGpencilSettings::vertex_mode, VertexGPencil, ARegion::winrct, blender::ed::sculpt_paint::PaintCursorContext::x, blender::VecBase< T, Size >::xyz(), and blender::ed::sculpt_paint::PaintCursorContext::y.
Referenced by paint_draw_2D_view_brush_cursor().
|
static |
Definition at line 293 of file grease_pencil_draw_ops.cc.
References wmOperator::customdata, and paint_stroke_cancel().
Referenced by GREASE_PENCIL_OT_brush_stroke().
|
static |
Definition at line 234 of file grease_pencil_draw_ops.cc.
References wmTabletData::active, BKE_paint_brush_for_read(), BKE_paint_get_active_from_context(), BKE_paintmode_get_active_from_context(), BRUSH_STROKE_ERASE, wmOperator::customdata, ELEM, EVT_TABLET_ERASER, GPAINT_BRUSH_TYPE_DRAW, GPAINT_BRUSH_TYPE_ERASE, GPAINT_BRUSH_TYPE_TINT, GPencil, Brush::gpencil_brush_type, blender::ed::greasepencil::grease_pencil_draw_operator_invoke(), wmOperatorType::modal, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, paint_stroke_new(), wmOperator::ptr, RNA_enum_get(), RNA_enum_set(), stroke_done(), stroke_get_location(), stroke_redraw(), stroke_test_start(), stroke_update_step(), wmEvent::tablet, wmEvent::type, wmOperator::type, and WM_event_add_modal_handler().
Referenced by GREASE_PENCIL_OT_brush_stroke().
|
static |
Definition at line 288 of file grease_pencil_draw_ops.cc.
References wmOperator::customdata, and paint_stroke_modal().
Referenced by GREASE_PENCIL_OT_brush_stroke().
|
static |
Definition at line 223 of file grease_pencil_draw_ops.cc.
References blender::ed::greasepencil::grease_pencil_painting_poll(), and WM_toolsystem_active_tool_is_brush().
Referenced by GREASE_PENCIL_OT_brush_stroke().
|
static |
Definition at line 1481 of file paint_cursor.cc.
References float, GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR, GPU_viewport_size_get_f(), imm_draw_circle_fill_2d(), imm_draw_circle_wire_2d(), immBindBuiltinProgram(), immUnbindProgram(), immUniform1f(), immUniform1i(), immUniform2f(), immUniformColor4f(), immUniformColor4ub(), max_ii(), blender::ed::sculpt_paint::PaintCursorContext::pixel_radius, blender::ed::sculpt_paint::PaintCursorContext::pos, blender::ed::sculpt_paint::PaintCursorContext::x, and blender::ed::sculpt_paint::PaintCursorContext::y.
Referenced by grease_pencil_brush_cursor_draw().
|
static |
Definition at line 1718 of file grease_pencil_draw_ops.cc.
References grease_pencil_fill_exit().
Referenced by GREASE_PENCIL_OT_fill().
|
static |
Definition at line 1576 of file grease_pencil_draw_ops.cc.
References BLI_assert_unreachable, Cancel, Confirm, CTX_wm_window(), wmOperator::customdata, blender::math::distance(), ExtensionCollide, ExtensionDrag, ExtensionLengthen, ExtensionModeToggle, ExtensionShorten, GP_FILL_EMODE_EXTEND, GP_FILL_EMODE_RADIUS, grease_pencil_apply_fill(), grease_pencil_update_extend(), int, Invert, KM_PRESS, KM_RELEASE, wmEvent::mval, NA_EDITED, NC_GEOM, NC_GPENCIL, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, Precision, wmEvent::val, WM_CURSOR_EW_ARROW, WM_cursor_modal_set(), WM_CURSOR_PAINT_BRUSH, WM_cursor_set(), WM_event_add_notifier(), and WM_main_add_notifier().
Referenced by grease_pencil_fill_modal().
|
static |
Definition at line 1497 of file grease_pencil_draw_ops.cc.
References CTX_data_active_object(), CTX_wm_region(), CTX_wm_window(), wmOperator::customdata, Object::data, DEG_id_tag_update(), ED_region_draw_cb_exit(), ED_workspace_status_text(), GreasePencil::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GEOM, NC_GPENCIL, ND_DATA, WM_cursor_modal_restore(), WM_event_add_notifier(), and WM_main_add_notifier().
Referenced by grease_pencil_fill_cancel(), grease_pencil_fill_invoke(), and grease_pencil_fill_modal().
|
static |
Definition at line 690 of file grease_pencil_draw_ops.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), BLI_bvhtree_balance(), BLI_bvhtree_free(), BLI_bvhtree_insert(), BLI_bvhtree_new(), BLI_bvhtree_ray_cast(), BLI_SCOPED_DEFER, callback, CTX_data_active_object(), CTX_data_scene(), CTX_wm_region_view3d(), blender::offset_indices::OffsetIndices< T >::data(), blender::math::distance(), blender::ed::greasepencil::DrawingInfo::drawing, ELEM, blender::ed::greasepencil::ExtensionData::ends, FLT_MAX, BVHTreeRayHit::index, blender::IndexRange::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::math::interpolate(), is_cyclic(), blender::math::isect_seg_seg(), blender::ed::greasepencil::DrawingInfo::layer_index, length(), blender::ed::greasepencil::ExtensionData::lines, blender::math::normalize_and_get_length(), blender::ed::greasepencil::retrieve_visible_drawings(), blender::IndexRange::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::ed::greasepencil::ExtensionData::starts, blender::bke::greasepencil::Drawing::strokes(), blender::math::transform_point(), tree, RegionView3D::viewmat, and blender::VecBase< T, Size >::xy().
Referenced by grease_pencil_fill_get_extension_data().
|
static |
Definition at line 851 of file grease_pencil_draw_ops.cc.
References blender::IndexRange::after(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::math::average(), BLI_assert_unreachable, blender::ed::greasepencil::ExtensionData::centers, blender::ed::greasepencil::ExtensionData::circles, blender::IndexRange::contains(), CTX_data_active_object(), CTX_data_scene(), CTX_wm_region_view3d(), blender::ed::greasepencil::ExtensionData::ends, blender::array_utils::gather(), blender::IndexRange::index_range(), blender::ed::greasepencil::ExtensionData::lines, blender::ed::greasepencil::ExtensionData::radii, blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::ed::greasepencil::retrieve_visible_drawings(), blender::IndexRange::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::ed::greasepencil::ExtensionData::starts, blender::math::to_scale(), blender::math::transform_point(), UNUSED_VARS, RegionView3D::viewmat, and blender::VecBase< T, Size >::xy().
Referenced by grease_pencil_fill_get_extension_data().
|
static |
Definition at line 962 of file grease_pencil_draw_ops.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::ed::greasepencil::ExtensionData::centers, blender::ed::greasepencil::ExtensionData::circles, CTX_data_active_object(), CTX_data_scene(), blender::ed::greasepencil::DrawingInfo::drawing, blender::ed::greasepencil::ExtensionData::ends, blender::ed::sculpt_paint::GreasePencilFillOpData::extension_cut, blender::ed::sculpt_paint::GreasePencilFillOpData::extension_length, blender::ed::sculpt_paint::GreasePencilFillOpData::extension_mode, GP_FILL_EMODE_EXTEND, GP_FILL_EMODE_RADIUS, grease_pencil_fill_extension_cut(), grease_pencil_fill_extension_lines_from_circles(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::ed::greasepencil::DrawingInfo::layer_index, blender::ed::greasepencil::ExtensionData::lines, blender::math::normalize(), blender::ed::greasepencil::ExtensionData::radii, blender::ed::greasepencil::retrieve_visible_drawings(), blender::ed::greasepencil::ExtensionData::starts, blender::bke::greasepencil::Drawing::strokes(), and blender::math::transform_point().
Referenced by grease_pencil_apply_fill(), and grease_pencil_fill_overlay_cb().
|
static |
Definition at line 1451 of file grease_pencil_draw_ops.cc.
References BKE_brush_init_gpencil_settings(), BKE_curvemapping_init(), BKE_grease_pencil_object_material_ensure_from_active_input_brush(), BKE_object_material_index_get(), BKE_paint_brush(), CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), BrushGpencilSettings::curve_jitter, BrushGpencilSettings::curve_rand_hue, BrushGpencilSettings::curve_rand_pressure, BrushGpencilSettings::curve_rand_saturation, BrushGpencilSettings::curve_rand_strength, BrushGpencilSettings::curve_rand_uv, BrushGpencilSettings::curve_rand_value, BrushGpencilSettings::curve_sensitivity, BrushGpencilSettings::curve_strength, wmOperator::customdata, Object::data, blender::ed::sculpt_paint::GreasePencilFillOpData::from_context(), Brush::gpencil_settings, invert(), wmOperator::ptr, and RNA_boolean_get().
Referenced by grease_pencil_fill_invoke().
|
static |
Definition at line 1526 of file grease_pencil_draw_ops.cc.
References Object::actcol, BKE_object_material_get(), BKE_paint_brush(), BKE_report(), CTX_data_active_object(), CTX_data_tool_settings(), CTX_wm_region(), CTX_wm_window(), wmOperator::customdata, Object::data, DEG_id_tag_update(), BrushGpencilSettings::flag, GP_BRUSH_MATERIAL_PINNED, ToolSettings::gp_paint, Brush::gpencil_settings, grease_pencil_fill_exit(), grease_pencil_fill_init(), grease_pencil_fill_status_indicators(), grease_pencil_fill_update_overlay(), GreasePencil::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, BrushGpencilSettings::material, NA_EDITED, NC_GPENCIL, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, GpPaint::paint, wmOperator::reports, RPT_ERROR, WM_cursor_modal_set(), WM_CURSOR_PAINT_BRUSH, WM_event_add_modal_handler(), and WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_fill().
|
static |
Definition at line 1664 of file grease_pencil_draw_ops.cc.
References CTX_data_active_object(), CTX_wm_region_view3d(), wmOperator::customdata, blender::math::distance(), ED_view3d_pixel_size(), EVT_MODAL_MAP, grease_pencil_fill_event_modal_map(), grease_pencil_fill_exit(), grease_pencil_update_extend(), Object::loc, MOUSEMOVE, wmEvent::mval, NA_EDITED, NC_GEOM, NC_GPENCIL, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmEvent::type, WM_event_add_notifier(), and WM_main_add_notifier().
Referenced by GREASE_PENCIL_OT_fill().
|
static |
Definition at line 1065 of file grease_pencil_draw_ops.cc.
References blender::ed::greasepencil::ExtensionData::centers, blender::ed::greasepencil::ExtensionData::circles, blender::ed::greasepencil::image_render::clear_view_matrix(), CTX_data_active_object(), CTX_data_scene(), CTX_wm_region(), CTX_wm_region_view3d(), blender::ed::greasepencil::image_render::draw_circles(), blender::ed::greasepencil::image_render::draw_grease_pencil_strokes(), blender::ed::greasepencil::image_render::draw_lines(), blender::ed::greasepencil::ExtensionData::ends, blender::VArray< T >::ForSingle(), grease_pencil_fill_get_extension_data(), blender::IndexRange::is_empty(), blender::ed::greasepencil::ExtensionData::lines, blender::ed::greasepencil::ExtensionData::radii, blender::ed::greasepencil::retrieve_visible_drawings(), blender::IndexRange::size(), blender::ed::greasepencil::ExtensionData::starts, and RegionView3D::viewmat.
Referenced by grease_pencil_fill_update_overlay().
|
static |
Definition at line 1049 of file grease_pencil_draw_ops.cc.
References ED_workspace_status_text(), blender::ed::sculpt_paint::GreasePencilFillOpData::extension_cut, blender::ed::sculpt_paint::GreasePencilFillOpData::extension_length, blender::ed::sculpt_paint::GreasePencilFillOpData::extension_mode, GP_FILL_EMODE_EXTEND, and IFACE_.
Referenced by grease_pencil_fill_invoke(), and grease_pencil_update_extend().
|
static |
Definition at line 1145 of file grease_pencil_draw_ops.cc.
References ED_region_draw_cb_activate(), ED_region_draw_cb_exit(), grease_pencil_fill_overlay_cb(), blender::ed::sculpt_paint::GreasePencilFillOpData::overlay_cb_handle, REGION_DRAW_POST_VIEW, blender::ed::sculpt_paint::GreasePencilFillOpData::show_boundaries, and blender::ed::sculpt_paint::GreasePencilFillOpData::show_extension.
Referenced by grease_pencil_fill_invoke(), and grease_pencil_update_extend().
|
static |
Definition at line 298 of file grease_pencil_draw_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, grease_pencil_brush_stroke_cancel(), grease_pencil_brush_stroke_invoke(), grease_pencil_brush_stroke_modal(), grease_pencil_brush_stroke_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_stroke_operator_properties(), and wmOperatorType::poll.
|
static |
Definition at line 1723 of file grease_pencil_draw_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, grease_pencil_fill_cancel(), grease_pencil_fill_invoke(), grease_pencil_fill_modal(), blender::ed::greasepencil::grease_pencil_painting_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
|
static |
Definition at line 403 of file grease_pencil_draw_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, grease_pencil_sculpt_paint_cancel(), grease_pencil_sculpt_paint_invoke(), grease_pencil_sculpt_paint_modal(), grease_pencil_sculpt_paint_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_stroke_operator_properties(), and wmOperatorType::poll.
|
static |
Definition at line 602 of file grease_pencil_draw_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, grease_pencil_vertex_brush_stroke_cancel(), grease_pencil_vertex_brush_stroke_invoke(), grease_pencil_vertex_brush_stroke_modal(), grease_pencil_vertex_brush_stroke_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_stroke_operator_properties(), and wmOperatorType::poll.
|
static |
Definition at line 496 of file grease_pencil_draw_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, grease_pencil_weight_brush_stroke_cancel(), grease_pencil_weight_brush_stroke_invoke(), grease_pencil_weight_brush_stroke_modal(), grease_pencil_weight_brush_stroke_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_stroke_operator_properties(), and wmOperatorType::poll.
|
static |
Definition at line 398 of file grease_pencil_draw_ops.cc.
References wmOperator::customdata, and paint_stroke_cancel().
Referenced by GREASE_PENCIL_OT_sculpt_paint().
|
static |
Definition at line 331 of file grease_pencil_draw_ops.cc.
References BKE_paint_brush_for_read(), BKE_paint_get_active_from_context(), BKE_report(), CTX_data_active_object(), CTX_data_scene(), wmOperator::customdata, blender::ed::greasepencil::ensure_active_keyframe(), wmOperatorType::modal, NA_EDITED, NC_GPENCIL, OB_GREASE_PENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, paint_stroke_new(), wmOperator::reports, RPT_ERROR, stroke_done(), stroke_get_location(), stroke_redraw(), stroke_test_start(), stroke_update_step(), wmEvent::type, wmOperator::type, WM_event_add_modal_handler(), and WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_sculpt_paint().
|
static |
Definition at line 393 of file grease_pencil_draw_ops.cc.
References wmOperator::customdata, and paint_stroke_modal().
Referenced by GREASE_PENCIL_OT_sculpt_paint().
|
static |
Definition at line 320 of file grease_pencil_draw_ops.cc.
References blender::ed::greasepencil::grease_pencil_sculpting_poll(), and WM_toolsystem_active_tool_is_brush().
Referenced by GREASE_PENCIL_OT_sculpt_paint().
|
static |
Definition at line 1164 of file grease_pencil_draw_ops.cc.
References CTX_wm_region(), grease_pencil_fill_status_indicators(), grease_pencil_fill_update_overlay(), NA_EDITED, NC_GPENCIL, and WM_event_add_notifier().
Referenced by grease_pencil_fill_event_modal_map(), and grease_pencil_fill_modal().
|
static |
Definition at line 597 of file grease_pencil_draw_ops.cc.
References wmOperator::customdata, and paint_stroke_cancel().
Referenced by GREASE_PENCIL_OT_vertex_brush_stroke().
|
static |
Definition at line 529 of file grease_pencil_draw_ops.cc.
References BKE_paint_brush_for_read(), BKE_paint_get_active_from_context(), BKE_report(), CTX_data_active_object(), CTX_data_scene(), wmOperator::customdata, blender::ed::greasepencil::ensure_active_keyframe(), wmOperatorType::modal, NA_EDITED, NC_GPENCIL, OB_GREASE_PENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, paint_stroke_new(), wmOperator::reports, RPT_ERROR, stroke_done(), stroke_get_location(), stroke_redraw(), stroke_test_start(), stroke_update_step(), wmEvent::type, wmOperator::type, WM_event_add_modal_handler(), and WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_vertex_brush_stroke().
|
static |
Definition at line 590 of file grease_pencil_draw_ops.cc.
References wmOperator::customdata, and paint_stroke_modal().
Referenced by GREASE_PENCIL_OT_vertex_brush_stroke().
|
static |
Definition at line 518 of file grease_pencil_draw_ops.cc.
References blender::ed::greasepencil::grease_pencil_vertex_painting_poll(), and WM_toolsystem_active_tool_is_brush().
Referenced by GREASE_PENCIL_OT_vertex_brush_stroke().
|
static |
Definition at line 491 of file grease_pencil_draw_ops.cc.
References wmOperator::customdata, and paint_stroke_cancel().
Referenced by GREASE_PENCIL_OT_weight_brush_stroke().
|
static |
Definition at line 436 of file grease_pencil_draw_ops.cc.
References BKE_object_defgroup_active_index_get(), BKE_object_defgroup_active_is_locked(), BKE_paint_brush_for_read(), BKE_paint_get_active_from_context(), BKE_report(), CTX_data_active_object(), CTX_data_scene(), wmOperator::customdata, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), wmOperatorType::modal, OB_GREASE_PENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, paint_stroke_new(), wmOperator::reports, blender::ed::greasepencil::retrieve_editable_drawings(), RPT_ERROR, RPT_WARNING, stroke_done(), stroke_get_location(), stroke_redraw(), stroke_test_start(), stroke_update_step(), wmEvent::type, wmOperator::type, and WM_event_add_modal_handler().
Referenced by GREASE_PENCIL_OT_weight_brush_stroke().
|
static |
Definition at line 484 of file grease_pencil_draw_ops.cc.
References wmOperator::customdata, and paint_stroke_modal().
Referenced by GREASE_PENCIL_OT_weight_brush_stroke().
|
static |
Definition at line 425 of file grease_pencil_draw_ops.cc.
References blender::ed::greasepencil::grease_pencil_weight_painting_poll(), and WM_toolsystem_active_tool_is_brush().
Referenced by GREASE_PENCIL_OT_weight_brush_stroke().
|
static |
Definition at line 250 of file paint_stroke.cc.
References BRUSH_ANCHORED, BRUSH_DRAG_DOT, and Brush::flag.
Referenced by paint_stroke_new().
|
static |
Definition at line 255 of file paint_stroke.cc.
References BRUSH_ANCHORED, ELEM, Brush::flag, Sculpt, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_BOUNDARY, SCULPT_BRUSH_TYPE_CLOTH, SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_POSE, SCULPT_BRUSH_TYPE_ROTATE, SCULPT_BRUSH_TYPE_SNAKE_HOOK, and SCULPT_BRUSH_TYPE_THUMB.
Referenced by paint_stroke_modal().
|
static |
Definition at line 211 of file paint_stroke.cc.
References ELEM, blender::ed::sculpt_paint::cloth::is_cloth_deform_brush(), Sculpt, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_BOUNDARY, SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_POSE, SCULPT_BRUSH_TYPE_ROTATE, SCULPT_BRUSH_TYPE_SNAKE_HOOK, and SCULPT_BRUSH_TYPE_THUMB.
Referenced by paint_brush_update().
|
static |
Definition at line 313 of file sculpt_ops.cc.
References BKE_scene_graph_evaluated_ensure(), BKE_sculpt_toolsettings_data_ensure(), BKE_sculpt_update_object_for_edit(), BKE_sculptsession_free(), Object::data, DEG_id_tag_update(), depsgraph, blender::ed::sculpt_paint::face_set::find_next_available_id(), Object::id, ID_RECALC_GEOMETRY, blender::ed::sculpt_paint::face_set::initialize_none_to_id(), SculptSession::mode_type, OB_MODE_SCULPT, and Object::sculpt.
Referenced by object_sculpt_mode_enter().
| void blender::ed::sculpt_paint::init_transform | ( | bContext * | C, |
| Object & | ob, | ||
| const float | mval_fl[2], | ||
| const char * | undo_name ) |
Definition at line 54 of file sculpt_transform.cc.
References BKE_sculpt_update_object_for_edit(), blender::ed::sculpt_paint::filter::cache_init(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_data_tool_settings(), depsgraph, SculptSession::filter_cache, Incremental, SculptSession::init_pivot_pos, SculptSession::init_pivot_rot, SculptSession::init_pivot_scale, Original, SculptSession::pivot_pos, SculptSession::pivot_rot, SculptSession::pivot_scale, blender::ed::sculpt_paint::undo::Position, SculptSession::prev_pivot_pos, SculptSession::prev_pivot_rot, SculptSession::prev_pivot_scale, blender::ed::sculpt_paint::undo::push_begin_ex(), Object::sculpt, ToolSettings::sculpt, SCULPT_TRANSFORM_MODE_RADIUS_ELASTIC, SCULPT_vertex_random_access_ensure(), blender::ed::sculpt_paint::filter::Cache::transform_displacement_mode, and Sculpt::transform_mode.
|
static |
Definition at line 130 of file paint_image_2d_curve_mask.cc.
References CurveMaskCache::curve_mask_size, and diameter_to_curve_mask_size().
Referenced by paint_curve_mask_cache_update().
|
static |
Definition at line 96 of file paint_image_2d_curve_mask.cc.
References CurveMapping::changed_timestamp, Brush::curve, CurveMaskCache::last_curve_timestamp, and CurveMaskCache::sampled_curve.
Referenced by paint_curve_mask_cache_update().
|
static |
Definition at line 54 of file multiplane_scrape.cc.
References blender::ed::sculpt_paint::ScrapeSampleData::area_cos, blender::ed::sculpt_paint::ScrapeSampleData::area_count, blender::ed::sculpt_paint::ScrapeSampleData::area_nos, and b.
Referenced by sample_surface().
| void blender::ed::sculpt_paint::keymap_sculpt | ( | wmKeyConfig * | keyconf | ) |
Definition at line 1542 of file sculpt_ops.cc.
References blender::ed::sculpt_paint::filter::modal_keymap().
|
static |
Definition at line 289 of file brush_asset_ops.cc.
References ASSET_LIBRARY_ESSENTIALS, and AssetLibraryReference::type.
Referenced by brush_asset_edit_metadata_poll(), and brush_asset_save_as_invoke().
|
static |
Definition at line 117 of file brush_asset_ops.cc.
References ASSET_LIBRARY_CUSTOM, BLI_findlink(), AssetLibraryReference::custom_library_index, and AssetLibraryReference::type.
Referenced by visit_active_library_catalogs_catalog_for_search_fn().
|
static |
Definition at line 95 of file brush_asset_ops.cc.
References blender::asset_system::all_valid_asset_library_refs(), AS_asset_library_root_path_from_library_ref(), BLI_path_cmp_normalized(), blender::StringRefNull::c_str(), and blender::asset_system::AssetLibrary::root_path().
Referenced by brush_asset_edit_metadata_exec(), brush_asset_edit_metadata_poll(), brush_asset_load_preview_exec(), brush_asset_save_as_invoke(), and visit_active_library_catalogs_catalog_for_search_fn().
|
static |
Definition at line 250 of file paint_cursor.cc.
References BKE_brush_size_get(), BKE_image_pool_free(), BKE_image_pool_new(), BKE_paint_get_overlay_flags(), BKE_paint_reset_overlay_invalid(), BLI_parallel_range_settings_defaults(), BLI_task_parallel_range(), blender::ed::sculpt_paint::LoadTexData::br, MTex::brush_map_mode, col, GPU_DATA_UBYTE, GPU_R8, GPU_RGBA8, GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_swizzle_set(), GPU_texture_update(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_SHADER_READ, init(), load_tex_task_cb_ex(), make_tex_snap(), Brush::mask_mtex, MEM_freeN(), MEM_mallocN, Brush::mtex, MTEX_MAP_MODE_STENCIL, MTEX_MAP_MODE_VIEW, Tex::nodetree, ntreeTexBeginExecTree(), ntreeTexEndExecTree(), overlay_flags, TexSnapshot::overlay_texture, PAINT_OVERLAY_INVALID_TEXTURE_PRIMARY, PAINT_OVERLAY_INVALID_TEXTURE_SECONDARY, primary_snap, MTex::rot, bNodeTree::runtime, same_tex_snap(), ViewContext::scene, secondary_snap, size(), and MTex::tex.
Referenced by paint_draw_tex_overlay().
|
static |
Definition at line 409 of file paint_cursor.cc.
References BKE_brush_size_get(), BKE_curvemapping_init(), BKE_paint_get_overlay_flags(), BKE_paint_reset_overlay_invalid(), BLI_parallel_range_settings_defaults(), BLI_task_parallel_range(), blender::ed::sculpt_paint::LoadTexData::br, cursor_snap, Brush::curve, Brush::curve_preset, CursorSnapshot::curve_preset, GPU_DATA_UBYTE, GPU_R8, GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_swizzle_set(), GPU_texture_update(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_SHADER_READ, init(), load_tex_cursor_task_cb(), MEM_freeN(), MEM_mallocN, overlay_flags, CursorSnapshot::overlay_texture, PAINT_OVERLAY_INVALID_CURVE, ViewContext::scene, Brush::size, CursorSnapshot::size, size(), and CursorSnapshot::zoom.
Referenced by paint_draw_cursor_overlay().
|
static |
Definition at line 377 of file paint_cursor.cc.
References BKE_brush_curve_strength_clamped(), float, len, Brush::size, size(), and sqrtf.
Referenced by load_tex_cursor().
|
static |
Definition at line 148 of file paint_cursor.cc.
References atan2f, BKE_image_pool_acquire_ibuf(), BKE_image_pool_release_ibuf(), BLI_task_parallel_thread_id(), MTex::brush_map_mode, ImBuf::byte_buffer, CLAMP, clamp_v4(), col, ImBufByteBuffer::colorspace, cosf, ImBufFloatBuffer::data, ELEM, float, ImBuf::float_buffer, Tex::ima, IMB_colormanagement_colorspace_to_scene_linear_v3(), Tex::iuser, len, linearrgb_to_srgb_v3_v3(), MTEX_MAP_MODE_STENCIL, MTEX_MAP_MODE_TILED, paint_get_tex_pixel(), ViewContext::region, sinf, size(), sqrtf, MTex::tex, TEX_IMAGE, Brush::texture_sample_bias, Tex::type, ARegion::winx, and ARegion::winy.
Referenced by load_tex().
|
static |
Definition at line 127 of file paint_cursor.cc.
References ViewContext::region, snap(), ARegion::winx, and ARegion::winy.
Referenced by load_tex().
|
static |
Definition at line 766 of file sculpt_transform.cc.
References mask_border_weight_calc().
Referenced by mask_border_weight_calc().
| void blender::ed::sculpt_paint::move_last_point_and_resample | ( | MoveAndResampleBuffers & | buffer, |
| MutableSpan< float3 > | positions, | ||
| const float3 & | new_last_position ) |
| buffer | Reused memory to avoid reallocations when the function is called many times. |
Definition at line 359 of file curves_sculpt_brush.cc.
References blender::length_parameterize::accumulate_lengths(), blender::math::distance(), blender::IndexRange::drop_front(), blender::Vector< T, InlineBufferCapacity, Allocator >::first(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::length_parameterize::interpolate(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), blender::ed::sculpt_paint::MoveAndResampleBuffers::new_lengths, blender::ed::sculpt_paint::MoveAndResampleBuffers::new_positions, blender::ed::sculpt_paint::MoveAndResampleBuffers::orig_lengths, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::math::safe_divide(), blender::length_parameterize::sample_at_lengths(), blender::ed::sculpt_paint::MoveAndResampleBuffers::sample_factors, blender::ed::sculpt_paint::MoveAndResampleBuffers::sample_indices, and blender::length_parameterize::segments_num().
Referenced by blender::ed::sculpt_paint::SnakeHookOperatorExecutor::projected_snake_hook(), and blender::ed::sculpt_paint::SnakeHookOperatorExecutor::spherical_snake_hook().
| void blender::ed::sculpt_paint::multiplane_scrape_preview_draw | ( | const uint | gpuattr, |
| const Brush & | brush, | ||
| const SculptSession & | ss, | ||
| const float | outline_col[3], | ||
| const float | outline_alpha ) |
Definition at line 715 of file multiplane_scrape.cc.
References angle(), BRUSH_MULTIPLANE_SCRAPE_PLANES_PREVIEW, SculptSession::cache, DEG2RADF, Brush::flag2, GPU_matrix_mul, GPU_PRIM_LINES, GPU_PRIM_TRIS, immBegin(), immEnd(), immUniformColor3fvAlpha(), immVertex3f(), blender::ed::sculpt_paint::StrokeCache::invert, blender::math::invert(), blender::ed::sculpt_paint::StrokeCache::multiplane_scrape_angle, multiplane_scrape_preview_draw(), blender::ed::sculpt_paint::StrokeCache::pen_flip, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::ed::sculpt_paint::StrokeCache::radius, rotate_v3_v3v3fl(), and blender::ed::sculpt_paint::StrokeCache::stroke_local_mat.
Referenced by multiplane_scrape_preview_draw(), and paint_cursor_cursor_draw_3d_view_brush_cursor_active().
| std::optional< BMVert * > blender::ed::sculpt_paint::nearest_vert_calc_bmesh | ( | const bke::pbvh::Tree & | pbvh, |
| const float3 & | location, | ||
| const float | max_distance, | ||
| const bool | use_original ) |
Definition at line 664 of file sculpt.cc.
References b, BKE_pbvh_bmesh_node_unique_verts(), BM_elem_flag_test, BM_ELEM_HIDDEN, blender::math::distance_squared(), blender::index_mask::IndexMask::index_range(), blender::index_mask::IndexMask::is_empty(), node_in_sphere(), blender::bke::pbvh::Tree::nodes(), blender::threading::parallel_reduce(), blender::bke::pbvh::search_nodes(), and blender::index_mask::IndexMask::slice().
Referenced by find_symm_verts_bmesh(), blender::ed::sculpt_paint::pose::ik_chain_init_topology(), and blender::ed::sculpt_paint::boundary::init_boundary_bmesh().
| std::optional< SubdivCCGCoord > blender::ed::sculpt_paint::nearest_vert_calc_grids | ( | const bke::pbvh::Tree & | pbvh, |
| const SubdivCCG & | subdiv_ccg, | ||
| const float3 & | location, | ||
| const float | max_distance, | ||
| const bool | use_original ) |
Definition at line 610 of file sculpt.cc.
References b, BKE_subdiv_ccg_foreach_visible_grid_vert(), BKE_subdiv_ccg_key_top_level(), blender::math::distance_squared(), SubdivCCG::grid_hidden, SubdivCCGCoord::grid_index, blender::bke::ccg::grid_range(), CCGKey::grid_size, blender::index_mask::IndexMask::index_range(), blender::index_mask::IndexMask::is_empty(), node_in_sphere(), blender::bke::pbvh::Tree::nodes(), blender::threading::parallel_reduce(), SubdivCCG::positions, blender::bke::pbvh::search_nodes(), and blender::index_mask::IndexMask::slice().
Referenced by find_symm_verts_grids(), blender::ed::sculpt_paint::pose::ik_chain_init_topology(), and blender::ed::sculpt_paint::boundary::init_boundary_grids().
| std::optional< int > blender::ed::sculpt_paint::nearest_vert_calc_mesh | ( | const bke::pbvh::Tree & | pbvh, |
| const Span< float3 > | vert_positions, | ||
| const Span< bool > | hide_vert, | ||
| const float3 & | location, | ||
| const float | max_distance, | ||
| const bool | use_original ) |
Definition at line 563 of file sculpt.cc.
References b, blender::math::distance_squared(), blender::index_mask::IndexMask::index_range(), blender::index_mask::IndexMask::is_empty(), blender::Span< T >::is_empty(), node_in_sphere(), blender::bke::pbvh::Tree::nodes(), blender::threading::parallel_reduce(), blender::bke::pbvh::search_nodes(), and blender::index_mask::IndexMask::slice().
Referenced by find_symm_verts_mesh(), blender::ed::sculpt_paint::pose::ik_chain_init_topology(), and blender::ed::sculpt_paint::boundary::init_boundary_mesh().
|
static |
Definition at line 4025 of file sculpt.cc.
References BRUSH_CLOTH_DEFORM_GRAB, Brush::cloth_deform_type, ELEM, need_delta_for_tip_orientation(), Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_CLAY_STRIPS, SCULPT_BRUSH_TYPE_CLAY_THUMB, SCULPT_BRUSH_TYPE_CLOTH, SCULPT_BRUSH_TYPE_MULTIPLANE_SCRAPE, SCULPT_BRUSH_TYPE_NUDGE, SCULPT_BRUSH_TYPE_PINCH, and SCULPT_BRUSH_TYPE_SNAKE_HOOK.
Referenced by brush_delta_update(), and need_delta_for_tip_orientation().
|
static |
Definition at line 4000 of file sculpt.cc.
References BRUSH_ANCHORED, BRUSH_CLOTH_DEFORM_GRAB, Brush::cloth_deform_type, ELEM, Brush::flag, need_delta_from_anchored_origin(), Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_BOUNDARY, SCULPT_BRUSH_TYPE_CLOTH, SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_POSE, SCULPT_BRUSH_TYPE_SMEAR, and SCULPT_BRUSH_TYPE_THUMB.
Referenced by brush_delta_update(), and need_delta_from_anchored_origin().
| std::unique_ptr< CurvesSculptStrokeOperation > blender::ed::sculpt_paint::new_add_operation | ( | ) |
Definition at line 513 of file curves_sculpt_add.cc.
References new_add_operation().
Referenced by new_add_operation(), and start_brush_operation().
| std::unique_ptr< CurvesSculptStrokeOperation > blender::ed::sculpt_paint::new_comb_operation | ( | ) |
Definition at line 405 of file curves_sculpt_comb.cc.
Referenced by start_brush_operation().
| std::unique_ptr< CurvesSculptStrokeOperation > blender::ed::sculpt_paint::new_delete_operation | ( | ) |
Definition at line 275 of file curves_sculpt_delete.cc.
Referenced by start_brush_operation().
| std::unique_ptr< CurvesSculptStrokeOperation > blender::ed::sculpt_paint::new_density_operation | ( | const BrushStrokeMode | brush_mode, |
| const bContext & | C, | ||
| const StrokeExtension & | stroke_start ) |
Definition at line 906 of file curves_sculpt_density.cc.
References new_density_operation(), and use_add_density_mode().
Referenced by new_density_operation(), and start_brush_operation().
| std::unique_ptr< CurvesSculptStrokeOperation > blender::ed::sculpt_paint::new_grow_shrink_operation | ( | const BrushStrokeMode | brush_mode, |
| const bContext & | C ) |
Definition at line 500 of file curves_sculpt_grow_shrink.cc.
References BKE_paint_brush_for_read(), BRUSH_CURVES_SCULPT_FLAG_SCALE_UNIFORM, BRUSH_DIR_IN, BRUSH_STROKE_INVERT, CTX_data_scene(), Brush::curves_sculpt_settings, Brush::flag, and BrushCurvesSculptSettings::flag.
Referenced by start_brush_operation().
| std::unique_ptr< CurvesSculptStrokeOperation > blender::ed::sculpt_paint::new_pinch_operation | ( | const BrushStrokeMode | brush_mode, |
| const bContext & | C ) |
Definition at line 283 of file curves_sculpt_pinch.cc.
References BKE_paint_brush_for_read(), BRUSH_DIR_IN, BRUSH_STROKE_INVERT, CTX_data_scene(), and Brush::flag.
Referenced by start_brush_operation().
| std::unique_ptr< CurvesSculptStrokeOperation > blender::ed::sculpt_paint::new_puff_operation | ( | ) |
Definition at line 344 of file curves_sculpt_puff.cc.
Referenced by start_brush_operation().
| std::unique_ptr< CurvesSculptStrokeOperation > blender::ed::sculpt_paint::new_selection_paint_operation | ( | const BrushStrokeMode | brush_mode, |
| const bContext & | C ) |
Definition at line 391 of file curves_sculpt_selection_paint.cc.
References BKE_paint_brush(), BRUSH_DIR_IN, BRUSH_STROKE_INVERT, BRUSH_STROKE_SMOOTH, CTX_data_scene(), ELEM, Brush::flag, and new_selection_paint_operation().
Referenced by new_selection_paint_operation(), and start_brush_operation().
| std::unique_ptr< CurvesSculptStrokeOperation > blender::ed::sculpt_paint::new_slide_operation | ( | ) |
Definition at line 482 of file curves_sculpt_slide.cc.
References new_slide_operation().
Referenced by new_slide_operation(), and start_brush_operation().
| std::unique_ptr< CurvesSculptStrokeOperation > blender::ed::sculpt_paint::new_smooth_operation | ( | ) |
Definition at line 256 of file curves_sculpt_smooth.cc.
Referenced by start_brush_operation().
| std::unique_ptr< CurvesSculptStrokeOperation > blender::ed::sculpt_paint::new_snake_hook_operation | ( | ) |
Definition at line 305 of file curves_sculpt_snake_hook.cc.
Referenced by start_brush_operation().
|
static |
Definition at line 191 of file sculpt_ops.cc.
References CTX_data_active_object(), blender::bke::pbvh::Grids, OB_MESH, blender::bke::object::pbvh_get(), Object::sculpt, SCULPT_mode_poll(), blender::bke::pbvh::Tree::type(), and Object::type.
Referenced by SCULPT_OT_symmetrize().
| bool blender::ed::sculpt_paint::node_fully_masked_or_hidden | ( | const bke::pbvh::Node & | node | ) |
Definition at line 2315 of file sculpt.cc.
References BKE_pbvh_node_fully_hidden_get(), and BKE_pbvh_node_fully_masked_get().
Referenced by average_mask_border_position(), average_unmasked_position(), blender::ed::sculpt_paint::filter::cache_init(), do_enhance_details_brush(), and pbvh_gather_generic().
| bool blender::ed::sculpt_paint::node_in_cylinder | ( | const DistRayAABB_Precalc & | ray_dist_precalc, |
| const bke::pbvh::Node & | node, | ||
| const float | radius_sq, | ||
| const bool | original ) |
Definition at line 2337 of file sculpt.cc.
References BKE_pbvh_node_get_original_BB(), dist_squared_ray_to_aabb_v3(), blender::Bounds< T >::max, blender::Bounds< T >::min, and blender::bke::pbvh::node_bounds().
Referenced by pbvh_gather_generic(), and blender::ed::sculpt_paint::vwpaint::pbvh_gather_generic().
| bool blender::ed::sculpt_paint::node_in_sphere | ( | const bke::pbvh::Node & | node, |
| const float3 & | location, | ||
| const float | radius_sq, | ||
| const bool | original ) |
Definition at line 2326 of file sculpt.cc.
References BKE_pbvh_node_get_original_BB(), blender::math::clamp(), blender::math::distance_squared(), blender::Bounds< T >::max, blender::Bounds< T >::min, and blender::bke::pbvh::node_bounds().
Referenced by blender::ed::sculpt_paint::cloth::brush_affected_nodes_gather(), blender::ed::sculpt_paint::filter::cache_init(), fake_neighbor_search(), nearest_vert_calc_bmesh(), nearest_vert_calc_grids(), nearest_vert_calc_mesh(), pbvh_gather_cursor_update(), pbvh_gather_generic(), and blender::ed::sculpt_paint::vwpaint::pbvh_gather_generic().
| bool blender::ed::sculpt_paint::object_active_color_fill | ( | Object & | ob, |
| const float | fill_color[4], | ||
| bool | only_selected ) |
Fills the object's active color attribute layer with the fill color.
| only_selected | Limit the fill to selected faces or vertices. |
Definition at line 2269 of file paint_vertex.cc.
References fill_active_color().
Referenced by blender::ed::geometry::geometry_color_attribute_add_exec().
| void blender::ed::sculpt_paint::object_sculpt_mode_enter | ( | bContext * | C, |
| Depsgraph & | depsgraph, | ||
| ReportList * | reports ) |
Definition at line 470 of file sculpt_ops.cc.
References BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), depsgraph, and object_sculpt_mode_enter().
| void blender::ed::sculpt_paint::object_sculpt_mode_enter | ( | Main & | bmain, |
| Depsgraph & | depsgraph, | ||
| Scene & | scene, | ||
| Object & | ob, | ||
| bool | force_dyntopo, | ||
| ReportList * | reports ) |
Definition at line 377 of file sculpt_ops.cc.
References BKE_mesh_from_object(), BKE_paint_get_active_from_paintmode(), BKE_paint_init(), BKE_report(), BKE_reportf(), BKE_sculpt_multires_active(), BLI_assert_unreachable, blender::ed::sculpt_paint::dyntopo::check_attribute_warning(), DEG_id_tag_update(), depsgraph, blender::ed::sculpt_paint::undo::DyntopoBegin, ED_paint_cursor_start(), blender::ed::sculpt_paint::dyntopo::EDATA, blender::ed::sculpt_paint::dyntopo::enable_ex(), ensure_valid_pivot(), fabsf, ListBase::first, flag, Object::id, ID_RECALC_SYNC_TO_EVAL, init_sculpt_mode_session(), is_negative_m4(), blender::ed::sculpt_paint::dyntopo::LDATA, ME_SCULPT_DYNAMIC_TOPOLOGY, Object::mode, blender::ed::sculpt_paint::dyntopo::MODIFIER, OB_MODE_SCULPT, PAINT_CURSOR_SCULPT, blender::ed::sculpt_paint::undo::push_begin_ex(), blender::ed::sculpt_paint::undo::push_end(), blender::ed::sculpt_paint::undo::push_node(), RPT_, RPT_WARNING, Object::scale, Sculpt, SCULPT_brush_cursor_poll(), wmWindowManager::undo_stack, blender::ed::sculpt_paint::dyntopo::VDATA, and Main::wm.
Referenced by ED_editors_init(), object_sculpt_mode_enter(), sculpt_mode_toggle_exec(), and blender::ed::sculpt_paint::undo::step_decode().
| void blender::ed::sculpt_paint::object_sculpt_mode_exit | ( | bContext * | C, |
| Depsgraph & | depsgraph ) |
Definition at line 525 of file sculpt_ops.cc.
References BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), depsgraph, and object_sculpt_mode_exit().
| void blender::ed::sculpt_paint::object_sculpt_mode_exit | ( | Main & | bmain, |
| Depsgraph & | depsgraph, | ||
| Scene & | scene, | ||
| Object & | ob ) |
Definition at line 480 of file sculpt_ops.cc.
References BKE_mesh_from_object(), BKE_object_free_derived_caches(), BKE_sculpt_multires_active(), BKE_sculptsession_free(), SculptSession::bm, DEG_id_tag_update(), depsgraph, blender::ed::sculpt_paint::dyntopo::disable_with_undo(), Object::id, ID_RECALC_GEOMETRY, ID_RECALC_SYNC_TO_EVAL, ME_SCULPT_DYNAMIC_TOPOLOGY, Object::mode, multires_flush_sculpt_updates(), OB_MODE_SCULPT, paint_cursor_delete_textures(), and Object::sculpt.
Referenced by blender::ed::object::ed_object_mode_generic_exit_ex(), geometry_extract_apply(), object_sculpt_mode_exit(), and sculpt_mode_toggle_exec().
|
static |
Definition at line 122 of file draw.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, depsgraph, blender::ed::sculpt_paint::PositionDeformData::eval, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), SubdivCCG::positions, blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), 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(), and do_nudge_brush().
|
static |
Definition at line 134 of file draw_sharp.cc.
References BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, depsgraph, blender::ed::sculpt_paint::PositionDeformData::eval, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), SubdivCCG::positions, blender::bke::pbvh::Tree::tag_positions_changed(), blender::bke::pbvh::Tree::type(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), and blender::bke::pbvh::update_node_bounds_mesh().
| void blender::ed::sculpt_paint::operatortypes_sculpt | ( | ) |
Definition at line 1502 of file sculpt_ops.cc.
References SCULPT_OT_brush_stroke(), blender::ed::sculpt_paint::cloth::SCULPT_OT_cloth_filter(), blender::ed::sculpt_paint::color::SCULPT_OT_color_filter(), blender::ed::sculpt_paint::dyntopo::SCULPT_OT_detail_flood_fill(), blender::ed::sculpt_paint::dyntopo::SCULPT_OT_dynamic_topology_toggle(), blender::ed::sculpt_paint::dyntopo::SCULPT_OT_dyntopo_detail_size_edit(), blender::ed::sculpt_paint::expand::SCULPT_OT_expand(), blender::ed::sculpt_paint::face_set::SCULPT_OT_face_set_box_gesture(), blender::ed::sculpt_paint::face_set::SCULPT_OT_face_set_change_visibility(), blender::ed::sculpt_paint::face_set::SCULPT_OT_face_set_lasso_gesture(), blender::ed::sculpt_paint::face_set::SCULPT_OT_face_set_line_gesture(), blender::ed::sculpt_paint::face_set::SCULPT_OT_face_set_polyline_gesture(), blender::ed::sculpt_paint::face_set::SCULPT_OT_face_sets_create(), blender::ed::sculpt_paint::face_set::SCULPT_OT_face_sets_edit(), blender::ed::sculpt_paint::face_set::SCULPT_OT_face_sets_init(), blender::ed::sculpt_paint::face_set::SCULPT_OT_face_sets_randomize_colors(), blender::ed::sculpt_paint::mask::SCULPT_OT_mask_by_color(), blender::ed::sculpt_paint::mask::SCULPT_OT_mask_filter(), blender::ed::sculpt_paint::mask::SCULPT_OT_mask_from_boundary(), blender::ed::sculpt_paint::mask::SCULPT_OT_mask_from_cavity(), blender::ed::sculpt_paint::mask::SCULPT_OT_mask_init(), blender::ed::sculpt_paint::filter::SCULPT_OT_mesh_filter(), SCULPT_OT_optimize(), blender::ed::sculpt_paint::project::SCULPT_OT_project_line_gesture(), SCULPT_OT_sample_color(), blender::ed::sculpt_paint::dyntopo::SCULPT_OT_sample_detail_size(), SCULPT_OT_sculptmode_toggle(), SCULPT_OT_set_persistent_base(), SCULPT_OT_set_pivot_position(), SCULPT_OT_symmetrize(), blender::ed::sculpt_paint::trim::SCULPT_OT_trim_box_gesture(), blender::ed::sculpt_paint::trim::SCULPT_OT_trim_lasso_gesture(), blender::ed::sculpt_paint::trim::SCULPT_OT_trim_line_gesture(), blender::ed::sculpt_paint::trim::SCULPT_OT_trim_polyline_gesture(), and WM_operatortype_append().
|
static |
Definition at line 157 of file sculpt_ops.cc.
References BKE_sculptsession_free_pbvh(), CTX_data_active_object(), DEG_id_tag_update(), Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_DRAW, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by SCULPT_OT_optimize().
|
inline |
Definition at line 753 of file sculpt_intern.hh.
References orig_color_data_lookup_mesh().
Referenced by blender::ed::sculpt_paint::color::color_filter_task(), and blender::ed::sculpt_paint::color::do_paint_brush_task().
| std::optional< Span< float4 > > blender::ed::sculpt_paint::orig_color_data_lookup_mesh | ( | const Object & | object, |
| const bke::pbvh::MeshNode & | node ) |
Definition at line 2236 of file sculpt_undo.cc.
References blender::ed::sculpt_paint::undo::Node::col, blender::ed::sculpt_paint::undo::Color, and blender::ed::sculpt_paint::undo::get_node().
Referenced by orig_color_data_get_mesh(), and blender::ed::sculpt_paint::undo::restore_color_from_undo_step().
| std::optional< Span< int > > blender::ed::sculpt_paint::orig_face_set_data_lookup_grids | ( | const Object & | object, |
| const bke::pbvh::GridsNode & | node ) |
Definition at line 2256 of file sculpt_undo.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::ed::sculpt_paint::undo::Node::face_sets, blender::ed::sculpt_paint::undo::FaceSet, and blender::ed::sculpt_paint::undo::get_node().
Referenced by blender::ed::sculpt_paint::undo::restore_face_set_from_undo_step().
| std::optional< Span< int > > blender::ed::sculpt_paint::orig_face_set_data_lookup_mesh | ( | const Object & | object, |
| const bke::pbvh::MeshNode & | node ) |
Definition at line 2246 of file sculpt_undo.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::ed::sculpt_paint::undo::Node::face_sets, blender::ed::sculpt_paint::undo::FaceSet, and blender::ed::sculpt_paint::undo::get_node().
Referenced by blender::ed::sculpt_paint::undo::restore_face_set_from_undo_step().
| std::optional< Span< float > > blender::ed::sculpt_paint::orig_mask_data_lookup_grids | ( | const Object & | object, |
| const bke::pbvh::GridsNode & | node ) |
Definition at line 2276 of file sculpt_undo.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::ed::sculpt_paint::undo::get_node(), blender::ed::sculpt_paint::undo::Mask, and blender::ed::sculpt_paint::undo::Node::mask.
Referenced by blender::ed::sculpt_paint::undo::restore_mask_from_undo_step().
| std::optional< Span< float > > blender::ed::sculpt_paint::orig_mask_data_lookup_mesh | ( | const Object & | object, |
| const bke::pbvh::MeshNode & | node ) |
Definition at line 2266 of file sculpt_undo.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::ed::sculpt_paint::undo::get_node(), blender::ed::sculpt_paint::undo::Mask, and blender::ed::sculpt_paint::undo::Node::mask.
Referenced by blender::ed::sculpt_paint::undo::restore_mask_from_undo_step().
| void blender::ed::sculpt_paint::orig_position_data_gather_bmesh | ( | const BMLog & | bm_log, |
| const Set< BMVert *, 0 > & | verts, | ||
| MutableSpan< float3 > | positions, | ||
| MutableSpan< float3 > | normals ) |
Definition at line 2216 of file sculpt_undo.cc.
References BM_log_original_vert_data(), and verts.
Referenced by calc_area_normal_and_center_node_bmesh(), blender::ed::sculpt_paint::boundary::calc_bend_bmesh(), blender::ed::sculpt_paint::pose::calc_bmesh(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), blender::ed::sculpt_paint::boundary::calc_grab_bmesh(), blender::ed::sculpt_paint::boundary::calc_inflate_bmesh(), blender::ed::sculpt_paint::filter::calc_inflate_filter(), blender::ed::sculpt_paint::filter::calc_random_filter(), blender::ed::sculpt_paint::filter::calc_scale_filter(), blender::ed::sculpt_paint::boundary::calc_slide_bmesh(), blender::ed::sculpt_paint::boundary::calc_smooth_bmesh(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), blender::ed::sculpt_paint::filter::calc_sphere_filter(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_bmesh(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), and transform_node_bmesh().
|
inline |
Definition at line 738 of file sculpt_intern.hh.
References BLI_assert, orig_position_data_lookup_grids(), and result.
Referenced by blender::ed::sculpt_paint::boundary::calc_bend_grids(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), blender::ed::sculpt_paint::filter::calc_erase_displacement_filter(), blender::ed::sculpt_paint::boundary::calc_grab_grids(), blender::ed::sculpt_paint::pose::calc_grids(), blender::ed::sculpt_paint::filter::calc_inflate_filter(), blender::ed::sculpt_paint::boundary::calc_inflate_grids(), blender::ed::sculpt_paint::filter::calc_random_filter(), blender::ed::sculpt_paint::filter::calc_scale_filter(), blender::ed::sculpt_paint::boundary::calc_slide_grids(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_smooth_grids(), blender::ed::sculpt_paint::filter::calc_sphere_filter(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_grids(), and transform_node_grids().
|
inline |
Definition at line 728 of file sculpt_intern.hh.
References BLI_assert, orig_position_data_lookup_mesh(), and result.
Referenced by blender::ed::sculpt_paint::boundary::calc_bend_mesh(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), blender::ed::sculpt_paint::boundary::calc_grab_mesh(), blender::ed::sculpt_paint::filter::calc_inflate_filter(), blender::ed::sculpt_paint::boundary::calc_inflate_mesh(), blender::ed::sculpt_paint::pose::calc_mesh(), blender::ed::sculpt_paint::filter::calc_random_filter(), blender::ed::sculpt_paint::filter::calc_scale_filter(), blender::ed::sculpt_paint::boundary::calc_slide_mesh(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_smooth_mesh(), blender::ed::sculpt_paint::filter::calc_sphere_filter(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_mesh(), and transform_node_mesh().
| std::optional< OrigPositionData > blender::ed::sculpt_paint::orig_position_data_lookup_grids | ( | const Object & | object, |
| const bke::pbvh::GridsNode & | node ) |
Definition at line 2206 of file sculpt_undo.cc.
References blender::ed::sculpt_paint::undo::get_node(), blender::ed::sculpt_paint::undo::Node::normal, blender::ed::sculpt_paint::undo::Position, and blender::ed::sculpt_paint::undo::Node::position.
Referenced by calc_area_normal_and_center_node_grids(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), orig_position_data_get_grids(), and blender::ed::sculpt_paint::undo::restore_position_from_undo_step().
| std::optional< OrigPositionData > blender::ed::sculpt_paint::orig_position_data_lookup_mesh | ( | const Object & | object, |
| const bke::pbvh::MeshNode & | node ) |
Definition at line 2195 of file sculpt_undo.cc.
References orig_position_data_lookup_mesh_all_verts(), blender::ed::sculpt_paint::OrigPositionData::positions, and blender::Span< T >::take_front().
Referenced by calc_area_normal_and_center_node_mesh(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), orig_position_data_get_mesh(), and blender::ed::sculpt_paint::undo::restore_position_from_undo_step().
| std::optional< OrigPositionData > blender::ed::sculpt_paint::orig_position_data_lookup_mesh_all_verts | ( | const Object & | object, |
| const bke::pbvh::MeshNode & | node ) |
Retrieve positions from the latest undo state. This is often used for modal actions that depend on the initial state of the geometry from before the start of the action.
Definition at line 2185 of file sculpt_undo.cc.
References blender::ed::sculpt_paint::undo::get_node(), blender::ed::sculpt_paint::undo::Node::normal, blender::ed::sculpt_paint::undo::Position, and blender::ed::sculpt_paint::undo::Node::position.
Referenced by orig_position_data_lookup_mesh().
| bool blender::ed::sculpt_paint::paint_brush_cursor_poll | ( | bContext * | C | ) |
Returns true if the brush cursor should be activated.
Definition at line 1755 of file paint_stroke.cc.
References brush_tool_get(), bToolRef_Runtime::cursor, bToolRef::runtime, and WM_CURSOR_DEFAULT.
Referenced by paint_stroke_modal().
|
static |
Definition at line 535 of file paint_stroke.cc.
References add_v3_v3(), BKE_brush_use_alpha_pressure(), BKE_brush_use_size_pressure(), BKE_paint_brush_for_read(), BKE_paint_get_active_from_context(), BKE_paintmode_get_active_from_context(), BRUSH_SPACING_PRESSURE, copy_v2_v2(), copy_v3_v3(), CTX_data_scene(), Brush::dash_ratio, Brush::dash_samples, float, UnifiedPaintSettings::last_hit, UnifiedPaintSettings::last_location, blender::ed::sculpt_paint::PaintStroke::last_mouse_position, blender::ed::sculpt_paint::PaintStroke::last_pressure, blender::ed::sculpt_paint::PaintStroke::last_scene_spacing_delta, blender::ed::sculpt_paint::PaintStroke::last_world_space_position, mul_m4_v3(), ViewContext::obact, blender::ed::sculpt_paint::PaintStroke::original, paint_brush_update(), paint_stroke_jitter_pos(), paint_stroke_use_dash(), paint_stroke_use_scene_spacing(), blender::ed::sculpt_paint::PaintStroke::pen_flip, UnifiedPaintSettings::pixel_radius, wmOperator::ptr, RNA_boolean_set(), RNA_collection_add(), RNA_collection_clear(), RNA_float_set(), RNA_float_set_array(), SCULPT_stroke_get_location(), blender::ed::sculpt_paint::PaintStroke::tot_samples, blender::ed::sculpt_paint::PaintStroke::update_step, blender::ed::sculpt_paint::PaintStroke::ups, blender::ed::sculpt_paint::PaintStroke::vc, blender::ed::sculpt_paint::PaintStroke::x_tilt, and blender::ed::sculpt_paint::PaintStroke::y_tilt.
Referenced by paint_line_strokes_spacing(), paint_space_stroke(), paint_stroke_curve_end(), paint_stroke_line_end(), and paint_stroke_modal().
| bool blender::ed::sculpt_paint::paint_brush_tool_poll | ( | bContext * | C | ) |
Returns true if the active tool uses brushes.
Definition at line 1749 of file paint_stroke.cc.
References brush_tool_get().
Referenced by paint_cursor_context_init(), paint_cursor_draw_3d_view_brush_cursor_inactive(), and SCULPT_poll().
| bool blender::ed::sculpt_paint::paint_brush_update | ( | bContext * | C, |
| const Brush & | brush, | ||
| PaintMode | mode, | ||
| PaintStroke * | stroke, | ||
| const float | mouse_init[2], | ||
| float | mouse[2], | ||
| float | pressure, | ||
| float | r_location[3], | ||
| bool * | r_location_is_set ) |
Initialize the stroke cache variants from operator properties.
Definition at line 286 of file paint_stroke.cc.
References UnifiedPaintSettings::anchored_initial_mouse, UnifiedPaintSettings::anchored_size, atan2f, BKE_brush_randomize_texture_coords(), BKE_brush_size_get(), BKE_brush_use_size_pressure(), BRUSH_ANCHORED, MTex::brush_angle_mode, BRUSH_CURVE, BRUSH_EDGE_TO_EDGE, blender::ed::sculpt_paint::PaintStroke::brush_init, MTex::brush_map_mode, UnifiedPaintSettings::brush_rotation, UnifiedPaintSettings::brush_rotation_sec, blender::ed::sculpt_paint::PaintStroke::cached_size_pressure, copy_v2_v2(), CTX_data_scene(), UnifiedPaintSettings::draw_anchored, ELEM, Brush::flag, float, blender::RandomNumberGenerator::from_random_seed(), blender::ed::sculpt_paint::PaintStroke::get_location, image_paint_brush_type_require_location(), blender::ed::sculpt_paint::PaintStroke::initial_mouse, UnifiedPaintSettings::initial_pixel_radius, UnifiedPaintSettings::last_rake, M_PI, Brush::mask_mtex, UnifiedPaintSettings::mask_tex_mouse, Brush::mtex, MTEX_ANGLE_RANDOM, MTEX_MAP_MODE_AREA, MTEX_MAP_MODE_RANDOM, MTEX_MAP_MODE_VIEW, blender::ed::sculpt_paint::PaintStroke::original, paint_calculate_rake_rotation(), paint_supports_dynamic_size(), paint_supports_dynamic_tex_coords(), UnifiedPaintSettings::pixel_radius, blender::ed::sculpt_paint::PaintStroke::rake_started, MTex::random_angle, blender::ed::sculpt_paint::PaintStroke::rng, UnifiedPaintSettings::size_pressure_value, sqrtf, UnifiedPaintSettings::stroke_active, blender::ed::sculpt_paint::PaintStroke::stroke_distance, MTex::tex, UnifiedPaintSettings::tex_mouse, blender::ed::sculpt_paint::PaintStroke::ups, zero_v3(), and blender::ed::sculpt_paint::PaintStroke::zoom_2d.
Referenced by paint_brush_stroke_add_step(), and blender::ed::sculpt_paint::image::ops::paint::paint_exec().
|
static |
Definition at line 2079 of file paint_cursor.cc.
References blender::ed::sculpt_paint::PaintCursorContext::alpha_overlay_drawn, blender::ed::sculpt_paint::PaintCursorContext::brush, blender::ed::sculpt_paint::PaintCursorContext::mode, paint_draw_alpha_overlay(), blender::ed::sculpt_paint::PaintCursorContext::ups, blender::ed::sculpt_paint::PaintCursorContext::vc, blender::ed::sculpt_paint::PaintCursorContext::x, blender::ed::sculpt_paint::PaintCursorContext::y, and blender::ed::sculpt_paint::PaintCursorContext::zoomx.
Referenced by paint_draw_cursor().
|
static |
Definition at line 1289 of file paint_cursor.cc.
References Brush::add_col, BKE_brush_sculpt_has_secondary_color(), BKE_brush_size_get(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_paintmode_get_active_from_context(), blender::ed::sculpt_paint::PaintCursorContext::brush, BRUSH_CURVE, BRUSH_DIR_IN, blender::ed::sculpt_paint::PaintCursorContext::C, C, copy_v3_fl(), copy_v3_v3(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_region(), CTX_wm_window(), blender::ed::sculpt_paint::PaintCursorContext::cursor_type, blender::ed::sculpt_paint::PaintCursorContext::depsgraph, SculptSession::draw_faded_cursor, UnifiedPaintSettings::draw_inverted, ED_view3d_viewcontext_init(), blender::ed::sculpt_paint::PaintCursorContext::final_radius, Brush::flag, float, get_imapaint_zoom(), blender::ed::sculpt_paint::PaintCursorContext::is_stroke_active, max_ff(), blender::ed::sculpt_paint::PaintCursorContext::mode, ViewContext::obact, blender::ed::sculpt_paint::PaintCursorContext::outline_alpha, blender::ed::sculpt_paint::PaintCursorContext::outline_col, blender::ed::sculpt_paint::PaintCursorContext::paint, paint_brush_tool_poll(), PAINT_CURSOR_2D, PAINT_CURSOR_3D, PAINT_CURSOR_CURVE, paint_use_2d_cursor(), blender::ed::sculpt_paint::PaintCursorContext::region, RGN_TYPE_WINDOW, blender::ed::sculpt_paint::PaintCursorContext::scene, Object::sculpt, blender::ed::sculpt_paint::PaintCursorContext::ss, UnifiedPaintSettings::stroke_active, Brush::sub_col, Scene::toolsettings, blender::ed::sculpt_paint::PaintCursorContext::translation, ToolSettings::unified_paint_settings, blender::ed::sculpt_paint::PaintCursorContext::ups, blender::ed::sculpt_paint::PaintCursorContext::vc, blender::ed::sculpt_paint::PaintCursorContext::win, blender::ed::sculpt_paint::PaintCursorContext::wm, blender::ed::sculpt_paint::PaintCursorContext::x, x, blender::ed::sculpt_paint::PaintCursorContext::y, y, and blender::ed::sculpt_paint::PaintCursorContext::zoomx.
Referenced by paint_draw_cursor().
|
static |
Definition at line 1949 of file paint_cursor.cc.
References BLI_assert, blender::ed::sculpt_paint::PaintCursorContext::brush, BRUSH_CLOTH_FORCE_FALLOFF_PLANE, BRUSH_CLOTH_FORCE_FALLOFF_RADIAL, BRUSH_CLOTH_SIMULATION_AREA_LOCAL, blender::ed::sculpt_paint::PaintCursorContext::C, SculptSession::cache, Brush::cloth_force_falloff_type, Brush::cloth_sim_limit, Brush::cloth_simulation_area_type, CTX_wm_view3d(), blender::ed::sculpt_paint::PaintCursorContext::depsgraph, ED_view3d_draw_setup_view(), GPU_matrix_mul, GPU_matrix_pop(), GPU_matrix_pop_projection(), GPU_matrix_push(), GPU_matrix_push_projection(), blender::ed::sculpt_paint::StrokeCache::initial_location, blender::ed::sculpt_paint::StrokeCache::initial_normal, len_v3v3(), blender::ed::sculpt_paint::StrokeCache::location, blender::ed::sculpt_paint::PaintCursorContext::mode, multiplane_scrape_preview_draw(), ViewContext::obact, blender::ed::sculpt_paint::PaintCursorContext::outline_alpha, blender::ed::sculpt_paint::PaintCursorContext::outline_col, blender::ed::sculpt_paint::cloth::plane_falloff_preview_draw(), blender::ed::sculpt_paint::PaintCursorContext::pos, blender::ed::sculpt_paint::StrokeCache::radius, red, blender::ed::sculpt_paint::PaintCursorContext::region, blender::ed::sculpt_paint::PaintCursorContext::scene, Sculpt, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_CLOTH, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_MULTIPLANE_SCRAPE, sculpt_geometry_preview_lines_draw(), SCULPT_stroke_is_first_brush_step_of_symmetry_pass(), blender::ed::sculpt_paint::cloth::simulation_limits_draw(), blender::ed::sculpt_paint::PaintCursorContext::ss, blender::ed::sculpt_paint::PaintCursorContext::vc, blender::ed::sculpt_paint::PaintCursorContext::win, ARegion::winrct, blender::ed::sculpt_paint::PaintCursorContext::wm, wmViewport(), and wmWindowViewport().
Referenced by paint_cursor_draw_3D_view_brush_cursor().
|
static |
Definition at line 2029 of file paint_cursor.cc.
References blender::ed::sculpt_paint::PaintCursorContext::is_stroke_active, blender::ed::sculpt_paint::PaintCursorContext::mode, paint_cursor_cursor_draw_3d_view_brush_cursor_active(), paint_cursor_draw_3d_view_brush_cursor_inactive(), paint_cursor_sculpt_session_update_and_init(), paint_draw_legacy_3D_view_brush_cursor(), Sculpt, and blender::ed::sculpt_paint::PaintCursorContext::ss.
Referenced by paint_draw_cursor().
|
static |
Definition at line 1757 of file paint_cursor.cc.
References SculptSession::active_vert(), SculptSession::active_vert_index(), SculptSession::active_vert_position(), blender::ed::sculpt_paint::PaintCursorContext::alpha_overlay_drawn, BKE_sculpt_update_object_for_edit(), BLI_assert, bm, SculptSession::bm, BM_vert_at_index(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::PaintCursorContext::brush, BRUSH_CLOTH_SIMULATION_AREA_GLOBAL, BRUSH_GRAB_ACTIVE_VERTEX, blender::ed::sculpt_paint::PaintCursorContext::C, Brush::cloth_simulation_area_type, BMVert::co, CTX_wm_view3d(), cursor_draw_point_screen_space(), cursor_draw_point_with_symmetry(), blender::ed::sculpt_paint::PaintCursorContext::depsgraph, ED_view3d_draw_setup_view(), blender::ed::sculpt_paint::boundary::edges_preview_draw(), SculptSession::expand_cache, Brush::falloff_shape, Brush::flag, geometry_preview_lines_update(), GPU_matrix_mul, GPU_matrix_pop(), GPU_matrix_pop_projection(), GPU_matrix_push(), GPU_matrix_push_projection(), blender::bke::pbvh::Grids, immUniformColor3fvAlpha(), blender::ed::sculpt_paint::expand::Cache::initial_active_vert, blender::ed::sculpt_paint::PaintCursorContext::is_cursor_over_mesh, len_v3v3(), blender::ed::sculpt_paint::PaintCursorContext::location, blender::bke::pbvh::Mesh, ViewContext::obact, blender::ed::sculpt_paint::PaintCursorContext::outline_alpha, blender::ed::sculpt_paint::PaintCursorContext::outline_col, paint_brush_tool_poll(), paint_cursor_draw_main_inactive_cursor(), paint_cursor_drawing_setup_cursor_space(), paint_cursor_pose_brush_origins_draw(), paint_cursor_pose_brush_segments_draw(), paint_cursor_preview_boundary_data_pivot_draw(), paint_cursor_preview_boundary_data_update(), paint_cursor_update_object_space_radius(), paint_draw_3D_view_inactive_brush_cursor(), paint_draw_legacy_3D_view_brush_cursor(), PAINT_FALLOFF_SHAPE_TUBE, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::boundary::pivot_line_preview_draw(), blender::ed::sculpt_paint::PaintCursorContext::pos, SculptSession::pose_ik_chain_preview, SubdivCCG::positions, blender::ed::sculpt_paint::PaintCursorContext::prev_active_vert_index, blender::ed::sculpt_paint::pose::preview_ik_chain_init(), blender::ed::sculpt_paint::PaintCursorContext::radius, blender::ed::sculpt_paint::PaintCursorContext::region, blender::ed::sculpt_paint::PaintCursorContext::scene, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_BOUNDARY, SCULPT_BRUSH_TYPE_CLOTH, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_LAYER, SCULPT_BRUSH_TYPE_POSE, sculpt_geometry_preview_lines_draw(), SCULPT_layer_brush_height_preview_draw(), SCULPT_vertex_random_access_ensure(), blender::ed::sculpt_paint::PaintCursorContext::sd, blender::ed::sculpt_paint::cloth::simulation_limits_draw(), blender::ed::sculpt_paint::PaintCursorContext::ss, SculptSession::subdiv_ccg, blender::ed::sculpt_paint::PaintCursorContext::vc, blender::bke::pbvh::vert_positions_eval(), vert_positions_for_grab_active_get(), blender::ed::sculpt_paint::PaintCursorContext::win, ARegion::winrct, blender::ed::sculpt_paint::PaintCursorContext::wm, wmViewport(), and wmWindowViewport().
Referenced by paint_cursor_draw_3D_view_brush_cursor().
|
static |
Definition at line 1687 of file paint_cursor.cc.
References Brush::alpha, blender::ed::sculpt_paint::PaintCursorContext::brush, clamp_f(), GPU_line_width(), imm_draw_circle_wire_3d(), immUniformColor3fvAlpha(), blender::ed::sculpt_paint::PaintCursorContext::outline_alpha, blender::ed::sculpt_paint::PaintCursorContext::outline_col, blender::ed::sculpt_paint::PaintCursorContext::pos, and blender::ed::sculpt_paint::PaintCursorContext::radius.
Referenced by paint_cursor_draw_3d_view_brush_cursor_inactive().
|
static |
Definition at line 1674 of file paint_cursor.cc.
References copy_m4_m4(), GPU_matrix_mul, blender::ed::sculpt_paint::PaintCursorContext::location, blender::ed::sculpt_paint::PaintCursorContext::normal, ViewContext::obact, quat_to_mat4(), rotation_between_vecs_to_quat(), translate_m4(), and blender::ed::sculpt_paint::PaintCursorContext::vc.
Referenced by paint_cursor_draw_3d_view_brush_cursor_inactive().
|
static |
Definition at line 2049 of file paint_cursor.cc.
References RegionView3D::rflag, ViewContext::rv3d, RV3D_NAVIGATING, and blender::ed::sculpt_paint::PaintCursorContext::vc.
Referenced by paint_draw_cursor().
|
static |
Definition at line 2055 of file paint_cursor.cc.
References blender::ed::sculpt_paint::PaintCursorContext::brush, ELEM, Paint::flags, Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_FILL, blender::ed::sculpt_paint::PaintCursorContext::mode, blender::ed::sculpt_paint::PaintCursorContext::paint, PAINT_SHOW_BRUSH, Texture2D, and Texture3D.
Referenced by paint_draw_cursor().
|
static |
Definition at line 1717 of file paint_cursor.cc.
References cursor_draw_point_screen_space(), immUniformColor4f(), ViewContext::obact, blender::ed::sculpt_paint::PaintCursorContext::pos, SculptSession::pose_ik_chain_preview, blender::ed::sculpt_paint::PaintCursorContext::region, blender::ed::sculpt_paint::PaintCursorContext::ss, and blender::ed::sculpt_paint::PaintCursorContext::vc.
Referenced by paint_cursor_draw_3d_view_brush_cursor_inactive().
|
static |
Definition at line 1699 of file paint_cursor.cc.
References BLI_assert, GPU_line_width(), GPU_PRIM_LINES, immBegin(), immEnd(), immUniformColor4f(), immVertex3fv(), blender::ed::sculpt_paint::PaintCursorContext::pos, SculptSession::pose_ik_chain_preview, and blender::ed::sculpt_paint::PaintCursorContext::ss.
Referenced by paint_cursor_draw_3d_view_brush_cursor_inactive().
|
static |
Definition at line 1731 of file paint_cursor.cc.
References SculptSession::boundary_preview, cursor_draw_point_screen_space(), immUniformColor4f(), ViewContext::obact, blender::ed::sculpt_paint::PaintCursorContext::pos, blender::ed::sculpt_paint::PaintCursorContext::region, blender::ed::sculpt_paint::PaintCursorContext::ss, and blender::ed::sculpt_paint::PaintCursorContext::vc.
Referenced by paint_cursor_draw_3d_view_brush_cursor_inactive().
|
static |
Definition at line 1746 of file paint_cursor.cc.
References BKE_sculpt_update_object_for_edit(), SculptSession::boundary_preview, blender::ed::sculpt_paint::PaintCursorContext::brush, blender::ed::sculpt_paint::PaintCursorContext::depsgraph, ViewContext::obact, blender::ed::sculpt_paint::boundary::preview_data_init(), blender::ed::sculpt_paint::PaintCursorContext::radius, blender::ed::sculpt_paint::PaintCursorContext::ss, and blender::ed::sculpt_paint::PaintCursorContext::vc.
Referenced by paint_cursor_draw_3d_view_brush_cursor_inactive().
|
static |
Definition at line 2121 of file paint_cursor.cc.
References GPU_blend(), GPU_BLEND_NONE, GPU_line_smooth(), and immUnbindProgram().
Referenced by paint_draw_cursor().
|
static |
Definition at line 1394 of file paint_cursor.cc.
References SculptSession::active_vert_index(), BKE_brush_size_set(), BKE_brush_use_locked_size(), BLI_assert, blender::ed::sculpt_paint::PaintCursorContext::brush, blender::ed::sculpt_paint::PaintCursorContext::C, copy_v3_v3(), CTX_data_tool_settings(), blender::ed::sculpt_paint::PaintCursorContext::depsgraph, Brush::falloff_shape, float, blender::ed::sculpt_paint::PaintCursorContext::is_cursor_over_mesh, UnifiedPaintSettings::last_hit, UnifiedPaintSettings::last_location, blender::ed::sculpt_paint::PaintCursorContext::location, SculptCursorGeometryInfo::location, blender::ed::sculpt_paint::PaintCursorContext::mode, blender::ed::sculpt_paint::PaintCursorContext::normal, SculptCursorGeometryInfo::normal, ViewContext::obact, paint_cursor_update_pixel_radius(), paint_cursor_update_unprojected_radius(), PAINT_FALLOFF_SHAPE_SPHERE, blender::bke::object::pbvh_ensure(), blender::ed::sculpt_paint::PaintCursorContext::pixel_radius, blender::ed::sculpt_paint::PaintCursorContext::prev_active_vert_index, blender::ed::sculpt_paint::PaintCursorContext::region, blender::ed::sculpt_paint::PaintCursorContext::scene, blender::ed::sculpt_paint::PaintCursorContext::scene_space_location, Sculpt, ToolSettings::sculpt, SCULPT_cursor_geometry_info_update(), blender::ed::sculpt_paint::PaintCursorContext::sd, blender::ed::sculpt_paint::PaintCursorContext::ss, UnifiedPaintSettings::stroke_active, blender::ed::sculpt_paint::PaintCursorContext::ups, blender::ed::sculpt_paint::PaintCursorContext::vc, ARegion::winrct, blender::ed::sculpt_paint::PaintCursorContext::x, rcti::xmin, blender::ed::sculpt_paint::PaintCursorContext::y, and rcti::ymin.
Referenced by paint_cursor_draw_3D_view_brush_cursor().
|
static |
Definition at line 2101 of file paint_cursor.cc.
References GPU_blend(), GPU_BLEND_ALPHA, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_line_width(), GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immVertexFormat(), and blender::ed::sculpt_paint::PaintCursorContext::pos.
Referenced by paint_draw_cursor().
|
static |
Definition at line 2111 of file paint_cursor.cc.
References GPU_blend(), GPU_BLEND_ALPHA, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_line_width(), GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immVertexFormat(), and blender::ed::sculpt_paint::PaintCursorContext::pos.
Referenced by paint_draw_cursor().
|
static |
Definition at line 2090 of file paint_cursor.cc.
References UnifiedPaintSettings::anchored_initial_mouse, UnifiedPaintSettings::anchored_size, copy_v2_fl2(), UnifiedPaintSettings::draw_anchored, blender::ed::sculpt_paint::PaintCursorContext::final_radius, blender::ed::sculpt_paint::PaintCursorContext::region, blender::ed::sculpt_paint::PaintCursorContext::translation, blender::ed::sculpt_paint::PaintCursorContext::ups, ARegion::winrct, rcti::xmin, and rcti::ymin.
Referenced by paint_draw_cursor().
|
static |
Definition at line 1663 of file paint_cursor.cc.
References BKE_brush_size_get(), BKE_brush_unprojected_radius_get(), BKE_brush_use_locked_size(), blender::ed::sculpt_paint::PaintCursorContext::brush, blender::ed::sculpt_paint::PaintCursorContext::location, paint_calc_object_space_radius(), blender::ed::sculpt_paint::PaintCursorContext::radius, blender::ed::sculpt_paint::PaintCursorContext::scene, and blender::ed::sculpt_paint::PaintCursorContext::vc.
Referenced by paint_cursor_draw_3d_view_brush_cursor_inactive().
|
static |
Definition at line 1370 of file paint_cursor.cc.
References BKE_brush_size_get(), BKE_brush_unprojected_radius_get(), BKE_paint_brush(), blender::ed::sculpt_paint::PaintCursorContext::C, copy_v3_v3(), CTX_data_tool_settings(), blender::ed::sculpt_paint::PaintCursorContext::is_cursor_over_mesh, blender::ed::sculpt_paint::PaintCursorContext::location, mul_m4_v3(), ViewContext::obact, blender::ed::sculpt_paint::PaintCursorContext::paint, Sculpt::paint, blender::ed::sculpt_paint::PaintCursorContext::pixel_radius, project_brush_radius(), blender::ed::sculpt_paint::PaintCursorContext::scene, blender::ed::sculpt_paint::PaintCursorContext::scene_space_location, ToolSettings::sculpt, and blender::ed::sculpt_paint::PaintCursorContext::vc.
Referenced by paint_cursor_sculpt_session_update_and_init().
|
static |
Definition at line 2068 of file paint_cursor.cc.
References blender::ed::sculpt_paint::PaintCursorContext::brush, blender::ed::sculpt_paint::PaintCursorContext::mode, paint_calculate_rake_rotation(), UnifiedPaintSettings::stroke_active, blender::ed::sculpt_paint::PaintCursorContext::translation, and blender::ed::sculpt_paint::PaintCursorContext::ups.
Referenced by paint_draw_cursor().
|
static |
Definition at line 1009 of file paint_cursor.cc.
References UnifiedPaintSettings::anchored_size, BKE_brush_size_get(), BKE_brush_unprojected_radius_set(), BKE_brush_use_locked_size(), BKE_brush_use_size_pressure(), BRUSH_ANCHORED, UnifiedPaintSettings::draw_anchored, Brush::flag, paint_calc_object_space_radius(), ViewContext::scene, UnifiedPaintSettings::size_pressure_value, and UnifiedPaintSettings::stroke_active.
Referenced by paint_cursor_sculpt_session_update_and_init().
|
static |
Definition at line 1622 of file paint_cursor.cc.
References GPencil, grease_pencil_brush_cursor_draw(), blender::ed::sculpt_paint::PaintCursorContext::mode, paint_draw_2D_view_brush_cursor_default(), and VertexGPencil.
Referenced by paint_draw_cursor().
|
static |
Definition at line 1458 of file paint_cursor.cc.
References BKE_brush_use_size_pressure(), blender::ed::sculpt_paint::PaintCursorContext::brush, blender::ed::sculpt_paint::PaintCursorContext::final_radius, GPU_line_width(), imm_draw_circle_wire_2d(), immUniformColor3fvAlpha(), blender::ed::sculpt_paint::PaintCursorContext::outline_alpha, blender::ed::sculpt_paint::PaintCursorContext::outline_col, blender::ed::sculpt_paint::PaintCursorContext::pos, UnifiedPaintSettings::size_pressure_value, UnifiedPaintSettings::stroke_active, blender::ed::sculpt_paint::PaintCursorContext::translation, and blender::ed::sculpt_paint::PaintCursorContext::ups.
Referenced by paint_draw_2D_view_brush_cursor().
|
static |
Definition at line 1645 of file paint_cursor.cc.
References Brush::alpha, blender::ed::sculpt_paint::PaintCursorContext::brush, clamp_f(), blender::ed::sculpt_paint::PaintCursorContext::final_radius, GPU_line_width(), imm_draw_circle_wire_3d(), immUniformColor3fvAlpha(), blender::ed::sculpt_paint::PaintCursorContext::outline_alpha, blender::ed::sculpt_paint::PaintCursorContext::outline_col, blender::ed::sculpt_paint::PaintCursorContext::pos, and blender::ed::sculpt_paint::PaintCursorContext::translation.
Referenced by paint_cursor_draw_3d_view_brush_cursor_inactive().
|
static |
Definition at line 780 of file paint_cursor.cc.
References BKE_paint_get_overlay_flags(), col, ELEM, GPU_blend(), GPU_blend_get(), GPU_depth_test(), GPU_depth_test_get(), GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_translate_2f(), paint_draw_cursor_overlay(), paint_draw_tex_overlay(), PAINT_OVERLAY_OVERRIDE_CURSOR, PAINT_OVERLAY_OVERRIDE_PRIMARY, PAINT_OVERLAY_OVERRIDE_SECONDARY, ViewContext::region, Texture2D, Texture3D, Vertex, Weight, ARegion::winrct, rcti::xmin, and rcti::ymin.
Referenced by paint_cursor_check_and_draw_alpha_overlays().
|
static |
Definition at line 2128 of file paint_cursor.cc.
References blender::ed::sculpt_paint::PaintCursorContext::brush, blender::ed::sculpt_paint::PaintCursorContext::cursor_type, GPencil, blender::ed::sculpt_paint::PaintCursorContext::mode, PAINT_CURSOR_2D, PAINT_CURSOR_3D, paint_cursor_check_and_draw_alpha_overlays(), paint_cursor_context_init(), PAINT_CURSOR_CURVE, paint_cursor_draw_3D_view_brush_cursor(), paint_cursor_is_3d_view_navigating(), paint_cursor_is_brush_cursor_enabled(), paint_cursor_restore_drawing_state(), paint_cursor_setup_2D_drawing(), paint_cursor_setup_3D_drawing(), paint_cursor_update_anchored_location(), paint_cursor_update_rake_rotation(), paint_draw_2D_view_brush_cursor(), paint_draw_curve_cursor(), paint_update_mouse_cursor(), blender::ed::sculpt_paint::PaintCursorContext::vc, blender::ed::sculpt_paint::PaintCursorContext::win, WM_CURSOR_DOT, and WM_cursor_set().
Referenced by ED_paint_cursor_start().
|
static |
Definition at line 695 of file paint_cursor.cc.
References UnifiedPaintSettings::anchored_initial_mouse, UnifiedPaintSettings::anchored_size, BKE_brush_size_get(), BKE_brush_use_size_pressure(), BRUSH_OVERLAY_CURSOR, copy_v2_v2(), Brush::cursor_overlay_alpha, cursor_snap, UnifiedPaintSettings::draw_anchored, GPU_blend(), GPU_BLEND_ALPHA_PREMULT, GPU_color_mask(), GPU_COMP_F32, GPU_DEPTH_NONE, GPU_depth_test(), GPU_FETCH_FLOAT, GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_scale_1f(), GPU_matrix_translate_2f(), GPU_matrix_translate_2fv(), GPU_PRIM_TRI_FAN, GPU_SHADER_3D_IMAGE_COLOR, GPU_texture_unbind(), GPU_vertformat_attr_add(), immAttr2f(), immBegin(), immBindBuiltinProgram(), immBindTextureSampler(), immEnd(), immUnbindProgram(), immUniformColor4fv(), immVertex2f(), immVertexFormat(), load_tex_cursor(), mul_v4_fl(), Brush::overlay_flags, CursorSnapshot::overlay_texture, pos, quad, ViewContext::scene, UnifiedPaintSettings::size_pressure_value, UnifiedPaintSettings::stroke_active, UNPACK3, x, and y.
Referenced by paint_draw_alpha_overlay().
|
static |
Definition at line 928 of file paint_cursor.cc.
References PaintCurvePoint::bez, BKE_curve_forward_diff_bezier(), draw_bezier_handle_lines(), draw_rect_point(), draw_tri_point(), BezTriple::f1, BezTriple::f2, BezTriple::f3, float, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_line_width(), GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_translate_2f(), GPU_PRIM_LINE_STRIP, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4f(), immVertex2fv(), immVertexFormat(), Brush::paint_curve, PAINT_CURVE_NUM_SEGMENTS, PaintCurve::points, pos, ViewContext::region, SPACE_VIEW3D, TH_PAINT_CURVE_HANDLE, TH_PAINT_CURVE_PIVOT, TH_VERTEX_SELECT, PaintCurve::tot_points, UI_GetThemeColorType4fv(), v, BezTriple::vec, ARegion::winrct, rcti::xmin, and rcti::ymin.
Referenced by paint_draw_cursor().
|
static |
Definition at line 1634 of file paint_cursor.cc.
References blender::ed::sculpt_paint::PaintCursorContext::final_radius, GPU_line_width(), imm_draw_circle_wire_3d(), immUniformColor3fvAlpha(), blender::ed::sculpt_paint::PaintCursorContext::outline_alpha, blender::ed::sculpt_paint::PaintCursorContext::outline_col, blender::ed::sculpt_paint::PaintCursorContext::pos, and blender::ed::sculpt_paint::PaintCursorContext::translation.
Referenced by paint_cursor_draw_3D_view_brush_cursor(), and paint_cursor_draw_3d_view_brush_cursor_inactive().
|
static |
Definition at line 160 of file paint_stroke.cc.
References BKE_paint_get_active_from_context(), blender::ed::sculpt_paint::PaintStroke::constrain_line, blender::ed::sculpt_paint::PaintStroke::constrained_pos, float, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_PRIM_LINES, GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR, GPU_vertformat_attr_add(), GPU_viewport_size_get_f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniform1f(), immUniform1i(), immUniform2f(), immUniform4f(), immVertex2f(), immVertexFormat(), blender::ed::sculpt_paint::PaintStroke::last_mouse_position, Paint::paint_cursor_col, ViewContext::region, and blender::ed::sculpt_paint::PaintStroke::vc.
Referenced by paint_stroke_modal().
|
static |
Definition at line 129 of file paint_stroke.cc.
References BKE_paint_brush(), BKE_paint_get_active_from_context(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_PRIM_LINES, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4ubv(), immVertex2f(), immVertexFormat(), blender::ed::sculpt_paint::PaintStroke::last_mouse_position, Paint::paint_cursor_col, pos, ViewContext::region, and blender::ed::sculpt_paint::PaintStroke::vc.
Referenced by paint_stroke_modal().
|
static |
Definition at line 543 of file paint_cursor.cc.
References UnifiedPaintSettings::anchored_initial_mouse, UnifiedPaintSettings::anchored_size, BKE_brush_size_get(), BKE_brush_use_size_pressure(), BLI_rcti_size_x(), BLI_rcti_size_y(), MTex::brush_map_mode, BRUSH_OVERLAY_PRIMARY, BRUSH_OVERLAY_SECONDARY, UnifiedPaintSettings::brush_rotation, UnifiedPaintSettings::brush_rotation_sec, col, copy_v3_v3(), UnifiedPaintSettings::draw_anchored, ELEM, GPU_blend(), GPU_BLEND_ALPHA_PREMULT, GPU_color_mask(), GPU_COMP_F32, GPU_DEPTH_NONE, GPU_depth_test(), GPU_FETCH_FLOAT, GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_rotate_2d(), GPU_matrix_scale_2f(), GPU_matrix_translate_2f(), GPU_matrix_translate_2fv(), GPU_PRIM_TRI_FAN, GPU_SAMPLER_EXTEND_MODE_CLAMP_TO_BORDER, GPU_SAMPLER_EXTEND_MODE_REPEAT, GPU_SAMPLER_FILTERING_LINEAR, GPU_SHADER_3D_IMAGE_COLOR, GPU_texture_unbind(), GPU_vertformat_attr_add(), Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_DRAW, immAttr2f(), immBegin(), immBindBuiltinProgram(), immBindTextureSampler(), immEnd(), immUnbindProgram(), immUniformColor4fv(), immVertex2f(), immVertexFormat(), load_tex(), Brush::mask_mtex, Brush::mask_overlay_alpha, Brush::mask_stencil_dimension, Brush::mask_stencil_pos, Brush::mtex, MTEX_MAP_MODE_STENCIL, MTEX_MAP_MODE_TILED, MTEX_MAP_MODE_VIEW, mul_v4_fl(), Brush::overlay_flags, TexSnapshot::overlay_texture, pos, primary_snap, quad, RAD2DEGF, ViewContext::region, MTex::rot, ViewContext::scene, secondary_snap, UnifiedPaintSettings::size_pressure_value, Brush::stencil_dimension, Brush::stencil_pos, UnifiedPaintSettings::stroke_active, MTex::tex, Texture3D, Brush::texture_overlay_alpha, ARegion::winrct, x, and y.
Referenced by paint_draw_alpha_overlay().
|
static |
Slightly different version of spacing for line/curve strokes, makes sure the dabs stay on the line path.
Definition at line 1226 of file paint_stroke.cc.
References add_v3_v3v3(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_paintmode_get_active_from_context(), BLI_assert, blender::ed::sculpt_paint::PaintStroke::brush, copy_v2_v2(), copy_v3_v3(), CTX_wm_region(), ED_view3d_project_v2(), blender::ed::sculpt_paint::PaintStroke::last_mouse_position, blender::ed::sculpt_paint::PaintStroke::last_world_space_position, len_v3(), length(), mul_m4_v3(), mul_v3_v3fl(), normalize_v2(), normalize_v3(), ViewContext::obact, blender::ed::sculpt_paint::PaintStroke::original, UnifiedPaintSettings::overlap_factor, paint_brush_stroke_add_step(), paint_stroke_integrate_overlap(), paint_stroke_use_scene_spacing(), SCULPT_stroke_get_location(), blender::ed::sculpt_paint::PaintStroke::stroke_distance, blender::ed::sculpt_paint::PaintStroke::stroke_over_mesh, sub_v2_v2v2(), sub_v3_v3v3(), blender::ed::sculpt_paint::PaintStroke::ups, blender::ed::sculpt_paint::PaintStroke::vc, zero_v3(), and blender::ed::sculpt_paint::PaintStroke::zoom_2d.
Referenced by paint_stroke_curve_end().
|
static |
Definition at line 641 of file paint_stroke.cc.
References blender::ed::sculpt_paint::PaintStroke::brush, interp_v2_v2v2(), interpf(), blender::ed::sculpt_paint::PaintStroke::last_mouse_position, blender::ed::sculpt_paint::PaintStroke::last_pressure, len_squared_v2v2(), paint_supports_smooth_stroke(), sample, Brush::smooth_stroke_factor, Brush::smooth_stroke_radius, square_f(), and blender::ed::sculpt_paint::PaintStroke::zoom_2d.
Referenced by paint_stroke_modal().
|
static |
Definition at line 808 of file paint_stroke.cc.
References add_v3_v3v3(), BKE_paint_brush_for_read(), BKE_paint_get_active_from_context(), BKE_paintmode_get_active_from_context(), BLI_assert, blender::ed::sculpt_paint::PaintStroke::brush, copy_v3_v3(), count, CTX_data_scene(), CTX_wm_region(), ED_view3d_project_v2(), blender::ed::sculpt_paint::PaintStroke::last_mouse_position, blender::ed::sculpt_paint::PaintStroke::last_pressure, blender::ed::sculpt_paint::PaintStroke::last_scene_spacing_delta, blender::ed::sculpt_paint::PaintStroke::last_world_space_position, len_v3(), length(), mul_m4_v3(), mul_v3_v3fl(), normalize_v2(), normalize_v3(), ViewContext::obact, blender::ed::sculpt_paint::PaintStroke::original, UnifiedPaintSettings::overlap_factor, paint_brush_stroke_add_step(), paint_space_stroke_spacing(), paint_space_stroke_spacing_variable(), paint_stroke_integrate_overlap(), paint_stroke_use_scene_spacing(), SCULPT_stroke_get_location(), blender::ed::sculpt_paint::PaintStroke::stroke_distance, blender::ed::sculpt_paint::PaintStroke::stroke_over_mesh, sub_v2_v2v2(), sub_v3_v3v3(), blender::ed::sculpt_paint::PaintStroke::ups, blender::ed::sculpt_paint::PaintStroke::vc, zero_v3(), and blender::ed::sculpt_paint::PaintStroke::zoom_2d.
Referenced by paint_stroke_line_end(), and paint_stroke_modal().
Returns zero if the stroke dots should not be spaced, non-zero otherwise.
Definition at line 1042 of file paint_stroke.cc.
References BRUSH_SPACE, Brush::curves_sculpt_brush_type, curves_sculpt_brush_uses_spacing(), ELEM, Brush::flag, GPencil, blender::ed::sculpt_paint::cloth::is_cloth_deform_brush(), paint_supports_dynamic_size(), Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_CLOTH, SculptCurves, and SculptGreasePencil.
Referenced by paint_stroke_modal().
|
static |
Definition at line 669 of file paint_stroke.cc.
References BKE_brush_size_get(), BKE_brush_unprojected_radius_get(), BKE_brush_use_locked_size(), BKE_paint_brush_for_read(), BKE_paint_get_active_from_context(), BKE_paintmode_get_active_from_context(), blender::ed::sculpt_paint::PaintStroke::brush, BRUSH_SPACING_PRESSURE, Brush::flag, blender::ed::sculpt_paint::cloth::is_cloth_deform_brush(), blender::ed::sculpt_paint::PaintStroke::last_world_space_position, max_ff(), mul_v3_m4v3(), ViewContext::obact, paint_calc_object_space_radius(), paint_stroke_use_scene_spacing(), Brush::spacing, blender::ed::sculpt_paint::PaintStroke::vc, and blender::ed::sculpt_paint::PaintStroke::zoom_2d.
Referenced by paint_space_stroke(), paint_space_stroke_spacing_variable(), and paint_stroke_curve_end().
|
static |
Definition at line 776 of file paint_stroke.cc.
References BKE_brush_use_size_pressure(), blender::ed::sculpt_paint::PaintStroke::brush, blender::ed::sculpt_paint::PaintStroke::last_pressure, length(), and paint_space_stroke_spacing().
Referenced by paint_space_stroke().
|
static |
Definition at line 1186 of file paint_stroke.cc.
References blender::ed::sculpt_paint::PaintStroke::cur_sample, blender::ed::sculpt_paint::PaintStroke::num_samples, PAINT_MAX_INPUT_SAMPLES, sample, blender::ed::sculpt_paint::PaintStroke::samples, x, and y.
Referenced by paint_stroke_modal().
| void blender::ed::sculpt_paint::paint_stroke_cancel | ( | bContext * | C, |
| wmOperator * | op, | ||
| PaintStroke * | stroke ) |
Definition at line 1689 of file paint_stroke.cc.
References stroke_done().
Referenced by grease_pencil_brush_stroke_cancel(), grease_pencil_sculpt_paint_cancel(), grease_pencil_vertex_brush_stroke_cancel(), grease_pencil_weight_brush_stroke_cancel(), blender::ed::sculpt_paint::image::ops::paint::paint_cancel(), paint_stroke_modal(), sculpt_brush_stroke_cancel(), sculpt_curves_stroke_cancel(), vpaint_cancel(), and wpaint_cancel().
|
static |
Definition at line 1330 of file paint_stroke.cc.
References atan2f, PaintCurvePoint::bez, BKE_curve_forward_diff_bezier(), BKE_curve_forward_diff_tangent_bezier(), BKE_paintmode_get_active_from_context(), blender::ed::sculpt_paint::PaintStroke::brush, MTex::brush_angle_mode, BRUSH_CURVE, copy_v2_v2(), CTX_data_scene(), CTX_data_tool_settings(), Brush::flag, float, blender::ed::sculpt_paint::PaintStroke::last_mouse_position, blender::ed::sculpt_paint::PaintStroke::last_pressure, blender::ed::sculpt_paint::PaintStroke::last_world_space_position, M_PI, Brush::mask_mtex, Brush::mtex, MTEX_ANGLE_RAKE, mul_m4_v3(), ViewContext::obact, blender::ed::sculpt_paint::PaintStroke::original, UnifiedPaintSettings::overlap_factor, paint_brush_stroke_add_step(), Brush::paint_curve, PAINT_CURVE_NUM_SEGMENTS, paint_line_strokes_spacing(), paint_space_stroke_spacing(), paint_stroke_integrate_overlap(), paint_stroke_use_scene_spacing(), paint_update_brush_rake_rotation(), PaintCurve::points, SCULPT_stroke_get_location(), stroke_done(), blender::ed::sculpt_paint::PaintStroke::stroke_over_mesh, blender::ed::sculpt_paint::PaintStroke::stroke_started, blender::ed::sculpt_paint::PaintStroke::test_start, TIMEIT_END_AVERAGED, TIMEIT_START_AVERAGED, PaintCurve::tot_points, ToolSettings::unified_paint_settings, blender::ed::sculpt_paint::PaintStroke::ups, blender::ed::sculpt_paint::PaintStroke::vc, and BezTriple::vec.
Referenced by paint_stroke_modal().
| float blender::ed::sculpt_paint::paint_stroke_distance_get | ( | PaintStroke * | stroke | ) |
Definition at line 1714 of file paint_stroke.cc.
References blender::ed::sculpt_paint::PaintStroke::stroke_distance.
Referenced by blender::ed::sculpt_paint::image::ops::paint::paint_stroke_update_step(), and stroke_update_step().
| int blender::ed::sculpt_paint::paint_stroke_exec | ( | bContext * | C, |
| wmOperator * | op, | ||
| PaintStroke * | stroke ) |
Definition at line 1659 of file paint_stroke.cc.
References OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_BEGIN, RNA_END, RNA_float_get_array(), RNA_property_collection_lookup_int(), RNA_struct_find_property(), stroke_done(), blender::ed::sculpt_paint::PaintStroke::stroke_started, blender::ed::sculpt_paint::PaintStroke::test_start, and blender::ed::sculpt_paint::PaintStroke::update_step.
Referenced by blender::ed::sculpt_paint::image::ops::paint::paint_exec(), sculpt_brush_stroke_exec(), vpaint_exec(), and wpaint_exec().
| bool blender::ed::sculpt_paint::paint_stroke_flipped | ( | PaintStroke * | stroke | ) |
Definition at line 1704 of file paint_stroke.cc.
References blender::ed::sculpt_paint::PaintStroke::pen_flip.
| void blender::ed::sculpt_paint::paint_stroke_free | ( | bContext * | C, |
| wmOperator * | op, | ||
| PaintStroke * | stroke ) |
Definition at line 983 of file paint_stroke.cc.
References BKE_paint_set_overlay_override(), CTX_wm_manager(), CTX_wm_region_view3d(), CTX_wm_window(), UnifiedPaintSettings::draw_anchored, RegionView3D::rflag, UnifiedPaintSettings::stroke_active, blender::ed::sculpt_paint::PaintStroke::stroke_cursor, blender::ed::sculpt_paint::PaintStroke::timer, blender::ed::sculpt_paint::PaintStroke::ups, WM_event_timer_remove(), and WM_paint_cursor_end().
Referenced by blender::ed::sculpt_paint::image::ops::paint::paint_invoke(), sculpt_brush_stroke_invoke(), sculpt_curves_stroke_invoke(), stroke_done(), vpaint_invoke(), and wpaint_invoke().
|
static |
Definition at line 751 of file paint_stroke.cc.
References BRUSH_SPACE_ATTEN, fabs(), Brush::flag, max, paint_stroke_overlapped_curve(), and Brush::spacing.
Referenced by paint_line_strokes_spacing(), paint_space_stroke(), paint_stroke_curve_end(), paint_stroke_line_end(), and paint_stroke_modal().
| bool blender::ed::sculpt_paint::paint_stroke_inverted | ( | PaintStroke * | stroke | ) |
Definition at line 1709 of file paint_stroke.cc.
References BRUSH_STROKE_INVERT, and blender::ed::sculpt_paint::PaintStroke::stroke_mode.
Referenced by blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_bucket_fill().
| void blender::ed::sculpt_paint::paint_stroke_jitter_pos | ( | Scene & | scene, |
| const PaintStroke & | stroke, | ||
| const PaintMode | mode, | ||
| const Brush & | brush, | ||
| const float | pressure, | ||
| const float | mval[2], | ||
| float | r_mouse_out[2] ) |
Definition at line 502 of file paint_stroke.cc.
References add_v2_v2v2(), BKE_brush_jitter_pos(), BRUSH_JITTER_PRESSURE, BRUSH_STROKE_INVERT, copy_v2_v2(), Brush::flag, mul_v2_fl(), paint_stroke_use_jitter(), blender::ed::sculpt_paint::PaintStroke::stroke_mode, sub_v2_v2v2(), and blender::ed::sculpt_paint::PaintStroke::zoom_2d.
Referenced by paint_brush_stroke_add_step(), and blender::ed::sculpt_paint::image::ops::paint::paint_exec().
|
static |
Definition at line 1428 of file paint_stroke.cc.
References angle(), atan2f, blender::ed::sculpt_paint::PaintStroke::constrain_line, blender::ed::sculpt_paint::PaintStroke::constrained_pos, cosf, float, floorf, blender::ed::sculpt_paint::PaintStroke::last_mouse_position, len, len_v2(), M_PI, M_PI_4, sinf, and sub_v2_v2v2().
Referenced by paint_stroke_modal().
|
static |
Definition at line 1316 of file paint_stroke.cc.
References blender::ed::sculpt_paint::PaintStroke::brush, BRUSH_LINE, Brush::flag, blender::ed::sculpt_paint::PaintStroke::last_mouse_position, UnifiedPaintSettings::overlap_factor, paint_brush_stroke_add_step(), paint_space_stroke(), paint_stroke_integrate_overlap(), blender::ed::sculpt_paint::PaintStroke::stroke_started, and blender::ed::sculpt_paint::PaintStroke::ups.
Referenced by paint_stroke_modal().
| int blender::ed::sculpt_paint::paint_stroke_modal | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event, | ||
| PaintStroke ** | stroke_p ) |
Definition at line 1457 of file paint_stroke.cc.
References BKE_brush_input_samples_get(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_paintmode_get_active_from_context(), blender::ed::sculpt_paint::PaintStroke::brush, BRUSH_AIRBRUSH, BRUSH_ANCHORED, MTex::brush_angle_mode, BRUSH_DRAG_DOT, BRUSH_LINE, BRUSH_SMOOTH_STROKE, wmOperatorType::cancel, blender::ed::sculpt_paint::PaintStroke::constrain_line, copy_v2_fl2(), copy_v2_v2(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_region(), CTX_wm_window(), wmEvent::customdata, ELEM, blender::ed::sculpt_paint::PaintStroke::event_type, EVT_MODAL_MAP, EVT_RETKEY, EVT_SPACEKEY, Brush::flag, Paint::flags, image_paint_brush_type_require_inbetween_mouse_events(), INBETWEEN_MOUSEMOVE, ISMOUSE_MOTION, KM_ALT, KM_RELEASE, blender::ed::sculpt_paint::PaintStroke::last_mouse_position, blender::ed::sculpt_paint::PaintStroke::last_pressure, UnifiedPaintSettings::last_rake, blender::ed::sculpt_paint::PaintStroke::last_tablet_event_pressure, blender::ed::sculpt_paint::PaintStroke::last_world_space_position, len_v2(), Brush::mask_mtex, wmEvent::modifier, blender::ed::sculpt_paint::PaintSample::mouse, Brush::mtex, MTEX_ANGLE_RAKE, mul_m4_v3(), wmEvent::mval, NDOF_MOTION, ViewContext::obact, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, blender::ed::sculpt_paint::PaintStroke::original, UnifiedPaintSettings::overlap_factor, paint_brush_cursor_poll(), paint_brush_stroke_add_step(), paint_calculate_rake_rotation(), paint_draw_line_cursor(), paint_draw_smooth_cursor(), PAINT_SHOW_BRUSH, paint_smooth_stroke(), paint_space_stroke(), paint_space_stroke_enabled(), paint_stroke_add_sample(), paint_stroke_cancel(), paint_stroke_curve_end(), paint_stroke_integrate_overlap(), paint_stroke_line_constrain(), paint_stroke_line_end(), PAINT_STROKE_MODAL_CANCEL, paint_stroke_sample_average(), paint_stroke_use_scene_spacing(), paint_supports_smooth_stroke(), blender::ed::sculpt_paint::PaintStroke::pen_flip, blender::ed::sculpt_paint::PaintSample::pressure, Brush::rate, blender::ed::sculpt_paint::PaintStroke::redraw, RGN_TYPE_ANY, SCULPT_stroke_get_location(), SPACE_TYPE_ANY, blender::ed::sculpt_paint::PaintStroke::stroke_cursor, blender::ed::sculpt_paint::PaintStroke::stroke_distance, stroke_done(), blender::ed::sculpt_paint::PaintStroke::stroke_init, blender::ed::sculpt_paint::PaintStroke::stroke_over_mesh, blender::ed::sculpt_paint::PaintStroke::stroke_started, sub_v2_v2v2(), blender::ed::sculpt_paint::PaintStroke::test_start, TIMER, blender::ed::sculpt_paint::PaintStroke::timer, wmEvent::type, wmOperator::type, blender::ed::sculpt_paint::PaintStroke::ups, wmEvent::val, blender::ed::sculpt_paint::PaintStroke::vc, WM_event_is_tablet(), WM_event_tablet_data(), WM_event_timer_add(), WM_paint_cursor_activate(), WM_paint_cursor_tag_redraw(), blender::ed::sculpt_paint::PaintStroke::x_tilt, and blender::ed::sculpt_paint::PaintStroke::y_tilt.
Referenced by brush_stroke_modal(), grease_pencil_brush_stroke_modal(), grease_pencil_sculpt_paint_modal(), grease_pencil_vertex_brush_stroke_modal(), grease_pencil_weight_brush_stroke_modal(), blender::ed::sculpt_paint::image::ops::paint::paint_modal(), sculpt_curves_stroke_modal(), vpaint_modal(), and wpaint_modal().
| wmKeyMap * blender::ed::sculpt_paint::paint_stroke_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Called in paint_ops.cc, on each regeneration of key-maps.
Definition at line 1168 of file paint_stroke.cc.
References PAINT_STROKE_MODAL_CANCEL, WM_modalkeymap_ensure(), and WM_modalkeymap_find().
| void * blender::ed::sculpt_paint::paint_stroke_mode_data | ( | PaintStroke * | stroke | ) |
Definition at line 1699 of file paint_stroke.cc.
References blender::ed::sculpt_paint::PaintStroke::mode_data.
Referenced by blender::ed::sculpt_paint::image::ops::paint::paint_stroke_done(), blender::ed::sculpt_paint::image::ops::paint::paint_stroke_redraw(), blender::ed::sculpt_paint::image::ops::paint::paint_stroke_update_step(), stroke_done(), stroke_update_step(), vpaint_stroke_done(), vpaint_stroke_update_step(), and wpaint_stroke_update_step().
| PaintStroke * blender::ed::sculpt_paint::paint_stroke_new | ( | bContext * | C, |
| wmOperator * | op, | ||
| StrokeGetLocation | get_location, | ||
| StrokeTestStart | test_start, | ||
| StrokeUpdateStep | update_step, | ||
| StrokeRedraw | redraw, | ||
| StrokeDone | done, | ||
| int | event_type ) |
Definition at line 899 of file paint_stroke.cc.
References UnifiedPaintSettings::average_stroke_accum, UnifiedPaintSettings::average_stroke_counter, BKE_brush_size_get(), BKE_curvemapping_init(), BKE_image_pool_acquire_ibuf(), BKE_image_pool_release_ibuf(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_paint_set_overlay_override(), BKE_paintmode_get_active_from_context(), blender::ed::sculpt_paint::PaintStroke::brush, BRUSH_CURVE, BRUSH_STROKE_INVERT, BRUSH_STROKE_NORMAL, ImBuf::byte_buffer, Paint::cavity_curve, ImBufByteBuffer::colorspace, UnifiedPaintSettings::colorspace, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_region_view3d(), Brush::curve, ImBufFloatBuffer::data, depsgraph, UnifiedPaintSettings::do_linear_conversion, blender::ed::sculpt_paint::PaintStroke::done, ED_view3d_viewcontext_init(), blender::ed::sculpt_paint::PaintStroke::event_type, Brush::flag, Paint::flags, ImBuf::float_buffer, get_imapaint_zoom(), blender::ed::sculpt_paint::PaintStroke::get_location, Tex::ima, image_paint_brush_type_raycast_original(), Tex::iuser, max_ff(), Brush::mtex, mul_v3_fl(), blender::ed::sculpt_paint::PaintStroke::original, UnifiedPaintSettings::overlap_factor, Brush::overlay_flags, PAINT_USE_CAVITY_MASK, wmOperator::ptr, blender::ed::sculpt_paint::PaintStroke::redraw, RegionView3D::rflag, RNA_enum_get(), RNA_enum_set(), RV3D_PAINTING, UnifiedPaintSettings::start_pixel_radius, UnifiedPaintSettings::stroke_active, blender::ed::sculpt_paint::PaintStroke::stroke_mode, blender::ed::sculpt_paint::PaintStroke::test_start, MTex::tex, TEX_IMAGE, Tex::type, ToolSettings::unified_paint_settings, blender::ed::sculpt_paint::PaintStroke::update_step, blender::ed::sculpt_paint::PaintStroke::ups, blender::ed::sculpt_paint::PaintStroke::vc, and blender::ed::sculpt_paint::PaintStroke::zoom_2d.
Referenced by grease_pencil_brush_stroke_invoke(), grease_pencil_sculpt_paint_invoke(), grease_pencil_vertex_brush_stroke_invoke(), grease_pencil_weight_brush_stroke_invoke(), blender::ed::sculpt_paint::image::ops::paint::paint_exec(), blender::ed::sculpt_paint::image::ops::paint::paint_invoke(), sculpt_brush_stroke_exec(), sculpt_brush_stroke_invoke(), sculpt_curves_stroke_invoke(), vpaint_exec(), vpaint_invoke(), wpaint_exec(), and wpaint_invoke().
|
static |
Definition at line 725 of file paint_stroke.cc.
References BKE_brush_curve_strength(), fabsf, max_ff(), and sum().
Referenced by paint_stroke_integrate_overlap().
|
static |
Definition at line 1205 of file paint_stroke.cc.
References add_v2_v2(), BLI_assert, blender::ed::sculpt_paint::PaintSample::mouse, mul_v2_fl(), blender::ed::sculpt_paint::PaintStroke::num_samples, blender::ed::sculpt_paint::PaintSample::pressure, and blender::ed::sculpt_paint::PaintStroke::samples.
Referenced by paint_stroke_modal().
| void blender::ed::sculpt_paint::paint_stroke_set_mode_data | ( | PaintStroke * | stroke, |
| std::unique_ptr< PaintModeData > | mode_data ) |
Definition at line 1719 of file paint_stroke.cc.
References blender::ed::sculpt_paint::PaintStroke::mode_data.
Referenced by blender::ed::sculpt_paint::image::ops::paint::paint_stroke_test_start(), stroke_update_step(), vpaint_stroke_test_start(), and wpaint_stroke_test_start().
| bool blender::ed::sculpt_paint::paint_stroke_started | ( | PaintStroke * | stroke | ) |
Definition at line 1724 of file paint_stroke.cc.
References blender::ed::sculpt_paint::PaintStroke::stroke_started.
|
static |
Definition at line 482 of file paint_stroke.cc.
References BRUSH_CURVE, BRUSH_LINE, BRUSH_SPACE, and Brush::flag.
Referenced by paint_brush_stroke_add_step().
|
static |
Definition at line 488 of file paint_stroke.cc.
References BRUSH_ABSOLUTE_JITTER, BRUSH_ANCHORED, BRUSH_DRAG_DOT, ELEM, Brush::flag, Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_CLONE, invert(), Brush::jitter, Brush::jitter_absolute, Texture2D, and Texture3D.
Referenced by paint_stroke_jitter_pos().
|
static |
Definition at line 239 of file paint_stroke.cc.
References BRUSH_SCENE_SPACING, Brush::flag, and Sculpt.
Referenced by paint_brush_stroke_add_step(), paint_line_strokes_spacing(), paint_space_stroke(), paint_space_stroke_spacing(), paint_stroke_curve_end(), and paint_stroke_modal().
| ViewContext * blender::ed::sculpt_paint::paint_stroke_view_context | ( | PaintStroke * | stroke | ) |
Definition at line 1694 of file paint_stroke.cc.
References blender::ed::sculpt_paint::PaintStroke::vc.
Referenced by sculpt_update_cache_invariants(), and blender::ed::sculpt_paint::vwpaint::update_cache_invariants().
Return true if the brush size can change during paint (normally used for pressure).
Definition at line 1087 of file paint_stroke.cc.
References BRUSH_ANCHORED, BRUSH_USE_GRADIENT, Brush::flag, Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_FILL, Sculpt, sculpt_is_grab_tool(), Texture2D, and Texture3D.
Referenced by paint_brush_update(), paint_space_stroke_enabled(), sculpt_update_cache_variants(), and blender::ed::sculpt_paint::vwpaint::update_cache_variants().
| bool blender::ed::sculpt_paint::paint_supports_dynamic_tex_coords | ( | const Brush & | br, |
| PaintMode | mode ) |
Return true if the brush size can change during paint (normally used for pressure).
Definition at line 1148 of file paint_stroke.cc.
References BRUSH_ANCHORED, Brush::flag, Sculpt, and sculpt_is_grab_tool().
Referenced by paint_brush_update().
| bool blender::ed::sculpt_paint::paint_supports_smooth_stroke | ( | PaintStroke * | stroke, |
| const Brush & | br, | ||
| PaintMode | mode ) |
Definition at line 1113 of file paint_stroke.cc.
References BRUSH_ANCHORED, BRUSH_DRAG_DOT, BRUSH_LINE, BRUSH_SMOOTH_STROKE, BRUSH_STROKE_SMOOTH, Brush::flag, GPAINT_BRUSH_TYPE_DRAW, GPencil, Brush::gpencil_brush_type, Sculpt, sculpt_is_grab_tool(), and blender::ed::sculpt_paint::PaintStroke::stroke_mode.
Referenced by paint_smooth_stroke(), and paint_stroke_modal().
| bool blender::ed::sculpt_paint::paint_supports_texture | ( | PaintMode | mode | ) |
Definition at line 1141 of file paint_stroke.cc.
References ELEM, Sculpt, Texture2D, Texture3D, and Vertex.
Referenced by stencil_control_poll().
|
static |
Definition at line 1443 of file paint_cursor.cc.
References ELEM, GPencil, wmWindow::grabcursor, blender::ed::sculpt_paint::PaintCursorContext::mode, VertexGPencil, blender::ed::sculpt_paint::PaintCursorContext::win, WM_CURSOR_DOT, WM_CURSOR_PAINT, and WM_cursor_set().
Referenced by paint_draw_cursor().
|
static |
Definition at line 1209 of file paint_cursor.cc.
References BLI_assert_unreachable, GPencil, Invalid, Sculpt, SculptCurves, SculptGPencil, SculptGreasePencil, Texture2D, Texture3D, Vertex, VertexGPencil, Weight, and WeightGPencil.
Referenced by paint_cursor_context_init().
|
static |
Definition at line 2353 of file sculpt.cc.
References SculptSession::cache, SculptSession::cursor_location, SculptSession::cursor_radius, blender::ed::sculpt_paint::StrokeCache::location_symm, node_in_sphere(), blender::bke::object::pbvh_get(), Object::sculpt, and blender::bke::pbvh::search_nodes().
|
static |
Definition at line 2364 of file sculpt.cc.
References SculptSession::cache, dist_squared_ray_to_aabb_v3_precalc(), Brush::falloff_shape, blender::ed::sculpt_paint::StrokeCache::location_symm, node_fully_masked_or_hidden(), node_in_cylinder(), node_in_sphere(), PAINT_FALLOFF_SHAPE_SPHERE, PAINT_FALLOFF_SHAPE_TUBE, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::StrokeCache::radius, Object::sculpt, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_MASK, blender::bke::pbvh::search_nodes(), blender::math::square(), and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by do_brush_action(), dynamic_topology_update(), and pbvh_gather_texpaint().
|
static |
Definition at line 2398 of file sculpt.cc.
References pbvh_gather_generic().
Referenced by do_brush_action().
|
static |
Definition at line 5512 of file sculpt.cc.
References SculptFakeNeighbors::fake_neighbor_index, SculptSession::fake_neighbors, and pose_fake_neighbors_free().
Referenced by pose_fake_neighbors_free().
|
static |
Definition at line 495 of file paint_cursor.cc.
References add_v3_v3v3(), BLI_assert, cross_v3_v3v3(), ED_view3d_global_to_vector(), ED_view3d_project_float_global(), fabsf, len_v2v2(), mul_v3_fl(), normalize_v3(), ViewContext::region, ViewContext::rv3d, V3D_PROJ_RET_OK, and V3D_PROJ_TEST_NOP.
Referenced by grease_pencil_brush_cursor_draw(), and paint_cursor_update_pixel_radius().
| void blender::ed::sculpt_paint::project_translations | ( | MutableSpan< float3 > | translations, |
| const float3 & | plane ) |
Align the translations with plane normal.
Definition at line 6998 of file sculpt.cc.
References blender::math::dot(), blender::MutableSpan< T >::index_range(), blender::math::length_squared(), project_translations(), and blender::math::rcp().
Referenced by project_translations().
|
static |
Definition at line 2990 of file sculpt.cc.
References blender::ed::sculpt_paint::StrokeCache::alt_smooth, SculptSession::cache, blender::ed::sculpt_paint::undo::Color, depsgraph, blender::ed::sculpt_paint::undo::FaceSet, blender::ed::sculpt_paint::undo::Mask, blender::ed::sculpt_paint::undo::Position, blender::ed::sculpt_paint::undo::push_nodes(), Object::sculpt, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, SCULPT_brush_type_is_paint(), SCULPT_BRUSH_TYPE_MASK, and blender::ed::sculpt_paint::StrokeCache::supports_gravity.
Referenced by do_brush_action().
|
static |
Definition at line 815 of file sculpt.cc.
References SculptRakeData::follow_co, SculptRakeData::follow_dist, interp_v3_v3v3(), and len_v3v3().
Referenced by brush_delta_update().
|
static |
Definition at line 5471 of file sculpt.cc.
References redo_empty_ui().
Referenced by redo_empty_ui(), and SCULPT_OT_brush_stroke().
|
static |
Definition at line 127 of file brush_asset_ops.cc.
References blender::asset_system::all_library_reference(), and blender::ed::asset::list::clear().
Referenced by brush_asset_delete_exec(), brush_asset_edit_metadata_exec(), brush_asset_load_preview_exec(), brush_asset_save_as_exec(), brush_asset_save_exec(), and refresh_asset_library().
|
static |
Definition at line 135 of file brush_asset_ops.cc.
References refresh_asset_library(), and user_library_to_library_ref().
| void blender::ed::sculpt_paint::report_empty_evaluated_surface | ( | ReportList * | reports | ) |
Definition at line 407 of file curves_sculpt_brush.cc.
References BKE_report(), and RPT_WARNING.
Referenced by blender::ed::sculpt_paint::AddOperationExecutor::execute(), blender::ed::sculpt_paint::DensityAddOperationExecutor::execute(), and blender::ed::sculpt_paint::SlideOperationExecutor::execute().
| void blender::ed::sculpt_paint::report_empty_original_surface | ( | ReportList * | reports | ) |
Definition at line 402 of file curves_sculpt_brush.cc.
References BKE_report(), and RPT_WARNING.
Referenced by blender::ed::sculpt_paint::AddOperationExecutor::execute(), blender::ed::sculpt_paint::DensityAddOperationExecutor::execute(), and blender::ed::sculpt_paint::SlideOperationExecutor::execute().
| bool blender::ed::sculpt_paint::report_if_shape_key_is_locked | ( | const Object & | ob, |
| ReportList * | reports ) |
Checks if the currently active Sculpt Mode on the object is targeting a locked shape key, and produces an error message if so (unless reports is null).
Definition at line 128 of file sculpt.cc.
References BKE_reportf(), KeyBlock::flag, Object::id, KEYBLOCK_LOCKED_SHAPE, ID::name, RPT_ERROR, Object::sculpt, and SculptSession::shapekey_active.
Referenced by sculpt_brush_stroke_invoke(), blender::ed::sculpt_paint::cloth::sculpt_cloth_filter_invoke(), and blender::ed::sculpt_paint::filter::sculpt_mesh_filter_start().
| void blender::ed::sculpt_paint::report_invalid_uv_map | ( | ReportList * | reports | ) |
Definition at line 427 of file curves_sculpt_brush.cc.
References BKE_report(), and RPT_WARNING.
Referenced by blender::ed::sculpt_paint::AddOperationExecutor::execute().
| void blender::ed::sculpt_paint::report_missing_surface | ( | ReportList * | reports | ) |
Definition at line 412 of file curves_sculpt_brush.cc.
References BKE_report(), and RPT_WARNING.
Referenced by blender::ed::sculpt_paint::AddOperationExecutor::execute(), blender::ed::sculpt_paint::DensityAddOperationExecutor::execute(), blender::ed::sculpt_paint::PuffOperationExecutor::execute(), and blender::ed::sculpt_paint::SlideOperationExecutor::execute().
| void blender::ed::sculpt_paint::report_missing_uv_map_on_evaluated_surface | ( | ReportList * | reports | ) |
Definition at line 422 of file curves_sculpt_brush.cc.
References BKE_report(), and RPT_WARNING.
Referenced by blender::ed::sculpt_paint::AddOperationExecutor::execute(), blender::ed::sculpt_paint::DensityAddOperationExecutor::execute(), and blender::ed::sculpt_paint::SlideOperationExecutor::execute().
| void blender::ed::sculpt_paint::report_missing_uv_map_on_original_surface | ( | ReportList * | reports | ) |
Definition at line 417 of file curves_sculpt_brush.cc.
References BKE_report(), and RPT_WARNING.
Referenced by blender::ed::sculpt_paint::AddOperationExecutor::execute(), blender::ed::sculpt_paint::DensityAddOperationExecutor::execute(), and blender::ed::sculpt_paint::SlideOperationExecutor::execute().
| void blender::ed::sculpt_paint::reset_translations_to_original | ( | MutableSpan< float3 > | translations, |
| Span< float3 > | positions, | ||
| Span< float3 > | orig_positions ) |
Cancel out translations already applied over the course of the operation from the new translations. This is used for tools that calculate new positions based on the original positions for the entirety of an operation. Conceptually this is the same as resetting the positions before each step of the operation, but combining that into the same loop should be preferable for performance.
Definition at line 6946 of file sculpt.cc.
References BLI_assert, blender::MutableSpan< T >::index_range(), reset_translations_to_original(), blender::MutableSpan< T >::size(), and blender::Span< T >::size().
Referenced by blender::ed::sculpt_paint::pose::calc_bmesh(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), blender::ed::sculpt_paint::filter::calc_erase_displacement_filter(), blender::ed::sculpt_paint::pose::calc_grids(), blender::ed::sculpt_paint::filter::calc_inflate_filter(), blender::ed::sculpt_paint::pose::calc_mesh(), blender::ed::sculpt_paint::filter::calc_random_filter(), blender::ed::sculpt_paint::filter::calc_scale_filter(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), blender::ed::sculpt_paint::filter::calc_sphere_filter(), and reset_translations_to_original().
|
static |
Definition at line 343 of file brush_asset_ops.cc.
References blender::ed::asset::library_reference_to_rna_enum_itemf().
Referenced by BRUSH_OT_asset_save_as().
|
static |
Definition at line 115 of file paint_cursor.cc.
References MTex::brush_map_mode, col, MTEX_MAP_MODE_STENCIL, MTEX_MAP_MODE_TILED, ViewContext::region, snap(), ARegion::winx, and ARegion::winy.
Referenced by load_tex().
|
static |
Definition at line 606 of file sculpt_ops.cc.
References blender::ed::sculpt_paint::color::active_color_attribute(), SculptSession::active_vert(), BKE_base_is_visible(), BKE_brush_color_set(), BKE_paint_brush(), BKE_sculpt_update_object_for_edit(), blender::ed::sculpt_paint::color::color_vert_get(), CTX_data_active_base(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_view3d(), Object::data, blender::bke::GAttributeReader::domain, IMB_colormanagement_scene_linear_to_srgb_v3(), NA_EDITED, NC_BRUSH, OPERATOR_CANCELLED, OPERATOR_FINISHED, Sculpt::paint, wmOperator::reports, Object::sculpt, ToolSettings::sculpt, SCULPT_handles_colors_report(), and WM_event_add_notifier().
Referenced by SCULPT_OT_sample_color().
| std::optional< CurvesBrush3D > blender::ed::sculpt_paint::sample_curves_3d_brush | ( | const Depsgraph & | depsgraph, |
| const ARegion & | region, | ||
| const View3D & | v3d, | ||
| const RegionView3D & | rv3d, | ||
| const Object & | curves_object, | ||
| const float2 & | brush_pos_re, | ||
| const float | brush_radius_re ) |
Find 3d brush position based on cursor position for curves sculpting.
Definition at line 170 of file curves_sculpt_brush.cc.
References BKE_bvhtree_from_mesh_get(), BKE_object_get_evaluated_mesh(), BLI_bvhtree_ray_cast(), BLI_SCOPED_DEFER, BVHTREE_FROM_CORNER_TRIS, BVHTreeRayHit::co, Object::data, DEG_get_evaluated_object(), depsgraph, BVHTreeRayHit::dist, dist_to_line_v3(), blender::math::distance(), ED_view3d_win_to_segment_clipped(), find_curves_brush_position(), FLT_MAX, free_bvhtree_from_mesh(), Curves::geometry, blender::bke::crazyspace::get_evaluated_curves_deformation(), BVHTreeRayHit::index, blender::math::invert(), blender::math::normalize(), blender::ed::sculpt_paint::CurvesBrush3D::position_cu, blender::ed::sculpt_paint::CurvesBrush3D::radius_cu, BVHTreeFromMesh::raycast_callback, Curves::surface, blender::math::transform_point(), and BVHTreeFromMesh::tree.
Referenced by blender::ed::sculpt_paint::CurvesEffectOperationExecutor::execute(), blender::ed::sculpt_paint::PinchOperationExecutor::execute(), blender::ed::sculpt_paint::PuffOperationExecutor::execute(), blender::ed::sculpt_paint::SmoothOperationExecutor::execute(), blender::ed::sculpt_paint::SnakeHookOperatorExecutor::execute(), blender::ed::sculpt_paint::CombOperationExecutor::initialize_spherical_brush_reference_point(), blender::ed::sculpt_paint::DeleteOperationExecutor::initialize_spherical_brush_reference_point(), and blender::ed::sculpt_paint::SelectionPaintOperationExecutor::initialize_spherical_brush_reference_point().
| std::optional< CurvesBrush3D > blender::ed::sculpt_paint::sample_curves_surface_3d_brush | ( | const Depsgraph & | depsgraph, |
| const ARegion & | region, | ||
| const View3D & | v3d, | ||
| const CurvesSurfaceTransforms & | transforms, | ||
| const BVHTreeFromMesh & | surface_bvh, | ||
| const float2 & | brush_pos_re, | ||
| const float | brush_radius_re ) |
Definition at line 268 of file curves_sculpt_brush.cc.
References BLI_bvhtree_ray_cast(), BVHTreeRayHit::co, depsgraph, BVHTreeRayHit::dist, dist_to_line_v3(), ED_view3d_win_to_segment_clipped(), FLT_MAX, BVHTreeRayHit::index, blender::math::normalize(), BVHTreeFromMesh::raycast_callback, blender::bke::CurvesSurfaceTransforms::surface_to_curves, blender::math::transform_point(), BVHTreeFromMesh::tree, blender::bke::CurvesSurfaceTransforms::world_to_curves, and blender::bke::CurvesSurfaceTransforms::world_to_surface.
Referenced by blender::ed::sculpt_paint::SlideOperationExecutor::find_curves_to_slide_with_symmetry(), blender::ed::sculpt_paint::DensitySubtractOperationExecutor::reduce_density_spherical_with_symmetry(), blender::ed::sculpt_paint::AddOperationExecutor::sample_spherical_with_symmetry(), blender::ed::sculpt_paint::DensityAddOperationExecutor::sample_spherical_with_symmetry(), and use_add_density_mode().
|
static |
Definition at line 219 of file multiplane_scrape.cc.
References accumulate_samples(), apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, BKE_brush_calc_curve_factors(), BKE_pbvh_bmesh_node_unique_verts(), SculptSession::bm, BRUSH_FRONTFACE, SculptSession::cache, calc_brush_distances(), calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), Brush::curve, Brush::curve_preset, depsgraph, blender::ed::sculpt_paint::LocalData::distances, blender::ed::sculpt_paint::LocalData::factors, Brush::falloff_shape, filter_distances_with_radius(), filter_region_clip_factors(), Brush::flag, gather_bmesh_normals(), gather_bmesh_positions(), blender::ed::sculpt_paint::StrokeCache::hardness, blender::ed::sculpt_paint::LocalData::local_positions, Brush::normal_radius_factor, blender::ed::sculpt_paint::LocalData::normals, blender::ed::sculpt_paint::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), sample, transform_positions(), verts, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
|
static |
Definition at line 174 of file multiplane_scrape.cc.
References accumulate_samples(), apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, BKE_brush_calc_curve_factors(), BRUSH_FRONTFACE, SculptSession::cache, calc_brush_distances(), calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), Brush::curve, Brush::curve_preset, depsgraph, blender::ed::sculpt_paint::LocalData::distances, blender::ed::sculpt_paint::LocalData::factors, Brush::falloff_shape, filter_distances_with_radius(), filter_region_clip_factors(), Brush::flag, gather_grids_normals(), gather_grids_positions(), blender::ed::sculpt_paint::StrokeCache::hardness, blender::ed::sculpt_paint::LocalData::local_positions, Brush::normal_radius_factor, blender::ed::sculpt_paint::LocalData::normals, blender::ed::sculpt_paint::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), sample, SculptSession::subdiv_ccg, transform_positions(), and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
|
static |
Definition at line 129 of file multiplane_scrape.cc.
References accumulate_samples(), apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, BKE_brush_calc_curve_factors(), BRUSH_FRONTFACE, SculptSession::cache, calc_brush_distances(), calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), Brush::curve, Brush::curve_preset, depsgraph, blender::ed::sculpt_paint::LocalData::distances, blender::ed::sculpt_paint::LocalData::factors, Brush::falloff_shape, filter_distances_with_radius(), filter_region_clip_factors(), Brush::flag, gather_data_mesh(), blender::ed::sculpt_paint::StrokeCache::hardness, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::LocalData::local_positions, blender::ed::sculpt_paint::MeshAttributeData::mask, Brush::normal_radius_factor, blender::ed::sculpt_paint::LocalData::normals, blender::ed::sculpt_paint::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), sample, transform_positions(), verts, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
|
static |
Definition at line 265 of file multiplane_scrape.cc.
References depsgraph, blender::bke::pbvh::Grids, blender::index_mask::IndexMask::index_range(), join_samples(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), blender::threading::parallel_reduce(), blender::bke::object::pbvh_get(), sample, blender::bke::pbvh::Tree::type(), blender::bke::pbvh::vert_normals_eval(), and blender::bke::pbvh::vert_positions_eval().
Referenced by do_multiplane_scrape_brush().
|
static |
Definition at line 104 of file paint_image_2d_curve_mask.cc.
References CurveMaskCache::last_curve_timestamp, MEM_SAFE_FREE, and CurveMaskCache::sampled_curve.
Referenced by paint_curve_mask_cache_free_data().
| void blender::ed::sculpt_paint::scale_factors | ( | MutableSpan< float > | factors, |
| float | strength ) |
Definition at line 7227 of file sculpt.cc.
References scale_factors().
Referenced by blender::ed::sculpt_paint::cloth::apply_filter_forces_bmesh(), blender::ed::sculpt_paint::cloth::apply_filter_forces_grids(), blender::ed::sculpt_paint::cloth::apply_filter_forces_mesh(), blender::ed::sculpt_paint::mask::apply_mask_bmesh(), blender::ed::sculpt_paint::mask::apply_mask_grids(), blender::ed::sculpt_paint::mask::apply_mask_mesh(), blender::ed::sculpt_paint::boundary::calc_bend_bmesh(), blender::ed::sculpt_paint::boundary::calc_bend_grids(), blender::ed::sculpt_paint::boundary::calc_bend_mesh(), calc_bmesh(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), blender::ed::sculpt_paint::filter::calc_erase_displacement_filter(), calc_faces(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), blender::ed::sculpt_paint::boundary::calc_grab_bmesh(), blender::ed::sculpt_paint::boundary::calc_grab_grids(), blender::ed::sculpt_paint::boundary::calc_grab_mesh(), calc_grids(), blender::ed::sculpt_paint::boundary::calc_inflate_bmesh(), blender::ed::sculpt_paint::filter::calc_inflate_filter(), blender::ed::sculpt_paint::boundary::calc_inflate_grids(), blender::ed::sculpt_paint::boundary::calc_inflate_mesh(), blender::ed::sculpt_paint::filter::calc_random_filter(), blender::ed::sculpt_paint::filter::calc_relax_face_sets_filter(), blender::ed::sculpt_paint::filter::calc_relax_filter(), blender::ed::sculpt_paint::filter::calc_scale_filter(), blender::ed::sculpt_paint::filter::calc_sharpen_filter(), blender::ed::sculpt_paint::boundary::calc_slide_bmesh(), blender::ed::sculpt_paint::boundary::calc_slide_grids(), blender::ed::sculpt_paint::boundary::calc_slide_mesh(), blender::ed::sculpt_paint::boundary::calc_smooth_bmesh(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_smooth_grids(), blender::ed::sculpt_paint::boundary::calc_smooth_mesh(), blender::ed::sculpt_paint::filter::calc_sphere_filter(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_bmesh(), blender::ed::sculpt_paint::boundary::calc_twist_grids(), blender::ed::sculpt_paint::boundary::calc_twist_mesh(), blender::ed::sculpt_paint::color::color_filter_task(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::paint::image::do_paint_pixels(), blender::ed::sculpt_paint::color::do_smear_brush_task(), elastic_transform_node_bmesh(), elastic_transform_node_grids(), elastic_transform_node_mesh(), scale_factors(), scale_factors(), and blender::ed::sculpt_paint::cloth::solve_verts_simulation().
| void blender::ed::sculpt_paint::scale_factors | ( | MutableSpan< float > | factors, |
| Span< float > | strengths ) |
Definition at line 7237 of file sculpt.cc.
References BLI_assert, blender::MutableSpan< T >::index_range(), scale_factors(), blender::MutableSpan< T >::size(), and blender::Span< T >::size().
| void blender::ed::sculpt_paint::scale_translations | ( | MutableSpan< float3 > | translations, |
| float | factor ) |
Definition at line 7217 of file sculpt.cc.
References blender::MutableSpan< T >::index_range(), and scale_translations().
| void blender::ed::sculpt_paint::scale_translations | ( | MutableSpan< float3 > | translations, |
| Span< float > | factors ) |
Definition at line 7210 of file sculpt.cc.
References blender::MutableSpan< T >::index_range(), and scale_translations().
Referenced by blender::ed::sculpt_paint::cloth::apply_filter_forces_bmesh(), blender::ed::sculpt_paint::cloth::apply_filter_forces_grids(), blender::ed::sculpt_paint::cloth::apply_filter_forces_mesh(), blender::ed::sculpt_paint::project::apply_projection_bmesh(), blender::ed::sculpt_paint::project::apply_projection_grids(), blender::ed::sculpt_paint::project::apply_projection_mesh(), blender::ed::sculpt_paint::cloth::apply_scale_filter(), calc_bmesh(), blender::ed::sculpt_paint::pose::calc_bmesh(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), blender::ed::sculpt_paint::filter::calc_erase_displacement_filter(), calc_faces(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), calc_grids(), blender::ed::sculpt_paint::pose::calc_grids(), blender::ed::sculpt_paint::filter::calc_inflate_filter(), blender::ed::sculpt_paint::pose::calc_mesh(), blender::ed::sculpt_paint::filter::calc_random_filter(), blender::ed::sculpt_paint::filter::calc_scale_filter(), blender::ed::sculpt_paint::filter::calc_sharpen_filter(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::face_set::edit_fairing(), elastic_transform_node_bmesh(), elastic_transform_node_grids(), elastic_transform_node_mesh(), scale_translations(), scale_translations(), blender::ed::sculpt_paint::cloth::solve_verts_simulation(), transform_node_bmesh(), transform_node_grids(), and transform_node_mesh().
| void blender::ed::sculpt_paint::scatter_data_bmesh | ( | Span< T > | node_data, |
| const Set< BMVert *, 0 > & | verts, | ||
| MutableSpan< T > | dst ) |
Definition at line 6148 of file sculpt.cc.
References BLI_assert, BM_elem_index_get, scatter_data_bmesh(), blender::Span< T >::size(), and verts.
Referenced by blender::ed::sculpt_paint::boundary::calc_bend_bmesh(), blender::ed::sculpt_paint::pose::calc_bmesh(), blender::ed::sculpt_paint::cloth::calc_constraint_factors(), blender::ed::sculpt_paint::boundary::calc_grab_bmesh(), blender::ed::sculpt_paint::boundary::calc_inflate_bmesh(), blender::ed::sculpt_paint::boundary::calc_slide_bmesh(), blender::ed::sculpt_paint::boundary::calc_smooth_bmesh(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_bmesh(), blender::ed::sculpt_paint::filter::mesh_filter_sharpen_init(), and scatter_data_bmesh().
| template void blender::ed::sculpt_paint::scatter_data_bmesh< float > | ( | Span< float > | , |
| const Set< BMVert *, 0 > & | , | ||
| MutableSpan< float > | ) |
| template void blender::ed::sculpt_paint::scatter_data_bmesh< float3 > | ( | Span< float3 > | , |
| const Set< BMVert *, 0 > & | , | ||
| MutableSpan< float3 > | ) |
| void blender::ed::sculpt_paint::scatter_data_grids | ( | const SubdivCCG & | subdiv_ccg, |
| Span< T > | node_data, | ||
| Span< int > | grids, | ||
| MutableSpan< T > | dst ) |
Definition at line 6132 of file sculpt.cc.
References BKE_subdiv_ccg_key_top_level(), BLI_assert, blender::MutableSpan< T >::copy_from(), CCGKey::grid_area, blender::Span< T >::index_range(), scatter_data_grids(), blender::Span< T >::size(), blender::MutableSpan< T >::slice(), and blender::Span< T >::slice().
Referenced by blender::ed::sculpt_paint::mask::apply_new_mask_grids(), blender::ed::sculpt_paint::smooth::blur_geometry_data_array(), blender::ed::sculpt_paint::boundary::calc_bend_grids(), blender::ed::sculpt_paint::cloth::calc_constraint_factors(), blender::ed::sculpt_paint::boundary::calc_grab_grids(), blender::ed::sculpt_paint::pose::calc_grids(), blender::ed::sculpt_paint::boundary::calc_inflate_grids(), blender::ed::sculpt_paint::boundary::calc_slide_grids(), blender::ed::sculpt_paint::boundary::calc_smooth_grids(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_grids(), blender::ed::sculpt_paint::mask::decrease_contrast_mask_grids(), blender::ed::sculpt_paint::mask::increase_contrast_mask_grids(), blender::ed::sculpt_paint::filter::mesh_filter_sharpen_init(), scatter_data_grids(), and blender::ed::sculpt_paint::mask::scatter_mask_grids().
| template void blender::ed::sculpt_paint::scatter_data_grids< float > | ( | const SubdivCCG & | , |
| Span< float > | , | ||
| Span< int > | , | ||
| MutableSpan< float > | ) |
| template void blender::ed::sculpt_paint::scatter_data_grids< float3 > | ( | const SubdivCCG & | , |
| Span< float3 > | , | ||
| Span< int > | , | ||
| MutableSpan< float3 > | ) |
| void blender::ed::sculpt_paint::scatter_data_mesh | ( | Span< T > | src, |
| Span< int > | indices, | ||
| MutableSpan< T > | dst ) |
Scatter data from an array of the node's data to the referenced geometry vertices.
Definition at line 6122 of file sculpt.cc.
References BLI_assert, scatter_data_mesh(), and blender::Span< T >::size().
Referenced by blender::ed::sculpt_paint::cloth::apply_grab_brush(), blender::ed::sculpt_paint::mask::apply_mask_mesh(), blender::ed::sculpt_paint::mask::apply_new_mask_mesh(), blender::ed::sculpt_paint::cloth::apply_snake_hook_brush(), blender::ed::sculpt_paint::smooth::blur_geometry_data_array(), blender::ed::sculpt_paint::boundary::calc_bend_mesh(), blender::ed::sculpt_paint::cloth::calc_constraint_factors(), blender::ed::sculpt_paint::boundary::calc_grab_mesh(), blender::ed::sculpt_paint::boundary::calc_inflate_mesh(), blender::ed::sculpt_paint::pose::calc_mesh(), blender::ed::sculpt_paint::boundary::calc_slide_mesh(), blender::ed::sculpt_paint::boundary::calc_smooth_mesh(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_mesh(), blender::ed::sculpt_paint::mask::decrease_contrast_mask_mesh(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::face_set::face_hide_update(), blender::ed::sculpt_paint::face_set::face_sets_update(), blender::ed::sculpt_paint::hide::flush_face_changes_node(), blender::ed::sculpt_paint::mask::increase_contrast_mask_mesh(), blender::ed::sculpt_paint::filter::mesh_filter_sharpen_init(), blender::ed::sculpt_paint::undo::restore_face_set_from_undo_step(), blender::ed::sculpt_paint::undo::restore_mask_from_undo_step(), blender::ed::sculpt_paint::undo::restore_position_from_undo_step(), scatter_data_mesh(), blender::ed::sculpt_paint::mask::update_mask_mesh(), and blender::ed::sculpt_paint::hide::vert_hide_update().
| template void blender::ed::sculpt_paint::scatter_data_mesh< bool > | ( | Span< bool > | , |
| Span< int > | , | ||
| MutableSpan< bool > | ) |
| template void blender::ed::sculpt_paint::scatter_data_mesh< float > | ( | Span< float > | , |
| Span< int > | , | ||
| MutableSpan< float > | ) |
| template void blender::ed::sculpt_paint::scatter_data_mesh< float3 > | ( | Span< float3 > | , |
| Span< int > | , | ||
| MutableSpan< float3 > | ) |
| template void blender::ed::sculpt_paint::scatter_data_mesh< float4 > | ( | Span< float4 > | , |
| Span< int > | , | ||
| MutableSpan< float4 > | ) |
| template void blender::ed::sculpt_paint::scatter_data_mesh< int > | ( | Span< int > | , |
| Span< int > | , | ||
| MutableSpan< int > | ) |
|
static |
Test whether the StrokeCache.sculpt_normal needs update in do_brush_action
Definition at line 785 of file sculpt.cc.
References BKE_brush_has_cube_tip(), BKE_brush_mask_texture_get(), MTex::brush_map_mode, brush_uses_topology_rake(), SculptSession::cache, ELEM, MTEX_MAP_MODE_AREA, blender::ed::sculpt_paint::auto_mask::needs_normal(), blender::ed::sculpt_paint::StrokeCache::normal_weight, OB_MODE_SCULPT, Sculpt, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_BLOB, SCULPT_BRUSH_TYPE_CLOTH, SCULPT_BRUSH_TYPE_CREASE, SCULPT_BRUSH_TYPE_DRAW, SCULPT_BRUSH_TYPE_DRAW_SHARP, SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, SCULPT_BRUSH_TYPE_HAS_NORMAL_WEIGHT, SCULPT_BRUSH_TYPE_LAYER, SCULPT_BRUSH_TYPE_NUDGE, SCULPT_BRUSH_TYPE_ROTATE, and SCULPT_BRUSH_TYPE_THUMB.
Referenced by do_brush_action().
|
static |
Definition at line 5443 of file sculpt.cc.
References BKE_paint_brush_for_read(), brush_exit_tex(), SculptSession::cache, CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_tool_settings(), wmOperator::customdata, depsgraph, Sculpt::paint, paint_stroke_cancel(), Object::sculpt, ToolSettings::sculpt, and sculpt_brush_stroke_cancel().
Referenced by sculpt_brush_stroke_cancel(), and SCULPT_OT_brush_stroke().
|
static |
Definition at line 5424 of file sculpt.cc.
References brush_stroke_init(), wmOperator::customdata, OPERATOR_FINISHED, paint_stroke_exec(), paint_stroke_new(), sculpt_brush_stroke_exec(), SCULPT_stroke_get_location(), stroke_done(), stroke_test_start(), and stroke_update_step().
Referenced by sculpt_brush_stroke_exec(), and SCULPT_OT_brush_stroke().
|
static |
Definition at line 5344 of file sculpt.cc.
References BKE_base_is_visible(), BKE_paint_brush(), BKE_report(), BKE_sculpt_mask_layers_ensure(), BKE_sculpt_multires_active(), BLI_assert, brush_stroke_init(), CTX_data_active_base(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_view3d(), wmOperator::customdata, ELEM, float, wmOperatorType::modal, wmEvent::mval, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RETVAL_CHECK, OPERATOR_RUNNING_MODAL, over_mesh(), Sculpt::paint, paint_stroke_free(), paint_stroke_new(), blender::bke::object::pbvh_get(), wmOperator::ptr, report_if_shape_key_is_locked(), wmOperator::reports, RNA_boolean_get(), RPT_ERROR, ToolSettings::sculpt, sculpt_brush_stroke_invoke(), Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_DISPLACEMENT_ERASER, SCULPT_BRUSH_TYPE_DISPLACEMENT_SMEAR, SCULPT_brush_type_is_attribute_only(), SCULPT_brush_type_is_mask(), SCULPT_brush_type_is_paint(), SCULPT_handles_colors_report(), SCULPT_stroke_get_location(), stroke_done(), stroke_test_start(), stroke_update_step(), blender::bke::pbvh::Tree::type(), wmEvent::type, wmOperator::type, and WM_event_add_modal_handler().
Referenced by sculpt_brush_stroke_invoke(), and SCULPT_OT_brush_stroke().
| float blender::ed::sculpt_paint::sculpt_calc_radius | ( | const ViewContext & | vc, |
| const Brush & | brush, | ||
| const Scene & | scene, | ||
| const float3 | location ) |
Definition at line 115 of file sculpt.cc.
References BKE_brush_size_get(), BKE_brush_unprojected_radius_get(), BKE_brush_use_locked_size(), and paint_calc_object_space_radius().
Referenced by blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_edit_invoke(), and sculpt_update_cache_variants().
|
static |
Definition at line 260 of file curves_sculpt_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_stroke_operator_properties(), sculpt_curves_stroke_cancel(), sculpt_curves_stroke_invoke(), and sculpt_curves_stroke_modal().
|
static |
Definition at line 1151 of file curves_sculpt_ops.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and SCULPT_CURVES_OT_min_distance_edit().
Referenced by SCULPT_CURVES_OT_min_distance_edit().
|
static |
Definition at line 794 of file curves_sculpt_ops.cc.
References wmOperatorType::description, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_DISTANCE, RNA_def_float(), RNA_def_property_subtype(), SCULPT_CURVES_OT_select_grow(), and wmOperatorType::srna.
Referenced by SCULPT_CURVES_OT_select_grow().
|
static |
Definition at line 476 of file curves_sculpt_ops.cc.
References wmOperatorType::description, blender::ed::curves::editable_curves_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, INT32_MAX, INT32_MIN, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_float(), RNA_def_int(), blender::ed::sculpt_paint::select_random::select_random_exec(), blender::ed::sculpt_paint::select_random::select_random_ui(), wmOperatorType::srna, and wmOperatorType::ui.
|
static |
Definition at line 250 of file curves_sculpt_ops.cc.
References wmOperator::customdata, paint_stroke_cancel(), and blender::ed::sculpt_paint::SculptCurvesBrushStrokeData::stroke.
Referenced by SCULPT_CURVES_OT_brush_stroke().
|
static |
Definition at line 205 of file curves_sculpt_ops.cc.
References BKE_paint_brush_for_read(), BKE_paint_get_active_from_paintmode(), CTX_data_scene(), wmOperator::customdata, wmOperatorType::modal, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, paint_stroke_free(), paint_stroke_new(), SculptCurves, blender::ed::sculpt_paint::SculptCurvesBrushStrokeData::stroke, stroke_done(), stroke_get_location(), stroke_test_start(), stroke_update_step(), wmEvent::type, wmOperator::type, and WM_event_add_modal_handler().
Referenced by SCULPT_CURVES_OT_brush_stroke().
|
static |
Definition at line 238 of file curves_sculpt_ops.cc.
References wmOperator::customdata, ELEM, OPERATOR_CANCELLED, OPERATOR_FINISHED, paint_stroke_modal(), and blender::ed::sculpt_paint::SculptCurvesBrushStrokeData::stroke.
Referenced by SCULPT_CURVES_OT_brush_stroke().
|
static |
Noise texture gives different values for the same input coord; this can tear a multi-resolution mesh during sculpting so do a stitch in this case.
Definition at line 3507 of file sculpt.cc.
References SculptSession::active, BKE_brush_mask_texture_get(), BKE_paint_brush_for_read(), SculptSession::multires, multires_stitch_grids(), OB_MODE_SCULPT, Sculpt::paint, Object::sculpt, MTex::tex, and Tex::type.
Referenced by stroke_update_step().
|
static |
Definition at line 1148 of file paint_cursor.cc.
References BRUSH_GRAB_ACTIVE_VERTEX, SculptSession::deform_modifiers_active, depsgraph, Brush::flag, GPU_DEPTH_LESS_EQUAL, GPU_DEPTH_NONE, GPU_depth_test(), GPU_depth_test_get(), GPU_line_width(), GPU_PRIM_LINES, immBegin(), immEnd(), immUniformColor4f(), immVertex3fv(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), SculptSession::preview_verts, blender::Array< T, InlineBufferCapacity, Allocator >::size(), and vert_positions_for_grab_active_get().
Referenced by paint_cursor_cursor_draw_3d_view_brush_cursor_active(), and paint_cursor_draw_3d_view_brush_cursor_inactive().
|
static |
Definition at line 3715 of file sculpt.cc.
References SculptSession::cache, ClipX, eModifierMode_Realtime, eModifierType_Mirror, blender::ed::sculpt_paint::StrokeCache::flag, MirrorModifierData::flag, blender::math::invert(), LISTBASE_FOREACH, blender::ed::sculpt_paint::StrokeCache::mat, blender::ed::sculpt_paint::StrokeCache::mat_inv, blender::ed::sculpt_paint::StrokeCache::mirror_modifier_clip, MirrorModifierData::mirror_ob, MOD_MIR_AXIS_X, MOD_MIR_CLIPPING, Object::modifiers, mul_m4_m4m4(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), sculpt_init_mirror_clipping(), blender::ed::sculpt_paint::StrokeCache::tolerance, and MirrorModifierData::tolerance.
Referenced by sculpt_init_mirror_clipping(), and sculpt_update_cache_invariants().
|
static |
Definition at line 1070 of file paint_stroke.cc.
References BRUSH_CLOTH_DEFORM_GRAB, Brush::cloth_deform_type, ELEM, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_BOUNDARY, SCULPT_BRUSH_TYPE_CLOTH, SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_POSE, SCULPT_BRUSH_TYPE_ROTATE, SCULPT_BRUSH_TYPE_SNAKE_HOOK, and SCULPT_BRUSH_TYPE_THUMB.
Referenced by paint_supports_dynamic_size(), paint_supports_dynamic_tex_coords(), and paint_supports_smooth_stroke().
|
static |
Definition at line 1190 of file paint_cursor.cc.
References GPU_line_width(), GPU_matrix_mul, GPU_matrix_pop(), GPU_matrix_push(), Brush::height, imm_draw_circle_wire_3d(), immUniformColor3fvAlpha(), translate_m4(), and unit_m4().
Referenced by paint_cursor_draw_3d_view_brush_cursor_inactive().
|
static |
Definition at line 535 of file sculpt_ops.cc.
References BKE_paint_brushes_validate(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), CTX_data_depsgraph_on_load(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_manager(), CTX_wm_message_bus(), Object::data, depsgraph, Object::id, ME_SCULPT_DYNAMIC_TOPOLOGY, Object::mode, blender::ed::object::mode_compat_set(), NC_SCENE, ND_MODE, OB_MODE_SCULPT, object_sculpt_mode_enter(), object_sculpt_mode_exit(), wmWindowManager::op_undo_depth, OPERATOR_CANCELLED, OPERATOR_FINISHED, Sculpt::paint, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), wmOperator::reports, ToolSettings::sculpt, WM_event_add_notifier(), WM_msg_publish_rna_prop, and WM_toolsystem_update_from_context_view3d().
Referenced by SCULPT_OT_sculptmode_toggle().
|
static |
Definition at line 4331 of file sculpt.cc.
References blender::ed::sculpt_paint::StrokeCache::alt_smooth, Brush::autosmooth_factor, BRUSH_MASK_SMOOTH, BRUSH_STROKE_SMOOTH, SculptSession::cache, Brush::mask_tool, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_BOUNDARY, SCULPT_BRUSH_TYPE_CLOTH, SCULPT_BRUSH_TYPE_DISPLACEMENT_SMEAR, SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, SCULPT_brush_type_is_paint(), SCULPT_BRUSH_TYPE_MASK, SCULPT_BRUSH_TYPE_PAINT, SCULPT_BRUSH_TYPE_POSE, SCULPT_BRUSH_TYPE_SLIDE_RELAX, SCULPT_BRUSH_TYPE_SMEAR, SCULPT_BRUSH_TYPE_SMOOTH, and sculpt_needs_connectivity_info().
Referenced by sculpt_needs_connectivity_info().
| void blender::ed::sculpt_paint::SCULPT_OT_brush_stroke | ( | wmOperatorType * | ot | ) |
Definition at line 5473 of file sculpt.cc.
References brush_stroke_modal(), wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, ot, paint_stroke_operator_properties(), wmOperatorType::poll, redo_empty_ui(), RNA_def_boolean(), sculpt_brush_stroke_cancel(), sculpt_brush_stroke_exec(), sculpt_brush_stroke_invoke(), SCULPT_OT_brush_stroke(), SCULPT_poll(), wmOperatorType::srna, and wmOperatorType::ui.
Referenced by operatortypes_sculpt(), and SCULPT_OT_brush_stroke().
|
static |
Definition at line 173 of file sculpt_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, optimize_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and SCULPT_mode_poll().
Referenced by operatortypes_sculpt().
|
static |
Definition at line 655 of file sculpt_ops.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, ot, wmOperatorType::poll, sample_color_invoke(), and SCULPT_mode_poll().
Referenced by operatortypes_sculpt().
|
static |
Definition at line 588 of file sculpt_ops.cc.
References wmOperatorType::description, ED_operator_object_active_editable_mesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and sculpt_mode_toggle_exec().
Referenced by operatortypes_sculpt().
|
static |
Definition at line 139 of file sculpt_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, SCULPT_mode_poll(), and set_persistent_base_exec().
Referenced by operatortypes_sculpt().
| void blender::ed::sculpt_paint::SCULPT_OT_set_pivot_position | ( | wmOperatorType * | ot | ) |
Definition at line 973 of file sculpt_transform.cc.
References wmOperatorType::depends_on_cursor, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::poll_property, prop_sculpt_pivot_position_types, RNA_def_enum(), RNA_def_float(), SCULPT_mode_poll(), SCULPT_OT_set_pivot_position(), set_pivot_depends_on_cursor(), set_pivot_position_exec(), set_pivot_position_invoke(), set_pivot_position_poll_property(), and wmOperatorType::srna.
Referenced by operatortypes_sculpt(), and SCULPT_OT_set_pivot_position().
|
static |
Definition at line 285 of file sculpt_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, no_multires_poll(), ot, wmOperatorType::poll, RNA_def_float(), RNA_def_property_ui_range(), wmOperatorType::srna, and symmetrize_exec().
Referenced by operatortypes_sculpt().
|
static |
Definition at line 285 of file sculpt_transform.cc.
References blender::bke::pbvh::BMesh, Object::data, depsgraph, SculptSession::filter_cache, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::filter::Cache::node_mask, blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), SubdivCCG::positions, blender::ed::sculpt_paint::undo::restore_position_from_undo_step(), Object::sculpt, SCULPT_mesh_symmetry_xyz_get(), SculptSession::subdiv_ccg, blender::bke::pbvh::Tree::tag_positions_changed(), blender::ed::sculpt_paint::filter::Cache::transform_displacement_mode, transform_matrices_init(), transform_node_bmesh(), transform_node_grids(), transform_node_mesh(), blender::bke::pbvh::Tree::type(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), and blender::bke::pbvh::update_node_bounds_mesh().
Referenced by update_modal_transform().
|
static |
Definition at line 3824 of file sculpt.cc.
References blender::ed::sculpt_paint::StrokeCache::accum, blender::ed::sculpt_paint::StrokeCache::alt_smooth, BKE_paint_brush(), BKE_paint_brush_for_read(), BLI_dial_init(), blender::ed::sculpt_paint::StrokeCache::brush, BRUSH_ACCUMULATE, BRUSH_ANCHORED, BRUSH_STROKE_INVERT, BRUSH_STROKE_SMOOTH, SculptSession::cache, copy_m3_m4(), copy_v2_v2(), copy_v3_v3(), CTX_data_active_object(), CTX_data_tool_settings(), SculptSession::cursor_location, SculptSession::cursor_normal, wmOperator::customdata, blender::ed::sculpt_paint::StrokeCache::dial, UnifiedPaintSettings::draw_inverted, ED_view3d_ob_project_mat_get(), ELEM, fabsf, blender::ed::sculpt_paint::StrokeCache::first_time, blender::ed::sculpt_paint::StrokeCache::flag, Brush::flag, blender::ed::sculpt_paint::StrokeCache::gravity_direction, Sculpt::gravity_factor, Sculpt::gravity_object, blender::ed::sculpt_paint::StrokeCache::initial_location, blender::ed::sculpt_paint::StrokeCache::initial_location_symm, blender::ed::sculpt_paint::StrokeCache::initial_mouse, blender::ed::sculpt_paint::StrokeCache::initial_normal, blender::ed::sculpt_paint::StrokeCache::initial_normal_symm, blender::ed::sculpt_paint::StrokeCache::invert, invert_m4_m4(), max_ff(), blender::ed::sculpt_paint::StrokeCache::mirror_modifier_clip, blender::ed::sculpt_paint::StrokeCache::mouse, blender::ed::sculpt_paint::StrokeCache::mouse_event, mul_m3_v3(), blender::ed::sculpt_paint::StrokeCache::normal_weight, Brush::normal_weight, normalize_v3(), normalize_v3_v3(), Sculpt::paint, ToolSettings::paint_mode, paint_stroke_view_context(), PIXEL_INPUT_THRESHHOLD, Brush::plane_trim, blender::ed::sculpt_paint::StrokeCache::plane_trim_squared, blender::ed::sculpt_paint::StrokeCache::projection_mat, wmOperator::ptr, RNA_enum_get(), Object::runtime, ViewContext::rv3d, blender::ed::sculpt_paint::StrokeCache::scale, Object::scale, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_DISPLACEMENT_ERASER, SCULPT_BRUSH_TYPE_DISPLACEMENT_SMEAR, SCULPT_BRUSH_TYPE_DRAW_SHARP, SCULPT_BRUSH_TYPE_HAS_ACCUMULATE, SCULPT_BRUSH_TYPE_HAS_NORMAL_WEIGHT, SCULPT_BRUSH_TYPE_MASK, SCULPT_BRUSH_TYPE_PAINT, SCULPT_BRUSH_TYPE_ROTATE, SCULPT_BRUSH_TYPE_SIMPLIFY, SCULPT_BRUSH_TYPE_SMOOTH, sculpt_init_mirror_clipping(), sculpt_update_cache_invariants(), SCULPT_use_image_paint_brush(), blender::ed::sculpt_paint::StrokeCache::supports_gravity, UnifiedPaintSettings::tex_mouse, ToolSettings::unified_paint_settings, blender::ed::sculpt_paint::StrokeCache::vc, blender::ed::sculpt_paint::StrokeCache::view_normal, RegionView3D::viewinv, and zero_v2().
Referenced by sculpt_update_cache_invariants(), and stroke_test_start().
|
static |
Definition at line 4230 of file sculpt.cc.
References UnifiedPaintSettings::anchored_initial_mouse, UnifiedPaintSettings::anchored_size, BKE_brush_unprojected_radius_set(), BKE_brush_use_locked_size(), BKE_brush_use_size_pressure(), BKE_paint_brush(), BLI_dial_angle(), BRUSH_ANCHORED, brush_delta_update(), brush_dynamic_size_get(), BRUSH_EDGE_TO_EDGE, UnifiedPaintSettings::brush_rotation, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, cache_paint_invariants_update(), blender::ed::sculpt_paint::StrokeCache::clay_thumb_brush, copy_v2_v2(), CTX_data_depsgraph_pointer(), CTX_data_scene(), depsgraph, blender::ed::sculpt_paint::StrokeCache::dial, UnifiedPaintSettings::draw_anchored, blender::ed::sculpt_paint::StrokeCache::dyntopo_pixel_radius, blender::ed::sculpt_paint::StrokeCache::first_time, Brush::flag, blender::ed::sculpt_paint::StrokeCache::initial_mouse, UnifiedPaintSettings::initial_pixel_radius, blender::ed::sculpt_paint::StrokeCache::initial_radius, blender::ed::sculpt_paint::StrokeCache::iteration_count, blender::ed::sculpt_paint::StrokeCache::location, blender::ed::sculpt_paint::StrokeCache::mouse, blender::ed::sculpt_paint::StrokeCache::mouse_event, Sculpt::paint, paint_calc_object_space_radius(), paint_supports_dynamic_size(), blender::ed::sculpt_paint::StrokeCache::pen_flip, UnifiedPaintSettings::pixel_radius, blender::ed::sculpt_paint::StrokeCache::pressure, blender::ed::sculpt_paint::StrokeCache::pressure_stabilizer, ptr, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::StrokeCache::radius_squared, RNA_boolean_get(), RNA_float_get(), RNA_float_get_array(), Sculpt, Object::sculpt, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_CLAY_THUMB, SCULPT_BRUSH_TYPE_ROTATE, SCULPT_BRUSH_TYPE_SNAKE_HOOK, sculpt_calc_radius(), SCULPT_stroke_is_first_brush_step_of_symmetry_pass(), sculpt_update_cache_variants(), blender::ed::sculpt_paint::StrokeCache::special_rotation, blender::ed::sculpt_paint::StrokeCache::stabilizer_index, blender::ed::sculpt_paint::StrokeCache::tilt, blender::ed::sculpt_paint::StrokeCache::vc, and blender::ed::sculpt_paint::StrokeCache::vertex_rotation.
Referenced by sculpt_update_cache_variants(), and stroke_update_step().
|
static |
Definition at line 89 of file sculpt_ops.cc.
References BKE_base_is_visible(), BKE_sculpt_update_object_for_edit(), CTX_data_active_base(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_wm_view3d(), Object::data, depsgraph, blender::bke::pbvh::Mesh, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::bke::object::pbvh_get(), blender::bke::Point, blender::bke::MutableAttributeAccessor::remove(), Object::sculpt, and blender::bke::pbvh::vert_normals_eval().
Referenced by SCULPT_OT_set_persistent_base().
|
static |
Definition at line 624 of file sculpt_transform.cc.
References CursorSurface, ptr, and RNA_enum_get().
Referenced by SCULPT_OT_set_pivot_position().
|
static |
Definition at line 899 of file sculpt_transform.cc.
References SculptSession::active_vert_position(), average_mask_border_position(), UnifiedPaintSettings::average_stroke_accum, UnifiedPaintSettings::average_stroke_counter, average_unmasked_position(), BKE_base_is_visible(), BKE_sculpt_update_object_for_edit(), copy_v3_v3(), CTX_data_active_base(), CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_tool_settings(), CTX_wm_region(), CTX_wm_view3d(), Object::data, depsgraph, ED_region_tag_redraw(), UnifiedPaintSettings::last_stroke_valid, NC_GEOM, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, SculptSession::pivot_pos, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), Object::sculpt, SCULPT_mesh_symmetry_xyz_get(), SCULPT_stroke_get_location(), set_pivot_position_exec(), ToolSettings::unified_paint_settings, WM_event_add_notifier(), and zero_v3().
Referenced by SCULPT_OT_set_pivot_position(), set_pivot_position_exec(), and set_pivot_position_invoke().
|
static |
Definition at line 955 of file sculpt_transform.cc.
References wmEvent::mval, wmOperator::ptr, RNA_float_set(), set_pivot_position_exec(), and set_pivot_position_invoke().
Referenced by SCULPT_OT_set_pivot_position(), and set_pivot_position_invoke().
|
static |
Definition at line 962 of file sculpt_transform.cc.
References wmOperator::ptr, RNA_enum_get(), RNA_property_identifier(), set_pivot_position_poll_property(), and STRPREFIX.
Referenced by SCULPT_OT_set_pivot_position(), and set_pivot_position_poll_property().
|
static |
Definition at line 200 of file brush_asset_ops.cc.
References blender::ed::asset::shelf::active_shelf_from_area(), BKE_preferences_asset_shelf_settings_ensure_catalog_path_enabled(), blender::StringRefNull::c_str(), CTX_wm_manager(), AssetShelf::idname, LISTBASE_FOREACH, wmWindowManager::windows, and WM_window_get_active_screen().
Referenced by brush_asset_save_as_exec().
|
static |
Definition at line 1312 of file grease_pencil_draw_ops.cc.
References blender::bke::curves_copy_point_selection(), blender::index_mask::IndexMask::from_predicate(), and blender::math::pow().
Referenced by grease_pencil_apply_fill().
|
static |
Definition at line 3794 of file sculpt.cc.
References BKE_brush_size_set(), BKE_paint_brush(), BKE_paint_brush_set(), CTX_data_scene(), ELEM, Brush::mask_tool, blender::ed::sculpt_paint::StrokeCache::saved_active_brush, blender::ed::sculpt_paint::StrokeCache::saved_mask_brush_tool, blender::ed::sculpt_paint::StrokeCache::saved_smooth_size, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, SCULPT_BRUSH_TYPE_MASK, SCULPT_BRUSH_TYPE_PAINT, SCULPT_BRUSH_TYPE_SLIDE_RELAX, and SCULPT_BRUSH_TYPE_SMEAR.
|
static |
Definition at line 3752 of file sculpt.cc.
References BKE_brush_size_get(), BKE_brush_size_set(), BKE_curvemapping_init(), BKE_paint_brush(), BKE_paint_brush_set(), BKE_paint_brush_set_essentials(), BRUSH_MASK_SMOOTH, CLOG_WARN, CTX_data_main(), CTX_data_scene(), Brush::curve, ELEM, LOG, Brush::mask_tool, blender::ed::sculpt_paint::StrokeCache::saved_active_brush, blender::ed::sculpt_paint::StrokeCache::saved_mask_brush_tool, blender::ed::sculpt_paint::StrokeCache::saved_smooth_size, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, SCULPT_BRUSH_TYPE_MASK, SCULPT_BRUSH_TYPE_PAINT, SCULPT_BRUSH_TYPE_SLIDE_RELAX, and SCULPT_BRUSH_TYPE_SMEAR.
|
static |
Definition at line 1283 of file grease_pencil_draw_ops.cc.
References blender::VArray< T >::ForSingle(), blender::index_mask::IndexMask::is_empty(), and blender::geometry::smooth_curve_attribute().
Referenced by grease_pencil_apply_fill().
|
static |
Definition at line 115 of file curves_sculpt_ops.cc.
References BKE_paint_brush_for_read(), BLI_assert_unreachable, CTX_data_scene(), Brush::curves_sculpt_brush_type, CURVES_SCULPT_BRUSH_TYPE_ADD, CURVES_SCULPT_BRUSH_TYPE_COMB, CURVES_SCULPT_BRUSH_TYPE_DELETE, CURVES_SCULPT_BRUSH_TYPE_DENSITY, CURVES_SCULPT_BRUSH_TYPE_GROW_SHRINK, CURVES_SCULPT_BRUSH_TYPE_PINCH, CURVES_SCULPT_BRUSH_TYPE_PUFF, CURVES_SCULPT_BRUSH_TYPE_SELECTION_PAINT, CURVES_SCULPT_BRUSH_TYPE_SLIDE, CURVES_SCULPT_BRUSH_TYPE_SMOOTH, CURVES_SCULPT_BRUSH_TYPE_SNAKE_HOOK, new_add_operation(), new_comb_operation(), new_delete_operation(), new_density_operation(), new_grow_shrink_operation(), new_pinch_operation(), new_puff_operation(), new_selection_paint_operation(), new_slide_operation(), new_smooth_operation(), new_snake_hook_operation(), CurvesSculpt::paint, wmOperator::ptr, and RNA_enum_get().
Referenced by stroke_update_step().
|
static |
Definition at line 1011 of file paint_stroke.cc.
References blender::ed::sculpt_paint::PaintStroke::brush, MTex::brush_angle_mode, UnifiedPaintSettings::brush_rotation, UnifiedPaintSettings::brush_rotation_sec, blender::ed::sculpt_paint::PaintStroke::done, Brush::mask_mtex, Brush::mtex, MTEX_ANGLE_RAKE, paint_stroke_free(), blender::ed::sculpt_paint::PaintStroke::redraw, blender::ed::sculpt_paint::PaintStroke::stroke_started, and blender::ed::sculpt_paint::PaintStroke::ups.
|
static |
Definition at line 5294 of file sculpt.cc.
References blender::ed::sculpt_paint::StrokeCache::alt_smooth, BKE_paint_brush(), BLI_assert, blender::ed::sculpt_paint::StrokeCache::brush, brush_exit_tex(), SculptSession::cache, CTX_data_active_object(), CTX_data_tool_settings(), UnifiedPaintSettings::draw_inverted, flush_update_done(), NC_OBJECT, ND_DRAW, Sculpt::paint, ToolSettings::paint_mode, Object::sculpt, ToolSettings::sculpt, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_MASK, SCULPT_BRUSH_TYPE_PAINT, SCULPT_stroke_modifiers_check(), SCULPT_use_image_paint_brush(), stroke_done(), stroke_undo_end(), ToolSettings::unified_paint_settings, and WM_event_add_notifier().
Referenced by sculpt_brush_stroke_exec(), sculpt_brush_stroke_invoke(), and stroke_done().
|
static |
Definition at line 200 of file curves_sculpt_ops.cc.
References UNUSED_VARS.
Referenced by grease_pencil_brush_stroke_invoke(), grease_pencil_sculpt_paint_invoke(), grease_pencil_vertex_brush_stroke_invoke(), grease_pencil_weight_brush_stroke_invoke(), paint_stroke_cancel(), paint_stroke_curve_end(), paint_stroke_exec(), paint_stroke_modal(), and sculpt_curves_stroke_invoke().
|
static |
Definition at line 208 of file grease_pencil_draw_ops.cc.
References blender::ed::sculpt_paint::GreasePencilStrokeOperation::on_stroke_done(), and paint_stroke_mode_data().
|
static |
Definition at line 76 of file grease_pencil_draw_ops.cc.
|
static |
Definition at line 156 of file curves_sculpt_ops.cc.
References UNUSED_VARS.
Referenced by grease_pencil_brush_stroke_invoke(), grease_pencil_sculpt_paint_invoke(), grease_pencil_vertex_brush_stroke_invoke(), grease_pencil_weight_brush_stroke_invoke(), and sculpt_curves_stroke_invoke().
|
static |
Definition at line 203 of file grease_pencil_draw_ops.cc.
References CTX_wm_region(), and ED_region_tag_redraw().
Referenced by grease_pencil_brush_stroke_invoke(), grease_pencil_sculpt_paint_invoke(), grease_pencil_vertex_brush_stroke_invoke(), and grease_pencil_weight_brush_stroke_invoke().
|
static |
Definition at line 168 of file curves_sculpt_ops.cc.
References UNUSED_VARS.
Referenced by grease_pencil_brush_stroke_invoke(), grease_pencil_sculpt_paint_invoke(), grease_pencil_vertex_brush_stroke_invoke(), grease_pencil_weight_brush_stroke_invoke(), and sculpt_curves_stroke_invoke().
|
static |
Definition at line 174 of file grease_pencil_draw_ops.cc.
References UNUSED_VARS.
|
static |
Definition at line 5195 of file sculpt.cc.
References BKE_paint_brush(), View3DShading::color_type, CTX_data_active_object(), CTX_data_tool_settings(), CTX_wm_region_view3d(), CTX_wm_view3d(), ED_view3d_init_mats_rv3d(), wmOperator::flag, OB_SOLID, OP_IS_INVOKE, over_mesh(), Sculpt::paint, ToolSettings::paint_mode, Object::sculpt, ToolSettings::sculpt, Brush::sculpt_brush_type, SCULPT_brush_type_is_paint(), SCULPT_cursor_geometry_info_update(), sculpt_update_cache_invariants(), SCULPT_use_image_paint_brush(), View3D::shading, stroke_test_start(), stroke_undo_begin(), View3DShading::type, and V3D_SHADING_VERTEX_COLOR.
Referenced by sculpt_brush_stroke_exec(), sculpt_brush_stroke_invoke(), and stroke_test_start().
|
static |
Definition at line 5233 of file sculpt.cc.
References BKE_paint_brush_for_read(), SculptSession::cache, copy_v3_v3(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_data_tool_settings(), depsgraph, do_brush_action(), do_symmetrical_brush_actions(), dynamic_topology_update(), blender::ed::sculpt_paint::StrokeCache::first_time, flush_update_step(), blender::ed::sculpt_paint::StrokeCache::last_location, blender::ed::sculpt_paint::StrokeCache::location, Sculpt::paint, ToolSettings::paint_mode, paint_stroke_distance_get(), restore_from_undo_step_if_necessary(), Object::sculpt, ToolSettings::sculpt, Brush::sculpt_brush_type, SCULPT_brush_type_is_paint(), SCULPT_BRUSH_TYPE_MASK, sculpt_fix_noise_tear(), SCULPT_stroke_modifiers_check(), sculpt_update_cache_variants(), SCULPT_use_image_paint_brush(), blender::ed::sculpt_paint::StrokeCache::stroke_distance, stroke_update_step(), and ToolSettings::unified_paint_settings.
Referenced by sculpt_brush_stroke_exec(), sculpt_brush_stroke_invoke(), and stroke_update_step().
|
static |
Definition at line 174 of file curves_sculpt_ops.cc.
References wmOperator::customdata, blender::ed::sculpt_paint::StrokeExtension::is_first, blender::ed::sculpt_paint::StrokeExtension::mouse_position, blender::ed::sculpt_paint::SculptCurvesBrushStrokeData::operation, blender::ed::sculpt_paint::StrokeExtension::pressure, blender::ed::sculpt_paint::StrokeExtension::reports, wmOperator::reports, RNA_float_get(), RNA_float_get_array(), and start_brush_operation().
Referenced by grease_pencil_brush_stroke_invoke(), grease_pencil_sculpt_paint_invoke(), grease_pencil_vertex_brush_stroke_invoke(), grease_pencil_weight_brush_stroke_invoke(), and sculpt_curves_stroke_invoke().
|
static |
Definition at line 180 of file grease_pencil_draw_ops.cc.
References BLI_assert, get_stroke_operation(), blender::ed::sculpt_paint::GreasePencilStrokeOperation::on_stroke_extended(), paint_stroke_mode_data(), paint_stroke_set_mode_data(), RNA_float_get(), RNA_float_get_array(), and sample.
|
static |
Definition at line 207 of file sculpt_ops.cc.
References BKE_base_is_visible(), BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_ALL, BKE_mesh_mirror_apply_mirror_on_axis(), BKE_sculptsession_free_pbvh(), SculptSession::bm, BM_EDGE, BM_ELEM_TAG, SculptSession::bm_log, BM_log_all_added(), BM_log_before_all_removed(), BM_mesh_elem_hflag_disable_all(), BM_mesh_toolflags_set(), blender::bke::pbvh::BMesh, BMO_FLAG_DEFAULTS, BMO_FLAG_RESPECT_HIDE, BMO_op_callf(), CTX_data_active_base(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_view3d(), Object::data, DEG_id_tag_update(), depsgraph, blender::ed::sculpt_paint::undo::Geometry, blender::ed::sculpt_paint::undo::geometry_begin(), blender::ed::sculpt_paint::undo::geometry_end(), blender::bke::pbvh::Grids, Object::id, ID_RECALC_GEOMETRY, blender::bke::pbvh::Mesh, NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::bke::object::pbvh_get(), wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), blender::ed::sculpt_paint::undo::push_node(), RNA_float_get(), Object::sculpt, ToolSettings::sculpt, Sculpt::symmetrize_direction, blender::ed::sculpt_paint::dyntopo::triangulate(), blender::bke::pbvh::Tree::type(), and WM_event_add_notifier().
Referenced by SCULPT_OT_symmetrize().
|
inline |
Definition at line 452 of file paint_intern.hh.
References PAINT_SYMM_X, PAINT_SYMM_Y, and PAINT_SYMM_Z.
Referenced by calc_brush_plane(), calc_overlap(), cursor_draw_point_with_symmetry(), filter_region_clip_factors(), filter_region_clip_factors(), find_symm_verts_bmesh(), find_symm_verts_grids(), find_symm_verts_mesh(), blender::ed::sculpt_paint::gesture::flip_for_symmetry_pass(), blender::ed::sculpt_paint::trim::gesture_apply_for_symmetry_pass(), blender::ed::sculpt_paint::boundary::init_boundary_bmesh(), blender::ed::sculpt_paint::boundary::init_boundary_grids(), blender::ed::sculpt_paint::boundary::init_boundary_mesh(), blender::ed::sculpt_paint::gesture::is_affected_lasso(), sculpt_apply_texture(), SCULPT_calc_vertex_displacement(), SCULPT_flip_v3_by_symm_area(), SCULPT_is_vertex_inside_brush_radius_symm(), transform_radius_elastic(), update_sculpt_normal(), and blender::ed::sculpt_paint::pose::vert_inside_brush_radius().
| float blender::ed::sculpt_paint::transform_brush_radius | ( | const float4x4 & | transform, |
| const float3 & | brush_position, | ||
| const float | old_radius ) |
Definition at line 349 of file curves_sculpt_brush.cc.
References blender::math::distance(), and blender::math::transform_point().
Referenced by blender::ed::sculpt_paint::AddOperationExecutor::sample_spherical_with_symmetry(), and blender::ed::sculpt_paint::DensityAddOperationExecutor::sample_spherical_with_symmetry().
|
static |
Definition at line 86 of file sculpt_transform.cc.
References add_v3_fl(), copy_v3_v3(), copy_v4_v4(), Incremental, SculptSession::init_pivot_pos, SculptSession::init_pivot_rot, SculptSession::init_pivot_scale, invert_m4_m4(), mul_m4_m4m4(), normalize_qt(), Original, PAINT_SYMM_AREAS, SculptSession::pivot_pos, SculptSession::pivot_rot, SculptSession::pivot_scale, SculptSession::prev_pivot_pos, SculptSession::prev_pivot_rot, SculptSession::prev_pivot_scale, ptr, quat_to_mat4(), SCULPT_flip_quat_by_symm_area(), SCULPT_flip_v3_by_symm_area(), size_to_mat4(), sub_qt_qtqt(), sub_v3_v3v3(), translate_m4(), and unit_m4().
Referenced by sculpt_transform_all_vertices(), and transform_radius_elastic().
|
static |
Definition at line 254 of file sculpt_transform.cc.
References apply_translations(), BKE_pbvh_bmesh_node_unique_verts(), SculptSession::bm, SculptSession::bm_log, calc_symm_area_transform_translations(), clip_and_lock_translations(), blender::ed::sculpt_paint::TransformLocalData::factors, filter_translations_with_symmetry(), orig_position_data_gather_bmesh(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), scale_translations(), SCULPT_mesh_symmetry_xyz_get(), blender::ed::sculpt_paint::TransformLocalData::translations, and verts.
Referenced by sculpt_transform_all_vertices().
|
static |
Definition at line 222 of file sculpt_transform.cc.
References apply_translations(), BKE_subdiv_ccg_key_top_level(), calc_symm_area_transform_translations(), clip_and_lock_translations(), blender::ed::sculpt_paint::TransformLocalData::factors, filter_translations_with_symmetry(), CCGKey::grid_area, orig_position_data_get_grids(), blender::ed::sculpt_paint::OrigPositionData::positions, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), scale_translations(), SCULPT_mesh_symmetry_xyz_get(), blender::Span< T >::size(), SculptSession::subdiv_ccg, and blender::ed::sculpt_paint::TransformLocalData::translations.
Referenced by sculpt_transform_all_vertices().
|
static |
Definition at line 193 of file sculpt_transform.cc.
References calc_symm_area_transform_translations(), clip_and_lock_translations(), blender::ed::sculpt_paint::PositionDeformData::deform(), blender::ed::sculpt_paint::PositionDeformData::eval, blender::ed::sculpt_paint::TransformLocalData::factors, filter_translations_with_symmetry(), blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::MeshAttributeData::mask, orig_position_data_get_mesh(), blender::ed::sculpt_paint::OrigPositionData::positions, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), scale_translations(), SCULPT_mesh_symmetry_xyz_get(), blender::ed::sculpt_paint::TransformLocalData::translations, and verts.
Referenced by sculpt_transform_all_vertices().
| void blender::ed::sculpt_paint::transform_positions | ( | const float4x4 & | transform, |
| MutableSpan< float3 > | positions ) |
Definition at line 7289 of file sculpt.cc.
References blender::math::transform_point().
| void blender::ed::sculpt_paint::transform_positions | ( | Span< float3 > | src, |
| const float4x4 & | transform, | ||
| MutableSpan< float3 > | dst ) |
Definition at line 7278 of file sculpt.cc.
References BLI_assert, blender::Span< T >::index_range(), blender::MutableSpan< T >::size(), blender::Span< T >::size(), and blender::math::transform_point().
Referenced by sample_node_surface_bmesh(), sample_node_surface_grids(), and sample_node_surface_mesh().
|
static |
Definition at line 452 of file sculpt_transform.cc.
References BKE_kelvinlet_init_params(), BLI_assert, blender::bke::pbvh::BMesh, Object::data, depsgraph, elastic_transform_node_bmesh(), elastic_transform_node_grids(), elastic_transform_node_mesh(), SculptSession::filter_cache, blender::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), SubdivCCG::grid_area, blender::bke::pbvh::Grids, Incremental, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::filter::Cache::node_mask, blender::bke::pbvh::Tree::nodes(), PAINT_SYMM_NONE, params, blender::bke::object::pbvh_get(), SculptSession::pivot_pos, SubdivCCG::positions, Object::sculpt, SCULPT_get_vertex_symm_area(), SCULPT_is_symmetry_iteration_valid(), SCULPT_mesh_symmetry_xyz_get(), SculptSession::subdiv_ccg, symmetry_flip(), blender::bke::pbvh::Tree::tag_positions_changed(), blender::ed::sculpt_paint::filter::Cache::transform_displacement_mode, transform_matrices_init(), blender::bke::pbvh::Tree::type(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), and blender::bke::pbvh::update_node_bounds_mesh().
Referenced by update_modal_transform().
| void blender::ed::sculpt_paint::translations_from_new_positions | ( | Span< float3 > | new_positions, |
| Span< float3 > | old_positions, | ||
| MutableSpan< float3 > | translations ) |
Definition at line 7268 of file sculpt.cc.
References BLI_assert, blender::Span< T >::index_range(), blender::Span< T >::size(), and translations_from_new_positions().
| void blender::ed::sculpt_paint::translations_from_new_positions | ( | Span< float3 > | new_positions, |
| Span< int > | verts, | ||
| Span< float3 > | old_positions, | ||
| MutableSpan< float3 > | translations ) |
For brushes that calculate an averaged new position instead of generating a new translation vector.
Definition at line 7257 of file sculpt.cc.
References BLI_assert, blender::Span< T >::size(), translations_from_new_positions(), and verts.
Referenced by blender::ed::sculpt_paint::boundary::calc_bend_bmesh(), blender::ed::sculpt_paint::boundary::calc_bend_grids(), blender::ed::sculpt_paint::boundary::calc_bend_mesh(), blender::ed::sculpt_paint::filter::calc_erase_displacement_filter(), blender::ed::sculpt_paint::boundary::calc_grab_bmesh(), blender::ed::sculpt_paint::boundary::calc_grab_grids(), blender::ed::sculpt_paint::boundary::calc_grab_mesh(), blender::ed::sculpt_paint::boundary::calc_inflate_bmesh(), blender::ed::sculpt_paint::boundary::calc_inflate_grids(), blender::ed::sculpt_paint::boundary::calc_inflate_mesh(), blender::ed::sculpt_paint::boundary::calc_slide_bmesh(), blender::ed::sculpt_paint::boundary::calc_slide_grids(), blender::ed::sculpt_paint::boundary::calc_slide_mesh(), blender::ed::sculpt_paint::boundary::calc_smooth_bmesh(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_smooth_grids(), blender::ed::sculpt_paint::boundary::calc_smooth_mesh(), blender::ed::sculpt_paint::boundary::calc_twist_bmesh(), blender::ed::sculpt_paint::boundary::calc_twist_grids(), blender::ed::sculpt_paint::boundary::calc_twist_mesh(), blender::ed::sculpt_paint::undo::restore_position_from_undo_step(), translations_from_new_positions(), and translations_from_new_positions().
| void blender::ed::sculpt_paint::translations_from_offset_and_factors | ( | const float3 & | offset, |
| Span< float > | factors, | ||
| MutableSpan< float3 > | r_translations ) |
Definition at line 7246 of file sculpt.cc.
References BLI_assert, blender::Span< T >::index_range(), blender::MutableSpan< T >::size(), blender::Span< T >::size(), and translations_from_offset_and_factors().
Referenced by blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), and translations_from_offset_and_factors().
|
static |
Definition at line 49 of file paint_image_2d_curve_mask.cc.
References aa_samples_per_texel_axis(), BLI_assert, CurveMaskCache::curve_mask, CurveSamplesBaseLen, CurveSamplesLen, float, floorf, int, len, len_v2v2(), max_ff(), min_ii(), and CurveMaskCache::sampled_curve.
Referenced by paint_curve_mask_cache_update().
Definition at line 537 of file sculpt_transform.cc.
References BKE_brush_size_get(), BKE_brush_unprojected_radius_get(), BKE_brush_use_locked_size(), BKE_paint_brush_for_read(), BKE_sculpt_update_object_for_edit(), copy_v3_v3(), copy_v4_v4(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_data_tool_settings(), depsgraph, ED_view3d_viewcontext_init(), flush_update_step(), SculptSession::init_pivot_pos, Sculpt::paint, paint_calc_object_space_radius(), SculptSession::pivot_pos, SculptSession::pivot_rot, SculptSession::pivot_scale, Position, SculptSession::prev_pivot_pos, SculptSession::prev_pivot_rot, SculptSession::prev_pivot_scale, Object::sculpt, ToolSettings::sculpt, sculpt_transform_all_vertices(), SCULPT_TRANSFORM_MODE_ALL_VERTICES, SCULPT_TRANSFORM_MODE_RADIUS_ELASTIC, SCULPT_vertex_random_access_ensure(), Sculpt::transform_mode, and transform_radius_elastic().
|
static |
Definition at line 110 of file paint_image_2d_curve_mask.cc.
References BKE_brush_curve_strength_clamped(), CurveMapping::changed_timestamp, Brush::curve, CurveSamplesBaseLen, CurveSamplesLen, float, CurveMaskCache::last_curve_timestamp, len, MEM_mallocN, and CurveMaskCache::sampled_curve.
Referenced by paint_curve_mask_cache_update().
|
static |
Definition at line 2431 of file sculpt.cc.
References BKE_paint_brush_for_read(), BRUSH_ANCHORED, BRUSH_ORIGINAL_NORMAL, SculptSession::cache, calc_sculpt_normal(), copy_v3_v3(), depsgraph, Brush::falloff_shape, Brush::flag, blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, mul_m4_v3(), blender::ed::sculpt_paint::StrokeCache::normal_weight, normalize_v3(), Sculpt::paint, PAINT_FALLOFF_SHAPE_TUBE, project_plane_v3_v3v3(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::ed::sculpt_paint::StrokeCache::radial_symmetry_pass, Object::sculpt, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_SNAKE_HOOK, SCULPT_BRUSH_TYPE_THUMB, blender::ed::sculpt_paint::StrokeCache::sculpt_normal, blender::ed::sculpt_paint::StrokeCache::sculpt_normal_symm, SCULPT_stroke_is_first_brush_step_of_symmetry_pass(), blender::ed::sculpt_paint::StrokeCache::symm_rot_mat, symmetry_flip(), and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by do_brush_action().
| void blender::ed::sculpt_paint::update_shape_keys | ( | Object & | object, |
| const Mesh & | mesh, | ||
| const KeyBlock & | active_key, | ||
| Span< int > | verts, | ||
| Span< float3 > | translations, | ||
| Span< float3 > | positions_orig ) |
Applying final positions to shape keys is non-trivial because the mesh positions and the active shape key positions must be kept in sync, and shape keys dependent on the active key must also be modified.
Definition at line 7180 of file sculpt.cc.
References apply_translations(), BKE_keyblock_get_dependent_keys(), data, KeyBlock::data, LISTBASE_FOREACH_INDEX, KeyBlock::totelem, update_shape_keys(), and verts.
Referenced by blender::ed::sculpt_paint::undo::restore_position_from_undo_step(), and update_shape_keys().
|
static |
Detects whether the brush should be in Add or Subtract mode.
Definition at line 794 of file curves_sculpt_density.cc.
References BKE_brush_size_get(), BKE_bvhtree_from_mesh_get(), BKE_object_get_evaluated_mesh(), BKE_paint_brush_for_read(), BLI_SCOPED_DEFER, BRUSH_CURVES_SCULPT_DENSITY_MODE_ADD, BRUSH_CURVES_SCULPT_DENSITY_MODE_REMOVE, BRUSH_STROKE_INVERT, BVHTREE_FROM_CORNER_TRIS, CTX_data_active_object(), CTX_data_depsgraph_on_load(), CTX_data_scene(), CTX_wm_region(), CTX_wm_view3d(), Brush::curves_sculpt_settings, Object::data, DEG_get_evaluated_object(), BrushCurvesSculptSettings::density_mode, depsgraph, free_bvhtree_from_mesh(), Curves::geometry, blender::ed::sculpt_paint::StrokeExtension::mouse_position, pow2f(), sample_curves_surface_3d_brush(), Curves::surface, and use_add_density_mode().
Referenced by new_density_operation(), and use_add_density_mode().
|
static |
Definition at line 109 of file brush_asset_ops.cc.
References ASSET_LIBRARY_CUSTOM, BLI_findindex(), and AssetLibraryReference::custom_library_index.
Referenced by brush_asset_save_as_exec(), brush_asset_save_as_invoke(), refresh_asset_library(), and visit_library_catalogs_catalog_for_search().
| Span< BMVert * > blender::ed::sculpt_paint::vert_neighbors_get_bmesh | ( | BMVert & | vert, |
| Vector< BMVert *, 64 > & | r_neighbors ) |
Definition at line 389 of file sculpt.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BM_ITER_ELEM, BM_LOOPS_OF_VERT, blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), l, BMLoop::next, BMLoop::prev, and BMLoop::v.
Referenced by blender::ed::sculpt_paint::smooth::average_data_bmesh(), blender::ed::sculpt_paint::mask::average_neighbor_mask_bmesh(), blender::ed::sculpt_paint::expand::boundary_from_enabled(), blender::ed::sculpt_paint::auto_mask::calc_blurred_cavity_bmesh(), blender::ed::sculpt_paint::filter::calc_sharpen_filter(), blender::ed::sculpt_paint::cloth::calc_vert_neighbor_indices_bmesh(), calc_vert_neighbors(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_sample_from_surface(), blender::ed::sculpt_paint::boundary::edit_data_init_bmesh(), blender::ed::sculpt_paint::flood_fill::FillDataBMesh::execute(), blender::ed::sculpt_paint::pose::grow_factors_bmesh(), blender::ed::sculpt_paint::mask::grow_mask_bmesh(), blender::ed::sculpt_paint::hide::grow_shrink_visibility_bmesh(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_bmesh(), blender::ed::sculpt_paint::auto_mask::init_boundary_masking_bmesh(), blender::ed::sculpt_paint::boundary::is_vert_in_editable_boundary_bmesh(), blender::ed::sculpt_paint::smooth::neighbor_position_average_bmesh(), and blender::ed::sculpt_paint::mask::shrink_mask_bmesh().
| Span< BMVert * > blender::ed::sculpt_paint::vert_neighbors_get_interior_bmesh | ( | BMVert & | vert, |
| Vector< BMVert *, 64 > & | r_neighbors ) |
Definition at line 404 of file sculpt.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BM_ITER_ELEM, BM_LOOPS_OF_VERT, BM_vert_is_boundary(), blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), l, BMLoop::next, BMLoop::prev, blender::Vector< T, InlineBufferCapacity, Allocator >::remove_if(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and BMLoop::v.
Referenced by calc_vert_neighbors_interior(), and blender::ed::sculpt_paint::smooth::neighbor_position_average_interior_bmesh().
| Span< int > blender::ed::sculpt_paint::vert_neighbors_get_mesh | ( | const OffsetIndices< int > | faces, |
| const Span< int > | corner_verts, | ||
| const GroupedSpan< int > | vert_to_face, | ||
| const Span< bool > | hide_poly, | ||
| const int | vert, | ||
| Vector< int > & | r_neighbors ) |
Definition at line 431 of file sculpt.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append_non_duplicates(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), blender::bke::mesh::face_find_adjacent_verts(), blender::Span< T >::is_empty(), and verts.
Referenced by blender::ed::sculpt_paint::expand::boundary_from_enabled(), blender::ed::sculpt_paint::auto_mask::calc_blurred_cavity_mesh(), calc_vert_neighbors(), calc_vert_neighbors_interior(), blender::ed::sculpt_paint::color::do_smear_brush_task(), blender::ed::sculpt_paint::boundary::edit_data_init_mesh(), blender::ed::sculpt_paint::flood_fill::FillDataMesh::execute(), geometry_preview_lines_update(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_mesh(), blender::ed::sculpt_paint::auto_mask::init_boundary_masking_mesh(), blender::ed::sculpt_paint::boundary::is_vert_in_editable_boundary_mesh(), and blender::ed::sculpt_paint::dyntopo::sample_detail_voxel().
| Span< float3 > blender::ed::sculpt_paint::vert_positions_for_grab_active_get | ( | const Depsgraph & | depsgraph, |
| const Object & | object ) |
Coordinates used for manipulating the base mesh when Grab Active Vertex is enabled.
Definition at line 171 of file sculpt.cc.
References BLI_assert, depsgraph, blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), SculptSession::shapekey_active, and blender::bke::pbvh::vert_positions_eval().
Referenced by brush_delta_update(), paint_cursor_draw_3d_view_brush_cursor_inactive(), and sculpt_geometry_preview_lines_draw().
|
static |
Definition at line 502 of file brush_asset_ops.cc.
References BKE_paint_get_active_from_context(), Paint::brush_asset_reference, CTX_data_main(), blender::ed::asset::find_asset_from_weak_ref(), library_ref_to_user_library(), library_to_library_ref(), blender::asset_system::AssetRepresentation::owner_asset_library(), and visit_library_catalogs_catalog_for_search().
Referenced by BRUSH_OT_asset_edit_metadata().
|
static |
Definition at line 358 of file brush_asset_ops.cc.
References AS_asset_library_load(), blender::asset_system::AssetCatalogTreeItem::catalog_path(), blender::asset_system::AssetLibrary::catalog_service(), blender::asset_system::AssetCatalogService::catalog_tree(), blender::asset_system::AssetCatalogService::find_catalog_by_path(), blender::asset_system::AssetCatalogTree::foreach_item(), blender::StringRefBase::is_empty(), blender::asset_system::AssetCatalogPath::str(), str, and user_library_to_library_ref().
Referenced by visit_active_library_catalogs_catalog_for_search_fn(), and visit_library_prop_catalogs_catalog_for_search_fn().
|
static |
Definition at line 383 of file brush_asset_ops.cc.
References CTX_data_main(), get_asset_library_from_prop(), ptr, and visit_library_catalogs_catalog_for_search().
Referenced by BRUSH_OT_asset_save_as().
|
constexpr |
Definition at line 22 of file paint_image_2d_curve_mask.cc.
Referenced by aa_samples_per_texel_axis().
|
constexpr |
Definition at line 21 of file paint_image_2d_curve_mask.cc.
Referenced by aa_samples_per_texel_axis().
|
constexpr |
Number of samples to use between 0..1.
Definition at line 26 of file paint_image_2d_curve_mask.cc.
Referenced by update_curve_mask(), and update_sampled_curve().
|
constexpr |
Number of samples to store in the cache.
M_SQRT2 is used as brushes are circles and the curve_mask is square.
Definition at line 33 of file paint_image_2d_curve_mask.cc.
Referenced by update_curve_mask(), and update_sampled_curve().
|
static |
Definition at line 595 of file sculpt_transform.cc.
Referenced by SCULPT_OT_set_pivot_position().
|
staticconstexpr |
Definition at line 153 of file sculpt_transform.cc.
Referenced by filter_translations_with_symmetry().