|
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:
The code below uses a prefix naming convention to indicate the coordinate space:
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 1565 of file grease_pencil_draw_ops.cc.
| Enumerator | |
|---|---|
| PAINT_CURSOR_CURVE | |
| PAINT_CURSOR_2D | |
| PAINT_CURSOR_3D | |
Definition at line 1236 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, blender::ed::sculpt_paint::AreaNormalCenterData::count_co, and distance().
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, blender::ed::sculpt_paint::AreaNormalCenterData::count_no, and distance().
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 BLI_NOINLINE, blender::Span< T >::index_range(), normals, and sample.
Referenced by sample_node_surface_bmesh(), sample_node_surface_grids(), and sample_node_surface_mesh().
|
static |
| 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.
Definition at line 7031 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 6876 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(), BLI_NOINLINE, blender::Span< T >::index_range(), 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 7007 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 6990 of file sculpt.cc.
References apply_translations(), BKE_subdiv_ccg_key_top_level(), BLI_assert, CCGKey::grid_area, blender::bke::ccg::grid_range(), 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 6978 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.
References distance().
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.
References distance().
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::bke::pbvh::Grids, blender::index_mask::IndexMask::index_range(), blender::bke::AttributeAccessor::lookup(), blender::bke::AttributeAccessor::lookup_or_default(), blender::bke::pbvh::Mesh, node_fully_masked_or_hidden(), blender::bke::pbvh::Tree::nodes(), blender::threading::parallel_reduce(), blender::bke::object::pbvh_get(), blender::bke::Point, 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 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(), C, CTX_data_main(), ID_BR, 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(), BKE_paint_brush(), BKE_paint_brush_set_default(), BKE_paint_get_active_from_context(), BKE_preferences_asset_library_find_by_name(), C, CTX_data_main(), Brush::id, NA_EDITED, NA_REMOVED, NC_ASSET, NC_BRUSH, ND_ASSET_LIST, OPERATOR_FINISHED, refresh_asset_library(), wmOperator::reports, U, 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(), C, 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(), C, 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, C, 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, 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(), C, 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(), IFACE_, OPERATOR_CANCELLED, 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, C, CTX_wm_operator_poll_msg_set(), blender::ed::asset::find_asset_from_weak_ref(), Brush::id, ID_IS_ASSET, library_is_editable(), and library_to_library_ref().
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(), C, 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, 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(), C, 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, C, 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(), C, 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, C, 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, C, blender::asset_system::AssetLibrary::catalog_service(), blender::ed::asset::find_asset_from_weak_ref(), blender::asset_system::AssetCatalogService::find_catalog(), IFACE_, library_is_editable(), blender::ed::asset::library_reference_to_enum_value(), library_to_library_ref(), OPERATOR_CANCELLED, wmOperator::ptr, wmOperator::reports, RNA_enum_set(), RNA_string_set(), RNA_struct_property_is_set(), RNA_struct_property_is_set_ex(), U, 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(), C, CTX_wm_operator_poll_msg_set(), and U.
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, C, 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, U, 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(), C, 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::bke::pbvh::Mesh, 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, blender::bke::object::pbvh_get(), 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 5298 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(), blender::ed::asset::operator_asset_reference_props_register(), and ot.
Referenced by ED_operatortypes_paint().
| 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(), and ot.
Referenced by ED_operatortypes_paint().
| 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(), MAX_NAME, ot, PROP_STRING_SEARCH_SUGGESTION, RNA_def_property_string_search_func_runtime(), RNA_def_string(), and visit_active_library_catalogs_catalog_for_search_fn().
Referenced by ED_operatortypes_paint().
| 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(), FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, ot, WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by ED_operatortypes_paint().
| 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(), and ot.
Referenced by ED_operatortypes_paint().
| 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(), and ot.
Referenced by ED_operatortypes_paint().
| 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(), MAX_NAME, ot, 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(), and visit_library_prop_catalogs_catalog_for_search_fn().
Referenced by ED_operatortypes_paint().
| 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 5480 of file sculpt.cc.
References brush_stroke_modal(), C, wmOperator::customdata, and paint_stroke_modal().
Referenced by brush_stroke_modal(), and SCULPT_OT_brush_stroke().
Definition at line 1734 of file paint_stroke.cc.
References BKE_paint_brush(), BKE_paint_get_active_from_context(), C, CTX_data_active_object(), CTX_wm_area(), CTX_wm_region(), ELEM, bToolRef_Runtime::flag, ARegion::regiontype, RGN_TYPE_WINDOW, bToolRef::runtime, ScrArea::runtime, SPACE_IMAGE, SPACE_VIEW3D, ScrArea::spacetype, ScrArea_Runtime::tool, 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::AttributeAccessor::lookup(), 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, blender::bke::pbvh::BMesh, calc_area_normal(), calc_area_normal_and_center_reduce(), Object::data, depsgraph, blender::index_mask::IndexMask::index_range(), blender::bke::AttributeAccessor::lookup(), 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 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(), blender::ed::sculpt_paint::vwpaint::pbvh_gather_generic(), and SCULPT_cursor_geometry_info_update().
| 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, blender::bke::pbvh::BMesh, calc_area_normal_and_center(), calc_area_normal_and_center_reduce(), Object::data, depsgraph, blender::index_mask::IndexMask::index_range(), blender::bke::AttributeAccessor::lookup(), 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_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, distance(), 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(), Vector< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::MutableSpan< T >::size(), 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, distance(), 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::bke::pbvh::GridsNode::grids(), blender::Span< T >::index_range(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), blender::ed::sculpt_paint::StrokeCache::location_symm, normals, SubdivCCG::normals, orig_position_data_lookup_grids(), blender::ed::sculpt_paint::SampleLocalData::positions, blender::math::rcp(), 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, distance(), 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(), Vector< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::bke::pbvh::MeshNode::verts(), 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, blender::ed::sculpt_paint::AreaNormalCenterData::area_nos, b, blender::ed::sculpt_paint::AreaNormalCenterData::count_co, and blender::ed::sculpt_paint::AreaNormalCenterData::count_no.
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 angle(), 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_brush_distances(), calc_brush_strength_factors(), calc_distances(), calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), clip_and_lock_translations(), depsgraph, blender::ed::sculpt_paint::LocalData::distances, blender::ed::sculpt_paint::LocalData::factors, Brush::falloff_shape, 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, 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.
| 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 6837 of file sculpt.cc.
References blender::math::abs(), BLI_assert, calc_brush_cube_distances(), blender::math::distance(), blender::Span< T >::index_range(), blender::MutableSpan< T >::size(), blender::Span< 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 6797 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 6775 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 6736 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 6748 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::Span< T >::index_range(), blender::ed::sculpt_paint::StrokeCache::location_symm, PAINT_FALLOFF_SHAPE_TUBE, plane_from_point_normal_v3(), blender::MutableSpan< T >::size(), blender::Span< 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 6708 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.
Referenced by SCULPT_cube_tip_init(), and update_brush_local_mat().
| 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 6903 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 6940 of file sculpt.cc.
References BKE_brush_mask_texture_get(), BLI_assert, BLI_task_parallel_thread_id(), calc_brush_texture_factors(), blender::Span< T >::index_range(), OB_MODE_SCULPT, sculpt_apply_texture(), blender::MutableSpan< T >::size(), blender::Span< 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 6912 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, BLI_NOINLINE, 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 angle(), apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, BRUSH_FRONTFACE, SculptSession::cache, calc_brush_distances(), calc_brush_strength_factors(), calc_distances(), calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), 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, 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, Vector< T, InlineBufferCapacity, Allocator >::resize(), scale_factors(), scale_translations(), transform_positions(), blender::ed::sculpt_paint::LocalData::translations, blender::bke::pbvh::MeshNode::verts(), verts, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
| 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 6318 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(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), depsgraph, Brush::falloff_shape, 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 6422 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(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), depsgraph, Brush::falloff_shape, filter_distances_with_radius(), filter_region_clip_factors(), Brush::flag, normals, 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 6387 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(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), depsgraph, Brush::falloff_shape, filter_distances_with_radius(), filter_region_clip_factors(), Brush::flag, blender::bke::pbvh::GridsNode::grids(), normals, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Span< T >::size(), 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 6351 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(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), depsgraph, Brush::falloff_shape, filter_distances_with_radius(), filter_region_clip_factors(), Brush::flag, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::MeshAttributeData::mask, normals, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::bke::pbvh::MeshNode::verts(), 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 6284 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(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), depsgraph, Brush::falloff_shape, filter_distances_with_radius(), filter_region_clip_factors(), Brush::flag, blender::bke::pbvh::GridsNode::grids(), blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Span< T >::size(), 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 6249 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(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), depsgraph, Brush::falloff_shape, 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(), blender::bke::pbvh::MeshNode::verts(), 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 6213 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(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), depsgraph, Brush::falloff_shape, 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(), blender::bke::pbvh::MeshNode::verts(), 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 6639 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 6625 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 6606 of file sculpt.cc.
References BKE_subdiv_ccg_key_top_level(), BLI_assert, calc_front_face(), blender::math::dot(), CCGKey::grid_area, blender::bke::ccg::grid_range(), blender::MutableSpan< T >::index_range(), blender::Span< T >::index_range(), normals, SubdivCCG::normals, blender::MutableSpan< T >::size(), blender::Span< T >::size(), and blender::MutableSpan< 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 6595 of file sculpt.cc.
References BLI_assert, calc_front_face(), blender::math::dot(), normals, 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 6582 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 angle(), 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(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), clip_and_lock_translations(), depsgraph, blender::ed::sculpt_paint::LocalData::distances, blender::ed::sculpt_paint::LocalData::factors, Brush::falloff_shape, filter_distances_with_radius(), filter_plane_side_factors(), filter_plane_trim_limit_factors(), filter_region_clip_factors(), Brush::flag, gather_grids_positions(), blender::bke::pbvh::GridsNode::grids(), blender::ed::sculpt_paint::LocalData::local_positions, blender::ed::sculpt_paint::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, Vector< T, InlineBufferCapacity, Allocator >::resize(), scale_factors(), scale_translations(), blender::MutableSpan< T >::size(), SculptSession::subdiv_ccg, transform_positions(), blender::ed::sculpt_paint::LocalData::translations, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
|
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, faces, 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 BLI_NOINLINE, blender::Span< T >::index_range(), 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 BLI_NOINLINE, blender::Span< T >::index_range(), and 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 BLI_NOINLINE, closest(), closest_to_plane_normalized_v3(), and blender::Span< T >::index_range().
| void blender::ed::sculpt_paint::calc_translations_to_plane | ( | Span< float3 > | positions, |
| const float4 & | plane, | ||
| MutableSpan< float3 > | translations ) |
Definition at line 7512 of file sculpt.cc.
References calc_translations_to_plane(), closest(), closest_to_plane_normalized_v3(), and blender::Span< T >::index_range().
| 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 7499 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 7364 of file sculpt.cc.
References 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(), result, blender::Span< T >::size(), SubdivCCGCoord::x, x, SubdivCCGCoord::y, 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 7350 of file sculpt.cc.
References BLI_assert, calc_vert_neighbors(), faces, result, 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::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_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 7392 of file sculpt.cc.
References BLI_assert, calc_vert_neighbors(), result, 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 7485 of file sculpt.cc.
References BLI_assert, calc_vert_neighbors_interior(), result, 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 7434 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(), Vector< T, InlineBufferCapacity, Allocator >::clear(), SubdivCCGNeighbors::coords, faces, CCGKey::grid_area, SubdivCCGCoord::grid_index, CCGKey::grid_size, blender::Span< T >::index_range(), Vector< T, InlineBufferCapacity, Allocator >::remove_if(), result, blender::Span< T >::size(), Vector< T, InlineBufferCapacity, Allocator >::size(), SubdivCCGCoord::x, x, SubdivCCGCoord::y, 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 7405 of file sculpt.cc.
References BLI_assert, calc_vert_neighbors_interior(), blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), faces, blender::Vector< T, InlineBufferCapacity, Allocator >::remove_if(), result, blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), vert_neighbors_get_mesh(), and verts.
Referenced by 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 7084 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::Span< T >::index_range(), 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::Span< 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 7042 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, blender::ed::sculpt_paint::AveragePositionAccumulation::position, and blender::ed::sculpt_paint::AveragePositionAccumulation::weight_total.
Referenced by average_mask_border_position(), and average_unmasked_position().
|
static |
Definition at line 7152 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 7326 of file sculpt.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), create_node_vert_offsets(), blender::index_mask::IndexMask::foreach_index(), CCGKey::grid_area, pos, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), and blender::index_mask::IndexMask::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 7316 of file sculpt.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), create_node_vert_offsets(), blender::index_mask::IndexMask::foreach_index(), pos, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), and blender::index_mask::IndexMask::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 7338 of file sculpt.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), 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 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 1049 of file paint_cursor.cc.
References copy_v3_v3(), ED_view3d_project_v3(), imm_draw_circle_fill_3d(), mul_m4_v3(), and size().
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 1115 of file paint_cursor.cc.
References angle(), 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 1066 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, 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(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_sculpt_curves().
|
static |
Definition at line 1042 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 C, CTX_data_active_object(), Object::mode, and OB_MODE_SCULPT_CURVES.
Referenced by curves_sculpt_poll_view3d(), and ED_keymap_paint().
| bool blender::ed::sculpt_paint::curves_sculpt_poll_view3d | ( | bContext * | C | ) |
Definition at line 68 of file curves_sculpt_ops.cc.
References C, 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(), C, copy_v3_v3_uchar(), CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), CTX_wm_message_bus(), ToolSettings::curves_sculpt, 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_CURSOR_SCULPT_CURVES, paint_init_pivot(), SculptCurves, Scene::toolsettings, 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 C, 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 C, 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::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::bke::pbvh::flush_bounds_to_parents(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::StrokeCache::limit_surface_co, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::StrokeCache::prev_displacement, Object::sculpt, blender::MutableSpan< T >::size(), SculptSession::subdiv_ccg, blender::bke::pbvh::Tree::tag_positions_changed(), and blender::bke::pbvh::update_node_bounds_grids().
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, 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, 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::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), 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::MutableSpan< T >::size(), 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(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), 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(), blender::bke::pbvh::BMesh, BRUSH_MULTIPLANE_SCRAPE_DYNAMIC, BRUSH_ORIGINAL_NORMAL, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, calc_area_normal(), calc_brush_plane(), blender::math::cross(), DEG2RADF, depsgraph, do_multiplane_scrape_brush(), blender::math::dot(), Brush::flag, Brush::flag2, float, 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::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::bke::pbvh::Mesh, 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, blender::bke::object::pbvh_get(), 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::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(), 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 angle(), 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, and blender::bke::object::pbvh_get().
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 angle(), 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(), faces, 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, faces, 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 897 of file paint_cursor.cc.
References BLI_INLINE, 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 872 of file paint_cursor.cc.
References BLI_INLINE, 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 838 of file paint_cursor.cc.
References BLI_INLINE, 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, U, 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, 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(), blender::bke::pbvh::GridsNode::grids(), params, blender::ed::sculpt_paint::TransformLocalData::positions, Vector< T, InlineBufferCapacity, Allocator >::resize(), scale_factors(), scale_translations(), blender::MutableSpan< T >::size(), 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, Vector< T, InlineBufferCapacity, Allocator >::resize(), scale_factors(), scale_translations(), blender::ed::sculpt_paint::TransformLocalData::translations, blender::bke::pbvh::MeshNode::verts(), and verts.
Referenced by transform_radius_elastic().
Definition at line 578 of file sculpt_transform.cc.
References C, SculptSession::filter_cache, flush_update_done(), Position, blender::ed::sculpt_paint::undo::push_end(), and Object::sculpt.
Referenced by special_aftertrans_update__sculpt().
|
static |
Definition at line 1216 of file grease_pencil_draw_ops.cc.
References blender::VectorSet< Key, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), RenderData::cfra, 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(), Scene::r, blender::bke::greasepencil::Layer::start_frame_at(), and Scene::toolsettings.
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::math::midpoint(), blender::bke::object::pbvh_get(), Scene::toolsettings, blender::math::transform_point(), and ToolSettings::unified_paint_settings.
Referenced by blender::ed::sculpt_paint::vwpaint::init_session(), and object_sculpt_mode_enter().
Definition at line 5518 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(), and SCULPT_fake_neighbors_ensure().
|
static |
Definition at line 5634 of file sculpt.cc.
References BKE_subdiv_ccg_key_top_level(), bm, SculptSession::bm, BM_vert_at_index(), blender::bke::pbvh::BMesh, BMVert::co, Object::data, depsgraph, FAKE_NEIGHBOR_NONE, fake_neighbor_search(), fake_neighbor_search_bmesh(), fake_neighbor_search_grids(), fake_neighbor_search_mesh(), blender::index_mask::IndexMask::foreach_index(), SubdivCCG::grid_hidden, blender::bke::pbvh::Grids, blender::index_mask::IndexMask::index_range(), blender::Span< T >::index_range(), blender::index_mask::IndexMask::is_empty(), blender::ed::sculpt_paint::NearestVertData::join(), blender::bke::AttributeAccessor::lookup(), blender::bke::pbvh::Mesh, node_in_sphere(), blender::bke::pbvh::Tree::nodes(), blender::threading::parallel_reduce(), blender::bke::object::pbvh_get(), blender::bke::Point, SubdivCCG::positions, Object::sculpt, blender::bke::pbvh::search_nodes(), blender::index_mask::IndexMask::slice(), SculptSession::subdiv_ccg, blender::bke::pbvh::Tree::type(), blender::ed::sculpt_paint::islands::vert_id_get(), and blender::bke::pbvh::vert_positions_eval().
Referenced by fake_neighbor_search(), and SCULPT_fake_neighbors_ensure().
|
static |
Definition at line 5606 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, blender::ed::sculpt_paint::NearestVertData::vert, and blender::ed::sculpt_paint::islands::vert_id_get().
Referenced by fake_neighbor_search(), and fake_neighbor_search_bmesh().
|
static |
Definition at line 5577 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, blender::bke::ccg::grid_range(), blender::bke::pbvh::GridsNode::grids(), blender::ed::sculpt_paint::NearestVertData::vert, and blender::ed::sculpt_paint::islands::vert_id_get().
Referenced by fake_neighbor_search(), and fake_neighbor_search_grids().
|
static |
Definition at line 5550 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(), blender::ed::sculpt_paint::NearestVertData::vert, blender::ed::sculpt_paint::islands::vert_id_get(), and blender::bke::pbvh::MeshNode::verts().
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, and BMFace::l_first.
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 6493 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 6472 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 6456 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 6529 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(), blender::MutableSpan< T >::size(), 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 6547 of file sculpt.cc.
References BKE_subdiv_ccg_key_top_level(), BLI_assert, blender::MutableSpan< T >::fill(), CCGKey::grid_area, SubdivCCG::grid_hidden, blender::bke::ccg::grid_range(), blender::MutableSpan< T >::index_range(), blender::Span< T >::index_range(), 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 6504 of file sculpt.cc.
References BLI_assert, blender::MutableSpan< T >::fill(), blender::Span< T >::is_empty(), blender::MutableSpan< T >::size(), and verts.
|
static |
Definition at line 2197 of file paint_vertex.cc.
References attribute, 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(), AttributeOwner::from_id(), CustomDataLayer::offset, and CustomDataLayer::type.
Referenced by fill_active_color().
|
static |
Definition at line 2154 of file paint_vertex.cc.
References BKE_mesh_tessface_clear(), data, blender::bke::Face, faces, blender::Span< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), 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 7589 of file sculpt.cc.
References filter_above_plane_factors(), blender::Span< T >::index_range(), 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 7577 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 7566 of file sculpt.cc.
References filter_below_plane_factors(), blender::Span< T >::index_range(), 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 7554 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 6786 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, BLI_NOINLINE, 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 7538 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 6681 of file sculpt.cc.
References BLI_assert, SculptSession::cache, ED_view3d_clipping_test(), filter_region_clip_factors(), blender::MatBase< float, 4, 4 >::identity(), blender::Span< T >::index_range(), 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::Span< 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 6653 of file sculpt.cc.
References BLI_assert, SculptSession::cache, ED_view3d_clipping_test(), filter_region_clip_factors(), blender::MatBase< float, 4, 4 >::identity(), 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 BLI_NOINLINE, blender::Span< T >::index_range(), PAINT_SYMM_X, PAINT_SYMM_Y, PAINT_SYMM_Z, transform_mirror_max_distance_eps, x, y, 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 7524 of file sculpt.cc.
References BLI_assert, filter_verts_outside_symmetry_area(), blender::Span< T >::index_range(), SCULPT_check_vertex_pivot_symmetry(), blender::MutableSpan< T >::size(), and blender::Span< 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(), blender::IndexRange::drop_back(), ED_view3d_ob_project_mat_get(), ED_view3d_project_float_v2_m4(), blender::IndexRange::first(), FLT_MAX, init(), blender::math::interpolate(), blender::threading::parallel_reduce(), blender::ed::sculpt_paint::BrushPositionCandidate::position_cu, pow2f(), blender::IndexRange::size(), 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(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_grids(), 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(), blender::bke::AttributeAccessor::lookup(), 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 blender::bke::MutableAttributeAccessor::add(), CD_PROP_BOOL, CD_PROP_FLOAT, blender::bke::AttributeAccessor::domain_size(), blender::VArray< T >::ForSingle(), Curves::geometry, blender::bke::AttributeAccessor::lookup(), blender::bke::AttributeAccessor::lookup_meta_data(), MEM_malloc_arrayN, blender::bke::MutableAttributeAccessor::remove(), selection, Curves::selection_domain, and size().
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 5069 of file sculpt.cc.
References bScreen::areabase, BKE_pbvh_bmesh_after_stroke(), BKE_sculptsession_use_pbvh_draw(), SculptSession::bm, blender::bke::pbvh::BMesh, C, 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, Image, LISTBASE_FOREACH, blender::bke::object::pbvh_get(), Position, RegionView3D::rflag, RGN_TYPE_WINDOW, RV3D_PAINTING, Object::sculpt, SCULPT_fake_neighbors_free(), SPACE_IMAGE, SPACE_VIEW3D, SpaceLink::spacetype, blender::bke::pbvh::store_bounds_orig(), blender::bke::pbvh::Tree::type(), 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(), blender::bke::pbvh::bounds_get(), C, 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, Image, blender::bke::pbvh::Mesh, SculptSession::modifier, SculptSession::multires, MULTIRES_COORDS_MODIFIED, multires_mark_as_modified(), blender::bke::object::pbvh_get(), Position, RegionView3D::rflag, Object::runtime, RV3D_PAINTING, Object::sculpt, SCULPT_get_redraw_rect(), SculptSession::shapekey_active, blender::bke::pbvh::Tree::type(), ARegion::winrct, 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 6086 of file sculpt.cc.
References gather_bmesh_normals(), 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 6068 of file sculpt.cc.
References BLI_assert, gather_bmesh_positions(), blender::MutableSpan< T >::size(), 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 blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), gather_bmesh_positions(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), 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 6122 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(), gather_data_bmesh(), gather_data_bmesh< float >(), gather_data_bmesh< float3 >(), and gather_data_bmesh< int >().
| template void blender::ed::sculpt_paint::gather_data_bmesh< float > | ( | Span< float > | , |
| const Set< BMVert *, 0 > & | , | ||
| MutableSpan< float > | ) |
References gather_data_bmesh().
| template void blender::ed::sculpt_paint::gather_data_bmesh< float3 > | ( | Span< float3 > | , |
| const Set< BMVert *, 0 > & | , | ||
| MutableSpan< float3 > | ) |
References gather_data_bmesh().
| template void blender::ed::sculpt_paint::gather_data_bmesh< int > | ( | Span< int > | , |
| const Set< BMVert *, 0 > & | , | ||
| MutableSpan< int > | ) |
References gather_data_bmesh().
| 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 6106 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::bke::ccg::grid_range(), 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_data_grids< float >(), gather_data_grids< float3 >(), gather_data_grids< int >(), 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 > | ) |
References gather_data_grids().
| template void blender::ed::sculpt_paint::gather_data_grids< float3 > | ( | const SubdivCCG & | , |
| Span< float3 > | , | ||
| Span< int > | , | ||
| MutableSpan< float3 > | ) |
References gather_data_grids().
| template void blender::ed::sculpt_paint::gather_data_grids< int > | ( | const SubdivCCG & | , |
| Span< int > | , | ||
| Span< int > | , | ||
| MutableSpan< int > | ) |
References gather_data_grids().
| 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(), indices, 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 6096 of file sculpt.cc.
References BLI_assert, gather_data_mesh(), indices, 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(), gather_data_mesh< bool >(), gather_data_mesh< float >(), gather_data_mesh< float3 >(), gather_data_mesh< float4 >(), gather_data_mesh< int >(), 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 > | ) |
References gather_data_mesh().
| template void blender::ed::sculpt_paint::gather_data_mesh< float > | ( | Span< float > | , |
| Span< int > | , | ||
| MutableSpan< float > | ) |
References gather_data_mesh().
| template void blender::ed::sculpt_paint::gather_data_mesh< float3 > | ( | Span< float3 > | , |
| Span< int > | , | ||
| MutableSpan< float3 > | ) |
References gather_data_mesh().
| template void blender::ed::sculpt_paint::gather_data_mesh< float4 > | ( | Span< float4 > | , |
| Span< int > | , | ||
| MutableSpan< float4 > | ) |
References gather_data_mesh().
| template void blender::ed::sculpt_paint::gather_data_mesh< int > | ( | Span< int > | , |
| Span< int > | , | ||
| MutableSpan< int > | ) |
References gather_data_mesh().
| 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 6079 of file sculpt.cc.
References gather_data_grids(), gather_grids_normals(), 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, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), 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, faces, blender::bke::AttributeAccessor::lookup(), blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), SculptSession::preview_verts, SculptSession::shapekey_active, blender::Span< T >::size(), 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, RNA_enum_get(), and U.
Referenced by brush_asset_save_as_exec(), and visit_library_prop_catalogs_catalog_for_search_fn().
|
static |
Definition at line 1173 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, C, 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(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), 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 1333 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(), C, 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::VArray< T >::ForSingle(), 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, ARegion::winrct, WM_cursor_modal_restore(), and wmEvent::xy.
Referenced by grease_pencil_fill_event_modal_map().
|
static |
Definition at line 1513 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::greasepencil::brush_using_vertex_color(), 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_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, OB_GREASE_PENCIL, blender::ed::sculpt_paint::PaintCursorContext::paint, 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, x, blender::VecBase< T, Size >::xyz(), blender::ed::sculpt_paint::PaintCursorContext::y, and y.
Referenced by paint_draw_2D_view_brush_cursor().
|
static |
Definition at line 293 of file grease_pencil_draw_ops.cc.
References C, 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, C, 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 C, 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 C, 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 1486 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 1719 of file grease_pencil_draw_ops.cc.
References C, and grease_pencil_fill_exit().
Referenced by GREASE_PENCIL_OT_fill().
|
static |
Definition at line 1577 of file grease_pencil_draw_ops.cc.
References BLI_assert_unreachable, C, 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 1498 of file grease_pencil_draw_ops.cc.
References C, 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, ARegion::type, 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 691 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, C, CTX_data_active_object(), CTX_data_scene(), CTX_wm_region_view3d(), blender::offset_indices::OffsetIndices< T >::data(), BVHTreeRayHit::dist, blender::math::distance(), blender::ed::greasepencil::DrawingInfo::drawing, blender::IndexRange::drop_back(), ELEM, blender::ed::greasepencil::ExtensionData::ends, blender::IndexRange::first(), 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::IndexRange::last(), blender::ed::greasepencil::DrawingInfo::layer_index, length(), blender::ed::greasepencil::ExtensionData::lines, BVHTreeRayHit::no, blender::math::normalize_and_get_length(), result, 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::bke::greasepencil::Layer::to_world_space(), 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 852 of file grease_pencil_draw_ops.cc.
References blender::IndexRange::after(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::math::average(), BLI_assert_unreachable, C, 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(), 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 963 of file grease_pencil_draw_ops.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), Vector< T, InlineBufferCapacity, Allocator >::append(), C, 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, blender::IndexRange::first(), 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::IndexRange::last(), blender::ed::greasepencil::DrawingInfo::layer_index, length(), blender::ed::greasepencil::ExtensionData::lines, blender::math::normalize(), blender::ed::greasepencil::ExtensionData::radii, blender::ed::greasepencil::retrieve_visible_drawings(), blender::IndexRange::size(), 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 1452 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(), C, 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(), ToolSettings::gp_paint, Brush::gpencil_settings, invert(), GpPaint::paint, wmOperator::ptr, RNA_boolean_get(), and Scene::toolsettings.
Referenced by grease_pencil_fill_invoke().
|
static |
Definition at line 1527 of file grease_pencil_draw_ops.cc.
References Object::actcol, BKE_object_material_get(), BKE_paint_brush(), BKE_report(), C, 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 1665 of file grease_pencil_draw_ops.cc.
References C, 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 1066 of file grease_pencil_draw_ops.cc.
References C, 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(), blender::VArray< T >::ForSpan(), 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, RegionView3D::viewmat, ARegion::winx, and ARegion::winy.
Referenced by grease_pencil_fill_update_overlay().
|
static |
Definition at line 1050 of file grease_pencil_draw_ops.cc.
References C, 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 1146 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, blender::ed::sculpt_paint::GreasePencilFillOpData::show_extension, and ARegion::type.
Referenced by grease_pencil_fill_invoke(), and grease_pencil_update_extend().
|
static |
Definition at line 298 of file grease_pencil_draw_ops.cc.
References grease_pencil_brush_stroke_cancel(), grease_pencil_brush_stroke_invoke(), grease_pencil_brush_stroke_modal(), grease_pencil_brush_stroke_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and paint_stroke_operator_properties().
Referenced by ED_operatortypes_grease_pencil_draw().
|
static |
Definition at line 1724 of file grease_pencil_draw_ops.cc.
References grease_pencil_fill_cancel(), grease_pencil_fill_invoke(), grease_pencil_fill_modal(), blender::ed::greasepencil::grease_pencil_painting_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by ED_operatortypes_grease_pencil_draw().
|
static |
Definition at line 404 of file grease_pencil_draw_ops.cc.
References grease_pencil_sculpt_paint_cancel(), grease_pencil_sculpt_paint_invoke(), grease_pencil_sculpt_paint_modal(), grease_pencil_sculpt_paint_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and paint_stroke_operator_properties().
Referenced by ED_operatortypes_grease_pencil_draw().
|
static |
Definition at line 603 of file grease_pencil_draw_ops.cc.
References grease_pencil_vertex_brush_stroke_cancel(), grease_pencil_vertex_brush_stroke_invoke(), grease_pencil_vertex_brush_stroke_modal(), grease_pencil_vertex_brush_stroke_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and paint_stroke_operator_properties().
Referenced by ED_operatortypes_grease_pencil_draw().
|
static |
Definition at line 497 of file grease_pencil_draw_ops.cc.
References grease_pencil_weight_brush_stroke_cancel(), grease_pencil_weight_brush_stroke_invoke(), grease_pencil_weight_brush_stroke_modal(), grease_pencil_weight_brush_stroke_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and paint_stroke_operator_properties().
Referenced by ED_operatortypes_grease_pencil_draw().
|
static |
Definition at line 399 of file grease_pencil_draw_ops.cc.
References C, 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(), C, 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 394 of file grease_pencil_draw_ops.cc.
References C, 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 C, 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 1165 of file grease_pencil_draw_ops.cc.
References C, 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 598 of file grease_pencil_draw_ops.cc.
References C, wmOperator::customdata, and paint_stroke_cancel().
Referenced by GREASE_PENCIL_OT_vertex_brush_stroke().
|
static |
Definition at line 530 of file grease_pencil_draw_ops.cc.
References BKE_paint_brush_for_read(), BKE_paint_get_active_from_context(), BKE_report(), C, 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 591 of file grease_pencil_draw_ops.cc.
References C, wmOperator::customdata, and paint_stroke_modal().
Referenced by GREASE_PENCIL_OT_vertex_brush_stroke().
|
static |
Definition at line 519 of file grease_pencil_draw_ops.cc.
References C, 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 492 of file grease_pencil_draw_ops.cc.
References C, wmOperator::customdata, and paint_stroke_cancel().
Referenced by GREASE_PENCIL_OT_weight_brush_stroke().
|
static |
Definition at line 437 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(), C, 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 485 of file grease_pencil_draw_ops.cc.
References C, wmOperator::customdata, and paint_stroke_modal().
Referenced by GREASE_PENCIL_OT_weight_brush_stroke().
|
static |
Definition at line 426 of file grease_pencil_draw_ops.cc.
References C, 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 255 of file paint_stroke.cc.
References BRUSH_ANCHORED, BRUSH_DRAG_DOT, and Brush::flag.
Referenced by paint_stroke_new().
|
static |
Definition at line 260 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 216 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(), C, 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.
Referenced by createTransSculpt().
|
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().
Referenced by ED_spacetypes_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, AssetLibraryReference::type, and U.
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 255 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(), MTex::brush_map_mode, col, data, 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(), TexSnapshot::old_col, TexSnapshot::old_size, 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 414 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(), cursor_snap, Brush::curve, Brush::curve_preset, data, 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, PAINT_OVERLAY_INVALID_CURVE, ViewContext::scene, and size().
Referenced by paint_draw_cursor_overlay().
|
static |
Definition at line 382 of file paint_cursor.cc.
References BKE_brush_curve_strength_clamped(), data, float, len, size(), sqrtf, x, and y.
Referenced by load_tex_cursor().
|
static |
Definition at line 153 of file paint_cursor.cc.
References angle(), 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, data, 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, ARegion::winy, x, and y.
Referenced by load_tex().
|
static |
Definition at line 132 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 BLI_NOINLINE, blender::Span< T >::index_range(), and 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::MutableSpan< T >::copy_from(), blender::math::distance(), blender::MutableSpan< T >::drop_back(), blender::IndexRange::drop_front(), Vector< T, InlineBufferCapacity, Allocator >::first(), Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::length_parameterize::interpolate(), blender::MutableSpan< T >::last(), 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(), 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, blender::length_parameterize::segments_num(), and blender::MutableSpan< T >::size().
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::foreach_index(), 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(), blender::index_mask::IndexMask::foreach_index(), 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(), blender::index_mask::IndexMask::slice(), SubdivCCGCoord::x, and SubdivCCGCoord::y.
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::foreach_index(), 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(), blender::index_mask::IndexMask::slice(), and verts.
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 C, 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, C, CTX_data_scene(), ToolSettings::curves_sculpt, Brush::curves_sculpt_settings, Brush::flag, BrushCurvesSculptSettings::flag, CurvesSculpt::paint, and Scene::toolsettings.
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, C, CTX_data_scene(), ToolSettings::curves_sculpt, Brush::flag, CurvesSculpt::paint, and Scene::toolsettings.
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, C, CTX_data_scene(), ToolSettings::curves_sculpt, ELEM, Brush::flag, new_selection_paint_operation(), CurvesSculpt::paint, and Scene::toolsettings.
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 C, 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(), 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(), 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(), and proj_paint_color_attribute_create().
| 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(), C, 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(), 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(), C, 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().
Referenced by ED_spacetypes_init().
|
static |
Definition at line 157 of file sculpt_ops.cc.
References BKE_sculptsession_free_pbvh(), C, 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 2298 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 2318 of file sculpt_undo.cc.
References 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 2308 of file sculpt_undo.cc.
References 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 2338 of file sculpt_undo.cc.
References 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 2328 of file sculpt_undo.cc.
References 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 2278 of file sculpt_undo.cc.
References BM_log_original_vert_data(), blender::MutableSpan< T >::is_empty(), normals, 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 2268 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(), blender::ed::sculpt_paint::undo::restore_position_from_undo_step(), sculpt_find_nearest_to_ray_cb(), and sculpt_raycast_cb().
| std::optional< OrigPositionData > blender::ed::sculpt_paint::orig_position_data_lookup_mesh | ( | const Object & | object, |
| const bke::pbvh::MeshNode & | node ) |
Definition at line 2257 of file sculpt_undo.cc.
References orig_position_data_lookup_mesh_all_verts(), result, Span< T >::size(), and blender::bke::pbvh::MeshNode::verts().
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 2247 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(), sculpt_find_nearest_to_ray_cb(), and sculpt_raycast_cb().
| bool blender::ed::sculpt_paint::paint_brush_cursor_poll | ( | bContext * | C | ) |
Returns true if the brush cursor should be activated.
Definition at line 1760 of file paint_stroke.cc.
References brush_tool_get(), C, bToolRef_Runtime::cursor, bToolRef::runtime, and WM_CURSOR_DEFAULT.
Referenced by paint_stroke_modal(), and SCULPT_brush_cursor_poll().
|
static |
Definition at line 540 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, C, 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 1754 of file paint_stroke.cc.
References brush_tool_get(), and C.
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 291 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, C, 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 2084 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 1294 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, ARegion::regiontype, 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 1954 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 2034 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 1762 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 1692 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 1679 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 2054 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 2060 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 1722 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 1704 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 1736 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 1751 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 2126 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 1399 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, 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 2106 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 2116 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 2095 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 1668 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 1375 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 2073 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 1014 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 1627 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 1463 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 1650 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 785 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, x, rcti::xmin, y, and rcti::ymin.
Referenced by paint_cursor_check_and_draw_alpha_overlays().
Definition at line 2133 of file paint_cursor.cc.
References blender::ed::sculpt_paint::PaintCursorContext::brush, C, 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, WM_cursor_set(), x, and y.
Referenced by ED_paint_cursor_start().
|
static |
Definition at line 700 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, pos, quad, ViewContext::scene, UnifiedPaintSettings::size_pressure_value, UnifiedPaintSettings::stroke_active, U, UNPACK3, x, and y.
Referenced by paint_draw_alpha_overlay().
|
static |
Definition at line 933 of file paint_cursor.cc.
References PaintCurvePoint::bez, BKE_curve_forward_diff_bezier(), data, 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 1639 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 165 of file paint_stroke.cc.
References BKE_paint_get_active_from_context(), C, 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, ViewContext::region, blender::ed::sculpt_paint::PaintStroke::vc, ARegion::winrct, x, rcti::xmin, y, and rcti::ymin.
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(), BKE_paintmode_get_active_from_context(), C, GPencil, 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_SHOW_BRUSH, pos, ViewContext::region, blender::ed::sculpt_paint::PaintStroke::vc, ARegion::winrct, x, rcti::xmin, y, and rcti::ymin.
Referenced by paint_stroke_modal().
|
static |
Definition at line 548 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, 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, texture, Texture3D, Brush::texture_overlay_alpha, U, 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 1231 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, C, 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 646 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 813 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, C, 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 1047 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 674 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, C, 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(), size(), 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 781 of file paint_stroke.cc.
References BKE_brush_use_size_pressure(), blender::ed::sculpt_paint::PaintStroke::brush, C, blender::ed::sculpt_paint::PaintStroke::last_pressure, length(), and paint_space_stroke_spacing().
Referenced by paint_space_stroke().
|
static |
Definition at line 1191 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 1694 of file paint_stroke.cc.
References C, and 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 1335 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, C, copy_v2_v2(), CTX_data_scene(), CTX_data_tool_settings(), data, 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 1719 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 1664 of file paint_stroke.cc.
References C, 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 1709 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 988 of file paint_stroke.cc.
References BKE_paint_set_overlay_override(), C, CTX_wm_manager(), CTX_wm_region_view3d(), CTX_wm_window(), UnifiedPaintSettings::draw_anchored, RegionView3D::rflag, RV3D_PAINTING, 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 756 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 1714 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 507 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 1433 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 1321 of file paint_stroke.cc.
References blender::ed::sculpt_paint::PaintStroke::brush, BRUSH_LINE, C, 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 1462 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, C, 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, 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 1173 of file paint_stroke.cc.
References PAINT_STROKE_MODAL_CANCEL, WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_paint().
| void * blender::ed::sculpt_paint::paint_stroke_mode_data | ( | PaintStroke * | stroke | ) |
Definition at line 1704 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 904 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, C, 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, 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 730 of file paint_stroke.cc.
References BKE_brush_curve_strength(), fabsf, max_ff(), sum(), and x.
Referenced by paint_stroke_integrate_overlap().
|
static |
Definition at line 1210 of file paint_stroke.cc.
References add_v2_v2(), average(), 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 1724 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 1729 of file paint_stroke.cc.
References blender::ed::sculpt_paint::PaintStroke::stroke_started.
|
static |
Definition at line 487 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 493 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 244 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 1699 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 1092 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 1153 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 1118 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 1146 of file paint_stroke.cc.
References ELEM, Sculpt, Texture2D, Texture3D, and Vertex.
Referenced by stencil_control_poll().
|
static |
Definition at line 1448 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 1214 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().
Referenced by SCULPT_cursor_geometry_info_update().
|
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 5526 of file sculpt.cc.
References SculptFakeNeighbors::fake_neighbor_index, SculptSession::fake_neighbors, and pose_fake_neighbors_free().
Referenced by pose_fake_neighbors_free(), and SCULPT_fake_neighbors_free().
|
static |
Definition at line 500 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, V3D_PROJ_TEST_NOP, and view.
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 7018 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 5485 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(), C, 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 C, 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 createTransSculpt(), 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 6966 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 120 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(), C, 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, faces, 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::bke::crazyspace::GeometryDeformation::positions, 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, normals, blender::ed::sculpt_paint::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, 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::bke::pbvh::GridsNode::grids(), blender::ed::sculpt_paint::StrokeCache::hardness, blender::ed::sculpt_paint::LocalData::local_positions, Brush::normal_radius_factor, blender::ed::sculpt_paint::LocalData::normals, normals, blender::ed::sculpt_paint::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, Vector< T, InlineBufferCapacity, Allocator >::resize(), sample, blender::MutableSpan< T >::size(), 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, normals, blender::ed::sculpt_paint::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, Vector< T, InlineBufferCapacity, Allocator >::resize(), sample, transform_positions(), blender::bke::pbvh::MeshNode::verts(), 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 7247 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 7257 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 7237 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 7230 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 6162 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(), scatter_data_bmesh(), scatter_data_bmesh< float >(), and scatter_data_bmesh< float3 >().
| template void blender::ed::sculpt_paint::scatter_data_bmesh< float > | ( | Span< float > | , |
| const Set< BMVert *, 0 > & | , | ||
| MutableSpan< float > | ) |
References scatter_data_bmesh().
| template void blender::ed::sculpt_paint::scatter_data_bmesh< float3 > | ( | Span< float3 > | , |
| const Set< BMVert *, 0 > & | , | ||
| MutableSpan< float3 > | ) |
References scatter_data_bmesh().
| 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 6146 of file sculpt.cc.
References BKE_subdiv_ccg_key_top_level(), BLI_assert, blender::MutableSpan< T >::copy_from(), CCGKey::grid_area, blender::bke::ccg::grid_range(), 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(), scatter_data_grids< float >(), scatter_data_grids< float3 >(), 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 > | ) |
References scatter_data_grids().
| template void blender::ed::sculpt_paint::scatter_data_grids< float3 > | ( | const SubdivCCG & | , |
| Span< float3 > | , | ||
| Span< int > | , | ||
| MutableSpan< float3 > | ) |
References scatter_data_grids().
| 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 6136 of file sculpt.cc.
References BLI_assert, indices, 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(), scatter_data_mesh< bool >(), scatter_data_mesh< float >(), scatter_data_mesh< float3 >(), scatter_data_mesh< float4 >(), scatter_data_mesh< int >(), 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 > | ) |
References scatter_data_mesh().
| template void blender::ed::sculpt_paint::scatter_data_mesh< float > | ( | Span< float > | , |
| Span< int > | , | ||
| MutableSpan< float > | ) |
References scatter_data_mesh().
| template void blender::ed::sculpt_paint::scatter_data_mesh< float3 > | ( | Span< float3 > | , |
| Span< int > | , | ||
| MutableSpan< float3 > | ) |
References scatter_data_mesh().
| template void blender::ed::sculpt_paint::scatter_data_mesh< float4 > | ( | Span< float4 > | , |
| Span< int > | , | ||
| MutableSpan< float4 > | ) |
References scatter_data_mesh().
| template void blender::ed::sculpt_paint::scatter_data_mesh< int > | ( | Span< int > | , |
| Span< int > | , | ||
| MutableSpan< int > | ) |
References scatter_data_mesh().
|
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 5457 of file sculpt.cc.
References BKE_paint_brush_for_read(), brush_exit_tex(), C, SculptSession::cache, CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_tool_settings(), wmOperator::customdata, depsgraph, Sculpt::paint, paint_stroke_cancel(), blender::ed::sculpt_paint::undo::restore_from_undo_step(), Object::sculpt, ToolSettings::sculpt, sculpt_brush_stroke_cancel(), and blender::ed::sculpt_paint::dyntopo::stroke_is_dyntopo().
Referenced by sculpt_brush_stroke_cancel(), and SCULPT_OT_brush_stroke().
|
static |
Definition at line 5438 of file sculpt.cc.
References brush_stroke_init(), C, 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 5358 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(), C, 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, blender::bke::pbvh::Grids, 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(), SCULPT_stroke_get_location_ex(), and sculpt_update_cache_variants().
|
static |
Definition at line 260 of file curves_sculpt_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_stroke_operator_properties(), sculpt_curves_stroke_cancel(), sculpt_curves_stroke_invoke(), and sculpt_curves_stroke_modal().
Referenced by ED_operatortypes_sculpt_curves().
|
static |
Definition at line 1151 of file curves_sculpt_ops.cc.
References blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_invoke(), blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_modal(), blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_poll(), OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and SCULPT_CURVES_OT_min_distance_edit().
Referenced by ED_operatortypes_sculpt_curves(), and SCULPT_CURVES_OT_min_distance_edit().
|
static |
Definition at line 794 of file curves_sculpt_ops.cc.
References blender::ed::curves::editable_curves_poll(), FLT_MAX, OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_DISTANCE, RNA_def_float(), RNA_def_property_subtype(), SCULPT_CURVES_OT_select_grow(), blender::ed::sculpt_paint::select_grow::select_grow_invoke(), and blender::ed::sculpt_paint::select_grow::select_grow_modal().
Referenced by ED_operatortypes_sculpt_curves(), and SCULPT_CURVES_OT_select_grow().
|
static |
Definition at line 476 of file curves_sculpt_ops.cc.
References blender::ed::curves::editable_curves_poll(), INT32_MAX, INT32_MIN, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), RNA_def_float(), RNA_def_int(), blender::ed::sculpt_paint::select_random::select_random_exec(), and blender::ed::sculpt_paint::select_random::select_random_ui().
Referenced by ED_operatortypes_sculpt_curves().
|
static |
Definition at line 250 of file curves_sculpt_ops.cc.
References C, 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(), C, 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 C, wmOperator::customdata, ELEM, OPERATOR_CANCELLED, OPERATOR_FINISHED, paint_stroke_modal(), and blender::ed::sculpt_paint::SculptCurvesBrushStrokeData::stroke.
Referenced by SCULPT_CURVES_OT_brush_stroke().
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, TEX_NOISE, and Tex::type.
Referenced by stroke_update_step().
|
static |
Definition at line 1153 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(), Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), SculptSession::preview_verts, 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::MatBase< float, 4, 4 >::identity(), 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 1075 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 1195 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(), C, 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(), OPERATOR_CANCELLED, OPERATOR_FINISHED, Sculpt::paint, blender::ed::sculpt_paint::undo::push_end(), blender::ed::sculpt_paint::undo::push_enter_sculpt_mode(), wmOperator::reports, ToolSettings::sculpt, Scene::toolsettings, 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, blender::ed::sculpt_paint::auto_mask::is_enabled(), Brush::mask_tool, blender::bke::object::pbvh_get(), 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(), and SCULPT_stroke_modifiers_check().
| void blender::ed::sculpt_paint::SCULPT_OT_brush_stroke | ( | wmOperatorType * | ot | ) |
Definition at line 5487 of file sculpt.cc.
References brush_stroke_modal(), OPTYPE_BLOCKING, ot, paint_stroke_operator_properties(), redo_empty_ui(), RNA_def_boolean(), sculpt_brush_stroke_cancel(), sculpt_brush_stroke_exec(), sculpt_brush_stroke_invoke(), SCULPT_OT_brush_stroke(), and SCULPT_poll().
Referenced by operatortypes_sculpt(), and SCULPT_OT_brush_stroke().
|
static |
Definition at line 173 of file sculpt_ops.cc.
References optimize_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and SCULPT_mode_poll().
Referenced by operatortypes_sculpt().
|
static |
Definition at line 655 of file sculpt_ops.cc.
References OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, ot, sample_color_invoke(), and SCULPT_mode_poll().
Referenced by operatortypes_sculpt().
|
static |
Definition at line 588 of file sculpt_ops.cc.
References ED_operator_object_active_editable_mesh(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and sculpt_mode_toggle_exec().
Referenced by operatortypes_sculpt().
|
static |
Definition at line 139 of file sculpt_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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 FLT_MAX, OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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 Unmasked.
Referenced by operatortypes_sculpt(), and SCULPT_OT_set_pivot_position().
|
static |
Definition at line 285 of file sculpt_ops.cc.
References no_multires_poll(), ot, RNA_def_float(), RNA_def_property_ui_range(), 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, C, 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(), smooth_brush_toggle_on(), 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, C, 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::cloth::is_cloth_deform_brush(), 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, Scene::toolsettings, ToolSettings::unified_paint_settings, 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 blender::bke::MutableAttributeAccessor::add(), BKE_base_is_visible(), BKE_sculpt_update_object_for_edit(), C, CTX_data_active_base(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_wm_view3d(), Object::data, depsgraph, blender::VArray< T >::ForSpan(), blender::bke::AttributeAccessor::lookup(), blender::bke::pbvh::Mesh, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::bke::object::pbvh_get(), blender::bke::Point, blender::bke::MutableAttributeAccessor::remove(), Object::sculpt, blender::bke::AttributeReader< T >::sharing_info, blender::bke::AttributeReader< T >::varray, 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(), ActiveVert, 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(), C, 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(), CursorSurface, Object::data, depsgraph, ED_region_tag_redraw(), UnifiedPaintSettings::last_stroke_valid, NC_GEOM, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, Origin, 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, Unmasked, 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 C, 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 CursorSurface, 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(), bScreen::areabase, BKE_preferences_asset_shelf_settings_ensure_catalog_path_enabled(), C, blender::StringRefNull::c_str(), CTX_wm_manager(), AssetShelf::idname, LISTBASE_FOREACH, U, and WM_window_get_active_screen().
Referenced by brush_asset_save_as_exec().
|
static |
Definition at line 1313 of file grease_pencil_draw_ops.cc.
References blender::bke::curves_copy_point_selection(), blender::IndexMask::from_predicate(), blender::IndexRange::last(), blender::math::pow(), blender::IndexRange::size(), and blender::IndexRange::start().
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(), C, 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, SCULPT_BRUSH_TYPE_SMEAR, and smooth_brush_toggle_off().
Referenced by smooth_brush_toggle_off(), and stroke_done().
|
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, C, 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, SCULPT_BRUSH_TYPE_SMEAR, and smooth_brush_toggle_on().
Referenced by sculpt_update_cache_invariants(), and smooth_brush_toggle_on().
|
static |
Definition at line 1284 of file grease_pencil_draw_ops.cc.
References blender::bke::GSpanAttributeWriter::finish(), blender::VArray< T >::ForSingle(), blender::index_mask::IndexMask::is_empty(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::geometry::smooth_curve_attribute(), and blender::bke::GSpanAttributeWriter::span.
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, C, CTX_data_scene(), ToolSettings::curves_sculpt, 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, RNA_enum_get(), and Scene::toolsettings.
Referenced by stroke_update_step().
|
static |
Definition at line 1016 of file paint_stroke.cc.
References blender::ed::sculpt_paint::PaintStroke::brush, MTex::brush_angle_mode, UnifiedPaintSettings::brush_rotation, UnifiedPaintSettings::brush_rotation_sec, C, 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 5308 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(), C, SculptSession::cache, Color, CTX_data_active_object(), CTX_data_tool_settings(), UnifiedPaintSettings::draw_inverted, flush_update_done(), Image, Mask, NC_OBJECT, ND_DRAW, Sculpt::paint, ToolSettings::paint_mode, Position, 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(), smooth_brush_toggle_off(), stroke_done(), stroke_undo_end(), ToolSettings::unified_paint_settings, and WM_event_add_notifier().
|
static |
Definition at line 200 of file curves_sculpt_ops.cc.
References C, and 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(), sculpt_brush_stroke_exec(), sculpt_brush_stroke_invoke(), sculpt_curves_stroke_invoke(), and stroke_done().
|
static |
Definition at line 208 of file grease_pencil_draw_ops.cc.
References C, 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 C, and 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 C, 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 C, and 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(), sculpt_brush_stroke_exec(), sculpt_brush_stroke_invoke(), sculpt_curves_stroke_invoke(), and stroke_test_start().
|
static |
Definition at line 174 of file grease_pencil_draw_ops.cc.
References C, and UNUSED_VARS.
|
static |
Definition at line 5209 of file sculpt.cc.
References BKE_paint_brush(), C, 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.
|
static |
Definition at line 5247 of file sculpt.cc.
References BKE_paint_brush_for_read(), C, SculptSession::cache, Color, 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(), Image, blender::ed::sculpt_paint::StrokeCache::last_location, blender::ed::sculpt_paint::StrokeCache::location, Mask, Sculpt::paint, ToolSettings::paint_mode, paint_stroke_distance_get(), Position, 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, blender::ed::sculpt_paint::dyntopo::stroke_is_dyntopo(), stroke_update_step(), and ToolSettings::unified_paint_settings.
|
static |
Definition at line 174 of file curves_sculpt_ops.cc.
References C, 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(), sculpt_brush_stroke_exec(), sculpt_brush_stroke_invoke(), sculpt_curves_stroke_invoke(), and stroke_update_step().
|
static |
Definition at line 180 of file grease_pencil_draw_ops.cc.
References BLI_assert, C, 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(), C, 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_cache_calc_brushdata_symm(), 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(), 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, blender::bke::pbvh::GridsNode::grids(), orig_position_data_get_grids(), blender::ed::sculpt_paint::OrigPositionData::positions, 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, Vector< T, InlineBufferCapacity, Allocator >::resize(), scale_translations(), SCULPT_mesh_symmetry_xyz_get(), blender::ed::sculpt_paint::TransformLocalData::translations, blender::bke::pbvh::MeshNode::verts(), and verts.
Referenced by sculpt_transform_all_vertices().
| void blender::ed::sculpt_paint::transform_positions | ( | const float4x4 & | transform, |
| MutableSpan< float3 > | positions ) |
Definition at line 7309 of file sculpt.cc.
References blender::MutableSpan< T >::index_range(), and blender::math::transform_point().
| void blender::ed::sculpt_paint::transform_positions | ( | Span< float3 > | src, |
| const float4x4 & | transform, | ||
| MutableSpan< float3 > | dst ) |
Definition at line 7298 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 7288 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 7277 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 7266 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(), CurveMaskCache::sampled_curve, x, and y.
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(), C, 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().
Referenced by recalcData_sculpt().
|
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 7200 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, C, CTX_data_active_object(), CTX_data_depsgraph_on_load(), CTX_data_scene(), CTX_wm_region(), CTX_wm_view3d(), ToolSettings::curves_sculpt, Brush::curves_sculpt_settings, Object::data, DEG_get_evaluated_object(), BrushCurvesSculptSettings::density_mode, depsgraph, free_bvhtree_from_mesh(), Curves::geometry, blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::ed::sculpt_paint::StrokeExtension::mouse_position, CurvesSculpt::paint, blender::threading::parallel_for(), pow2f(), sample_curves_surface_3d_brush(), Curves::surface, Scene::toolsettings, 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(), AssetLibraryReference::custom_library_index, AssetLibraryReference::type, and U.
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(), and l.
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, blender::Vector< T, InlineBufferCapacity, Allocator >::remove_if(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
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(), faces, 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(), C, CTX_data_main(), blender::ed::asset::find_asset_from_weak_ref(), library_ref_to_user_library(), library_to_library_ref(), 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(), 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 C, 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().