|
Blender V5.3
|
Classes | |
| struct | Cache |
Enumerations | |
| enum class | FilterOrientation { Local = 0 , World = 1 , View = 2 } |
| enum class | MeshFilterType { Smooth = 0 , Scale = 1 , Inflate = 2 , Sphere = 3 , Random = 4 , Relax = 5 , RelaxFaceSets = 6 , SurfaceSmooth = 7 , Sharpen = 8 , EnhanceDetails = 9 , EraseDisplacement = 10 } |
| enum | eMeshFilterDeformAxis { MESH_FILTER_DEFORM_X = 1 << 0 , MESH_FILTER_DEFORM_Y = 1 << 1 , MESH_FILTER_DEFORM_Z = 1 << 2 } |
| enum | { FILTER_MESH_MODAL_CANCEL = 1 , FILTER_MESH_MODAL_CONFIRM } |
Functions | |
| void | cache_init (bContext *C, Object &ob, Sculpt &sd, undo::Type undo_type, const float mval_fl[2], float area_normal_radius, float start_strength) |
| void | register_operator_props (wmOperatorType *ot) |
| float3x3 | to_orientation_space (const filter::Cache &filter_cache) |
| float3x3 | to_object_space (const filter::Cache &filter_cache) |
| void | zero_disabled_axis_components (const filter::Cache &filter_cache, MutableSpan< float3 > vectors) |
| static bool | sculpt_mesh_filter_needs_pmap (MeshFilterType filter_type) |
| static bool | sculpt_mesh_filter_is_continuous (MeshFilterType type) |
| static BLI_NOINLINE void | clamp_factors (const MutableSpan< float > factors, const float min, const float max) |
| static void | calc_smooth_filter (const Depsgraph &depsgraph, const Sculpt &sd, const float strength, Object &object, const IndexMask &node_mask, const bool use_original_position) |
| static void | calc_inflate_filter (const Depsgraph &depsgraph, const Sculpt &sd, const float strength, Object &object, const IndexMask &node_mask) |
| static void | calc_scale_filter (const Depsgraph &depsgraph, const Sculpt &sd, const float strength, Object &object, const IndexMask &node_mask) |
| static BLI_NOINLINE void | calc_sphere_translations (const Span< float3 > positions, const Span< float > factors, const MutableSpan< float3 > translations) |
| static void | calc_sphere_filter (const Depsgraph &depsgraph, const Sculpt &sd, const float strength, Object &object, const IndexMask &node_mask) |
| static BLI_NOINLINE void | randomize_factors (const Span< float3 > positions, const int seed, const MutableSpan< float > factors) |
| static void | calc_random_filter (const Depsgraph &depsgraph, const Sculpt &sd, const float strength, Object &object, const IndexMask &node_mask) |
| static void | calc_relax_filter (const Depsgraph &depsgraph, const Sculpt &sd, const float strength, Object &object, const IndexMask &node_mask) |
| static void | calc_relax_face_sets_filter (const Depsgraph &depsgraph, const Sculpt &sd, const float strength, Object &object, const IndexMask &node_mask) |
| static void | calc_surface_smooth_filter (const Depsgraph &depsgraph, const Sculpt &sd, const float strength, Object &object, const IndexMask &node_mask) |
| static BLI_NOINLINE void | calc_sharpen_detail_translations (const filter::Cache &filter_cache, const Span< float3 > positions, const Span< float3 > smooth_positions, const Span< float > sharpen_factors, const Span< float3 > detail_directions, const MutableSpan< float3 > translations) |
| static void | calc_sharpen_filter (const Depsgraph &depsgraph, const Sculpt &sd, const float strength, Object &object, const IndexMask &node_mask) |
| static void | calc_enhance_details_filter (const Depsgraph &depsgraph, const Sculpt &sd, const float strength, Object &object, const IndexMask &node_mask) |
| static void | calc_erase_displacement_filter (const Depsgraph &depsgraph, const Sculpt &sd, const float strength, Object &object, const IndexMask &node_mask) |
| static void | mesh_filter_surface_smooth_init (Object &object, const float shape_preservation, const float current_vertex_displacement) |
| static void | calc_limit_surface_positions (const Object &object, MutableSpan< float3 > limit_positions) |
| static void | mesh_filter_sharpen_init (const Depsgraph &depsgraph, const Object &object, const float smooth_ratio, const float intensify_detail_strength, const int curvature_smooth_iterations, filter::Cache &filter_cache) |
| wmKeyMap * | modal_keymap (wmKeyConfig *keyconf) |
| static void | sculpt_mesh_update_status_bar (bContext *C, wmOperator *) |
| static void | sculpt_mesh_filter_apply (bContext *C, wmOperator *op, bool is_replay=false) |
| static void | sculpt_mesh_update_strength (wmOperator *op, SculptSession &ss, float2 prev_press_mouse, float2 mouse) |
| static void | sculpt_mesh_filter_apply_with_history (bContext *C, wmOperator *op) |
| static void | sculpt_mesh_filter_end (bContext *C) |
| static wmOperatorStatus | sculpt_mesh_filter_confirm (SculptSession &ss, wmOperator *op, const MeshFilterType filter_type) |
| static void | sculpt_mesh_filter_cancel (bContext *C, wmOperator *) |
| static wmOperatorStatus | sculpt_mesh_filter_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | sculpt_filter_specific_init (const Depsgraph &depsgraph, const MeshFilterType filter_type, wmOperator *op, Object &object) |
| static wmOperatorStatus | sculpt_mesh_filter_start (bContext *C, wmOperator *op) |
| static wmOperatorStatus | sculpt_mesh_filter_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | sculpt_mesh_filter_exec (bContext *C, wmOperator *op) |
| static void | sculpt_mesh_ui_exec (bContext *, wmOperator *op) |
| void | SCULPT_OT_mesh_filter (wmOperatorType *ot) |
Variables | |
| static EnumPropertyItem | prop_mesh_filter_types [] |
| static EnumPropertyItem | prop_mesh_filter_deform_axis_items [] |
| static EnumPropertyItem | prop_mesh_filter_orientation_items [] |
| anonymous enum |
| Enumerator | |
|---|---|
| FILTER_MESH_MODAL_CANCEL | |
| FILTER_MESH_MODAL_CONFIRM | |
Definition at line 2190 of file sculpt_filter_mesh.cc.
| Enumerator | |
|---|---|
| MESH_FILTER_DEFORM_X | |
| MESH_FILTER_DEFORM_Y | |
| MESH_FILTER_DEFORM_Z | |
Definition at line 272 of file sculpt_filter_mesh.cc.
|
strong |
| Enumerator | |
|---|---|
| Local | |
| World | |
| View | |
Definition at line 40 of file sculpt_filter.hh.
|
strong |
| Enumerator | |
|---|---|
| Smooth | |
| Scale | |
| Inflate | |
| Sphere | |
| Random | |
| Relax | |
| RelaxFaceSets | |
| SurfaceSmooth | |
| Sharpen | |
| EnhanceDetails | |
| EraseDisplacement | |
Definition at line 227 of file sculpt_filter_mesh.cc.
| void blender::ed::sculpt_paint::filter::cache_init | ( | bContext * | C, |
| Object & | ob, | ||
| Sculpt & | sd, | ||
| undo::Type | undo_type, | ||
| const float | mval_fl[2], | ||
| float | area_normal_radius, | ||
| float | start_strength ) |
Definition at line 130 of file sculpt_filter_mesh.cc.
References blender::BKE_paint_brush_for_read(), C, cache_init(), blender::ed::sculpt_paint::calc_area_normal(), blender::copy_m3_m4(), blender::copy_m4_m4(), blender::copy_v3_v3(), blender::CTX_data_ensure_evaluated_depsgraph(), blender::ED_view3d_viewcontext_init(), blender::SculptSession::filter_cache, blender::ed::sculpt_paint::filter::Cache::has_dragged, blender::ed::sculpt_paint::filter::Cache::initial_normal, blender::invert_m4_m4(), blender::SculptSession::last_normal, blender::mul_m3_v3(), blender::mul_m4_v3(), node, blender::ed::sculpt_paint::node_fully_masked_or_hidden(), blender::ed::sculpt_paint::node_in_sphere(), blender::ed::sculpt_paint::filter::Cache::node_mask, blender::ed::sculpt_paint::filter::Cache::node_mask_memory, blender::normalize_v3_v3(), blender::ed::sculpt_paint::object_space_radius_get(), blender::ed::sculpt_paint::filter::Cache::obmat, blender::ed::sculpt_paint::filter::Cache::obmat_inv, blender::Sculpt::paint, blender::paint_calc_object_space_radius(), blender::bke::object::pbvh_get(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::ed::sculpt_paint::undo::push_nodes(), blender::ed::sculpt_paint::filter::Cache::random_seed, blender::Object::runtime, blender::ViewContext::rv3d, blender::bke::ObjectRuntime::sculpt_session, blender::bke::pbvh::search_nodes(), blender::UnifiedPaintSettings::size, blender::math::square(), blender::ed::sculpt_paint::filter::Cache::start_filter_strength, blender::ed::sculpt_paint::stroke_get_location_bvh(), blender::bke::paint::stroke_track_location(), blender::Paint::unified_paint_settings, blender::ed::sculpt_paint::filter::Cache::vc, blender::ed::sculpt_paint::filter::Cache::view_normal, blender::RegionView3D::viewinv, blender::ed::sculpt_paint::filter::Cache::viewmat, blender::RegionView3D::viewmat, blender::ed::sculpt_paint::filter::Cache::viewmat_inv, and blender::bke::ObjectRuntime::world_to_object.
Referenced by cache_init(), blender::ed::sculpt_paint::init_transform(), blender::ed::sculpt_paint::cloth::sculpt_cloth_filter_invoke(), blender::ed::sculpt_paint::color::sculpt_color_filter_init(), and sculpt_mesh_filter_start().
|
static |
Definition at line 1874 of file sculpt_filter_mesh.cc.
References blender::ed::sculpt_paint::apply_translations(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::ed::sculpt_paint::filter::Cache::automasking, blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, blender::SculptSession::bm, blender::bke::pbvh::BMesh, calc_enhance_details_filter(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::data, blender::ed::sculpt_paint::filter::Cache::detail_directions, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_bmesh_positions(), blender::ed::sculpt_paint::gather_data_bmesh(), blender::ed::sculpt_paint::gather_data_grids(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::gather_grids_positions(), blender::exec_mode::grain_size(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, and zero_disabled_axis_components().
Referenced by calc_enhance_details_filter(), and sculpt_mesh_filter_apply().
|
static |
Definition at line 1979 of file sculpt_filter_mesh.cc.
References blender::ed::sculpt_paint::apply_translations(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::ed::sculpt_paint::filter::Cache::automasking, calc_erase_displacement_filter(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), clamp_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_data_grids(), blender::ed::sculpt_paint::gather_grids_positions(), blender::exec_mode::grain_size(), blender::ed::sculpt_paint::filter::Cache::limit_surface_co, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, blender::ed::sculpt_paint::translations_from_new_positions(), and zero_disabled_axis_components().
Referenced by calc_erase_displacement_filter(), and sculpt_mesh_filter_apply().
|
static |
Definition at line 511 of file sculpt_filter_mesh.cc.
References blender::ed::sculpt_paint::apply_translations(), blender::ed::sculpt_paint::filter::Cache::automasking, blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, blender::SculptSession::bm, blender::SculptSession::bm_log, blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), calc_inflate_filter(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::MutableSpan< T >::copy_from(), blender::data, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_bmesh_positions(), blender::ed::sculpt_paint::gather_grids_positions(), blender::exec_mode::grain_size(), blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::OrigPositionData::normals, blender::ed::sculpt_paint::orig_position_data_gather_bmesh(), blender::ed::sculpt_paint::orig_position_data_get_grids(), blender::ed::sculpt_paint::orig_position_data_get_mesh(), blender::bke::object::pbvh_get(), blender::bke::Point, blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, and zero_disabled_axis_components().
Referenced by calc_inflate_filter(), and sculpt_mesh_filter_apply().
|
static |
Definition at line 2038 of file sculpt_filter_mesh.cc.
References blender::BKE_subdiv_ccg_key_top_level(), calc_limit_surface_positions(), blender::SubdivCCG::grids_num, blender::IndexRange::IndexRange(), blender::threading::parallel_for(), and blender::SculptSession::subdiv_ccg.
Referenced by calc_limit_surface_positions(), and sculpt_filter_specific_init().
|
static |
Definition at line 863 of file sculpt_filter_mesh.cc.
References blender::ed::sculpt_paint::apply_translations(), blender::ed::sculpt_paint::filter::Cache::automasking, blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, blender::SculptSession::bm, blender::SculptSession::bm_log, blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), calc_random_filter(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::MutableSpan< T >::copy_from(), blender::data, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_bmesh_positions(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::gather_grids_positions(), blender::exec_mode::grain_size(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::OrigPositionData::normals, blender::ed::sculpt_paint::orig_position_data_gather_bmesh(), blender::ed::sculpt_paint::orig_position_data_get_grids(), blender::ed::sculpt_paint::orig_position_data_get_mesh(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::filter::Cache::random_seed, randomize_factors(), blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, and zero_disabled_axis_components().
Referenced by calc_random_filter(), and sculpt_mesh_filter_apply().
|
static |
Definition at line 1134 of file sculpt_filter_mesh.cc.
References blender::ed::sculpt_paint::apply_translations(), blender::ed::sculpt_paint::filter::Cache::automasking, blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, blender::SculptSession::bm, blender::bke::pbvh::BMesh, blender::SculptSession::boundary_info_cache, blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), calc_relax_face_sets_filter(), 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::auto_mask::calc_vert_factors(), blender::CD_PROP_INT32, clamp_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::CustomData_get_offset_named(), blender::data, blender::bke::Face, blender::ed::sculpt_paint::MeshAttributeData::face_sets, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, blender::ed::sculpt_paint::face_set::filter_verts_with_unique_face_sets_bmesh(), blender::ed::sculpt_paint::face_set::filter_verts_with_unique_face_sets_grids(), blender::ed::sculpt_paint::face_set::filter_verts_with_unique_face_sets_mesh(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_bmesh_positions(), blender::ed::sculpt_paint::gather_grids_positions(), blender::exec_mode::grain_size(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::MeshAttributeData::hide_poly, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::filter::Cache::iteration_count, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), blender::BMesh::pdata, blender::ed::sculpt_paint::scale_factors(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, blender::bke::pbvh::update_normals(), blender::bke::pbvh::vert_normals_eval(), and zero_disabled_axis_components().
Referenced by calc_relax_face_sets_filter(), and sculpt_mesh_filter_apply().
|
static |
Definition at line 980 of file sculpt_filter_mesh.cc.
References blender::ed::sculpt_paint::apply_translations(), blender::ed::sculpt_paint::filter::Cache::automasking, blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, blender::SculptSession::bm, blender::bke::pbvh::BMesh, blender::SculptSession::boundary_info_cache, blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), calc_relax_filter(), 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::auto_mask::calc_vert_factors(), blender::CD_PROP_INT32, clamp_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::CustomData_get_offset_named(), blender::data, blender::bke::Face, blender::ed::sculpt_paint::MeshAttributeData::face_sets, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_bmesh_positions(), blender::ed::sculpt_paint::gather_grids_positions(), blender::exec_mode::grain_size(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::MeshAttributeData::hide_poly, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), blender::BMesh::pdata, blender::ed::sculpt_paint::scale_factors(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, blender::bke::pbvh::update_normals(), blender::bke::pbvh::vert_normals_eval(), and zero_disabled_axis_components().
Referenced by calc_relax_filter(), and sculpt_mesh_filter_apply().
|
static |
Definition at line 624 of file sculpt_filter_mesh.cc.
References blender::ed::sculpt_paint::apply_translations(), blender::ed::sculpt_paint::filter::Cache::automasking, blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, blender::SculptSession::bm, blender::SculptSession::bm_log, blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), calc_scale_filter(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::MutableSpan< T >::copy_from(), blender::data, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_bmesh_positions(), blender::ed::sculpt_paint::gather_grids_positions(), blender::exec_mode::grain_size(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::orig_position_data_gather_bmesh(), blender::ed::sculpt_paint::orig_position_data_get_grids(), blender::ed::sculpt_paint::orig_position_data_get_mesh(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::OrigPositionData::positions, blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, and zero_disabled_axis_components().
Referenced by calc_scale_filter(), and sculpt_mesh_filter_apply().
|
static |
Definition at line 1590 of file sculpt_filter_mesh.cc.
References BLI_NOINLINE, calc_sharpen_detail_translations(), blender::Span< T >::index_range(), blender::pow2f(), blender::ed::sculpt_paint::filter::Cache::sharpen_intensify_detail_strength, and blender::ed::sculpt_paint::filter::Cache::sharpen_smooth_ratio.
Referenced by calc_sharpen_detail_translations(), and calc_sharpen_filter().
|
static |
Definition at line 1610 of file sculpt_filter_mesh.cc.
References blender::ed::sculpt_paint::apply_translations(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::ed::sculpt_paint::filter::Cache::automasking, blender::ed::sculpt_paint::smooth::average_data_grids(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::BKE_subdiv_ccg_key_top_level(), blender::BKE_subdiv_ccg_neighbor_coords_get(), blender::bm, blender::SculptSession::bm, BM_elem_index_get, blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), calc_sharpen_detail_translations(), calc_sharpen_filter(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::calc_vert_neighbors(), blender::CCG_grid_xy_to_index(), clamp_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::SubdivCCGNeighbors::coords, blender::data, blender::ed::sculpt_paint::filter::Cache::detail_directions, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_bmesh_positions(), blender::ed::sculpt_paint::gather_data_bmesh(), blender::ed::sculpt_paint::gather_data_grids(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::gather_grids_positions(), blender::exec_mode::grain_size(), blender::CCGKey::grid_area, blender::CCGKey::grid_size, blender::bke::pbvh::Grids, blender::ed::sculpt_paint::MeshAttributeData::hide_poly, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::Span< T >::index_range(), blender::IndexRange::IndexRange(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::smooth::neighbor_data_average_mesh_check_loose(), blender::ed::sculpt_paint::smooth::neighbor_position_average_bmesh(), blender::bke::object::pbvh_get(), position, blender::SubdivCCG::positions, blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::ed::sculpt_paint::filter::Cache::sharpen_factor, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, blender::SubdivCCGCoord::to_index(), blender::ed::sculpt_paint::vert_neighbors_get_bmesh(), blender::ed::sculpt_paint::vert_random_access_ensure(), blender::x, y, and zero_disabled_axis_components().
Referenced by calc_sharpen_filter(), and sculpt_mesh_filter_apply().
|
static |
Definition at line 333 of file sculpt_filter_mesh.cc.
References blender::ed::sculpt_paint::apply_translations(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::ed::sculpt_paint::filter::Cache::automasking, blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, blender::SculptSession::bm, blender::SculptSession::bm_log, blender::bke::pbvh::BMesh, blender::SculptSession::boundary_info_cache, blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), calc_smooth_filter(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::calc_vert_neighbors_interior(), clamp_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::data, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_bmesh_positions(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::gather_grids_positions(), blender::exec_mode::grain_size(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::MeshAttributeData::hide_poly, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::smooth::neighbor_data_average_mesh_check_loose(), blender::ed::sculpt_paint::smooth::neighbor_position_average_interior_bmesh(), blender::ed::sculpt_paint::smooth::neighbor_position_average_interior_grids(), blender::ed::sculpt_paint::orig_position_data_gather_bmesh(), blender::ed::sculpt_paint::orig_position_data_get_grids(), blender::ed::sculpt_paint::orig_position_data_get_mesh(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::OrigPositionData::positions, blender::ed::sculpt_paint::reset_translations_to_original(), blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, blender::ed::sculpt_paint::translations_from_new_positions(), and zero_disabled_axis_components().
Referenced by calc_smooth_filter(), and sculpt_mesh_filter_apply().
|
static |
Definition at line 745 of file sculpt_filter_mesh.cc.
References blender::ed::sculpt_paint::apply_translations(), blender::ed::sculpt_paint::filter::Cache::automasking, blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, blender::SculptSession::bm, blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), calc_sphere_filter(), calc_sphere_translations(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::data, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_bmesh_positions(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::gather_grids_positions(), blender::exec_mode::grain_size(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::scale_factors(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, and zero_disabled_axis_components().
Referenced by calc_sphere_filter(), and sculpt_mesh_filter_apply().
|
static |
Definition at line 735 of file sculpt_filter_mesh.cc.
References blender::math::abs(), BLI_NOINLINE, calc_sphere_translations(), blender::Span< T >::index_range(), blender::math::midpoint(), and blender::math::normalize().
Referenced by calc_sphere_filter(), and calc_sphere_translations().
|
static |
Definition at line 1310 of file sculpt_filter_mesh.cc.
References blender::ed::sculpt_paint::apply_translations(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::MutableSpan< T >::as_span(), blender::ed::sculpt_paint::filter::Cache::automasking, blender::ed::sculpt_paint::smooth::average_data_bmesh(), blender::ed::sculpt_paint::smooth::average_data_grids(), beta(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, blender::SculptSession::bm, blender::SculptSession::bm_log, blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), calc_surface_smooth_filter(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::calc_vert_neighbors(), clamp_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::data, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_bmesh_positions(), blender::ed::sculpt_paint::gather_data_bmesh(), blender::ed::sculpt_paint::gather_data_grids(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::gather_grids_positions(), blender::exec_mode::grain_size(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::MeshAttributeData::hide_poly, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::smooth::neighbor_data_average_mesh_check_loose(), blender::ed::sculpt_paint::smooth::neighbor_position_average_bmesh(), blender::ed::sculpt_paint::orig_position_data_gather_bmesh(), blender::ed::sculpt_paint::orig_position_data_get_grids(), blender::ed::sculpt_paint::orig_position_data_get_mesh(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::OrigPositionData::positions, blender::SubdivCCG::positions, blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::ed::sculpt_paint::scatter_data_bmesh(), blender::ed::sculpt_paint::scatter_data_grids(), blender::ed::sculpt_paint::scatter_data_mesh(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, blender::ed::sculpt_paint::filter::Cache::surface_smooth_current_vertex, blender::ed::sculpt_paint::smooth::surface_smooth_displace_step(), blender::ed::sculpt_paint::filter::Cache::surface_smooth_laplacian_disp, blender::ed::sculpt_paint::smooth::surface_smooth_laplacian_step(), blender::ed::sculpt_paint::filter::Cache::surface_smooth_shape_preservation, and zero_disabled_axis_components().
Referenced by calc_surface_smooth_filter(), and sculpt_mesh_filter_apply().
|
static |
Definition at line 324 of file sculpt_filter_mesh.cc.
References BLI_NOINLINE, clamp_factors(), max, and min.
Referenced by calc_erase_displacement_filter(), calc_relax_face_sets_filter(), calc_relax_filter(), calc_sharpen_filter(), calc_smooth_filter(), calc_surface_smooth_filter(), and clamp_factors().
|
static |
Definition at line 2052 of file sculpt_filter_mesh.cc.
References blender::MutableSpan< T >::as_span(), blender::ed::sculpt_paint::smooth::average_data_bmesh(), blender::ed::sculpt_paint::smooth::average_data_grids(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::BKE_subdiv_ccg_key_top_level(), blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::calc_smooth_translations(), blender::ed::sculpt_paint::calc_vert_neighbors(), blender::data, blender::ed::sculpt_paint::filter::Cache::detail_directions, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::CCGKey::grid_area, blender::bke::pbvh::Grids, blender::math::length(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, mesh_filter_sharpen_init(), blender::ed::sculpt_paint::smooth::neighbor_data_average_mesh_check_loose(), blender::ed::sculpt_paint::filter::Cache::node_mask, blender::bke::object::pbvh_get(), blender::pow2f(), blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::math::safe_rcp(), blender::ed::sculpt_paint::scatter_data_bmesh(), blender::ed::sculpt_paint::scatter_data_grids(), blender::ed::sculpt_paint::scatter_data_mesh(), blender::ed::sculpt_paint::filter::Cache::sharpen_curvature_smooth_iterations, blender::ed::sculpt_paint::filter::Cache::sharpen_factor, blender::ed::sculpt_paint::filter::Cache::sharpen_intensify_detail_strength, blender::ed::sculpt_paint::filter::Cache::sharpen_smooth_ratio, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, and blender::ed::sculpt_paint::vertex_count_get().
Referenced by mesh_filter_sharpen_init(), and sculpt_filter_specific_init().
|
static |
Definition at line 2024 of file sculpt_filter_mesh.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::fill(), blender::SculptSession::filter_cache, mesh_filter_surface_smooth_init(), blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::ed::sculpt_paint::filter::Cache::surface_smooth_current_vertex, blender::ed::sculpt_paint::filter::Cache::surface_smooth_laplacian_disp, blender::ed::sculpt_paint::filter::Cache::surface_smooth_shape_preservation, and blender::ed::sculpt_paint::vertex_count_get().
Referenced by mesh_filter_surface_smooth_init(), and sculpt_filter_specific_init().
| wmKeyMap * blender::ed::sculpt_paint::filter::modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 2195 of file sculpt_filter_mesh.cc.
References FILTER_MESH_MODAL_CANCEL, FILTER_MESH_MODAL_CONFIRM, blender::wmKeyMap::modal_items, modal_keymap(), blender::WM_modalkeymap_assign(), blender::WM_modalkeymap_ensure(), and blender::WM_modalkeymap_find().
Referenced by blender::ed::sculpt_paint::keymap_sculpt(), and modal_keymap().
|
static |
Definition at line 851 of file sculpt_filter_mesh.cc.
References blender::BLI_assert(), blender::BLI_hash_int_2d(), BLI_NOINLINE, float, hash, blender::Span< T >::index_range(), randomize_factors(), blender::MutableSpan< T >::size(), and blender::Span< T >::size().
Referenced by calc_random_filter(), and randomize_factors().
| void blender::ed::sculpt_paint::filter::register_operator_props | ( | wmOperatorType * | ot | ) |
Definition at line 2599 of file sculpt_filter_mesh.cc.
References BLT_I18NCONTEXT_AMOUNT, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, register_operator_props(), blender::RNA_def_collection_runtime(), blender::RNA_def_float(), blender::RNA_def_int(), blender::RNA_def_int_array(), blender::RNA_def_property_flag(), blender::RNA_def_property_translation_context(), and blender::wmOperatorType::srna.
Referenced by register_operator_props(), blender::ed::sculpt_paint::cloth::SCULPT_OT_cloth_filter(), blender::ed::sculpt_paint::color::SCULPT_OT_color_filter(), and SCULPT_OT_mesh_filter().
|
static |
Definition at line 2445 of file sculpt_filter_mesh.cc.
References calc_limit_surface_positions(), blender::ed::sculpt_paint::calc_smooth_translations(), blender::ed::sculpt_paint::filter::Cache::detail_directions, EnhanceDetails, EraseDisplacement, blender::SculptSession::filter_cache, blender::ed::sculpt_paint::filter::Cache::limit_surface_co, mesh_filter_sharpen_init(), mesh_filter_surface_smooth_init(), blender::ed::sculpt_paint::filter::Cache::node_mask, blender::wmOperator::ptr, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::RNA_float_get(), blender::RNA_int_get(), sculpt_filter_specific_init(), Sharpen, SurfaceSmooth, and blender::ed::sculpt_paint::vertex_count_get().
Referenced by sculpt_filter_specific_init(), and sculpt_mesh_filter_start().
|
static |
Definition at line 2224 of file sculpt_filter_mesh.cc.
References blender::ed::sculpt_paint::filter::Cache::automasking, blender::BRUSH_AUTOMASKING_CAVITY_ALL, C, calc_enhance_details_filter(), calc_erase_displacement_filter(), calc_inflate_filter(), calc_random_filter(), calc_relax_face_sets_filter(), calc_relax_filter(), calc_scale_filter(), calc_sharpen_filter(), calc_smooth_filter(), calc_sphere_filter(), calc_surface_smooth_filter(), blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::CTX_data_tool_settings(), EnhanceDetails, EraseDisplacement, blender::SculptSession::filter_cache, blender::ed::sculpt_paint::flush_update_step(), Inflate, blender::ed::sculpt_paint::auto_mask::is_enabled(), blender::ed::sculpt_paint::filter::Cache::iteration_count, blender::ed::sculpt_paint::filter::Cache::node_mask, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::Position, blender::wmOperator::ptr, Random, Relax, RelaxFaceSets, blender::RNA_enum_get(), blender::RNA_float_get(), blender::Object::runtime, Scale, blender::ToolSettings::sculpt, sculpt_mesh_filter_apply(), blender::bke::ObjectRuntime::sculpt_session, Sharpen, Smooth, Sphere, SurfaceSmooth, and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by sculpt_mesh_filter_apply(), sculpt_mesh_filter_apply_with_history(), and sculpt_mesh_filter_modal().
|
static |
Definition at line 2301 of file sculpt_filter_mesh.cc.
References C, blender::CTX_data_active_object(), blender::SculptSession::filter_cache, blender::wmOperator::ptr, RNA_BEGIN, blender::RNA_collection_length(), RNA_END, blender::RNA_float_get_array(), blender::RNA_float_set(), blender::Object::runtime, sculpt_mesh_filter_apply(), sculpt_mesh_filter_apply_with_history(), sculpt_mesh_update_strength(), blender::bke::ObjectRuntime::sculpt_session, and blender::ed::sculpt_paint::filter::Cache::start_filter_strength.
Referenced by sculpt_mesh_filter_apply_with_history(), and sculpt_mesh_filter_exec().
|
static |
Definition at line 2356 of file sculpt_filter_mesh.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::restore_position_from_undo_step(), blender::Object::runtime, sculpt_mesh_filter_cancel(), blender::bke::ObjectRuntime::sculpt_session, and blender::bke::pbvh::update_normals().
Referenced by sculpt_mesh_filter_cancel(), sculpt_mesh_filter_modal(), and SCULPT_OT_mesh_filter().
|
static |
Definition at line 2343 of file sculpt_filter_mesh.cc.
References blender::SculptSession::filter_cache, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_float_set(), sculpt_mesh_filter_confirm(), sculpt_mesh_filter_is_continuous(), and blender::ed::sculpt_paint::filter::Cache::start_filter_strength.
Referenced by sculpt_mesh_filter_confirm(), and sculpt_mesh_filter_modal().
|
static |
Definition at line 2333 of file sculpt_filter_mesh.cc.
References C, blender::CTX_data_active_object(), blender::SculptSession::filter_cache, blender::ed::sculpt_paint::flush_update_done(), blender::ed::sculpt_paint::Position, blender::Object::runtime, sculpt_mesh_filter_end(), and blender::bke::ObjectRuntime::sculpt_session.
Referenced by sculpt_mesh_filter_end(), sculpt_mesh_filter_exec(), and sculpt_mesh_filter_modal().
|
static |
Definition at line 2579 of file sculpt_filter_mesh.cc.
References C, blender::CTX_data_active_object(), blender::OPERATOR_FINISHED, blender::OPERATOR_PASS_THROUGH, blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_end(), blender::ret, blender::RNA_int_get(), sculpt_mesh_filter_apply_with_history(), sculpt_mesh_filter_end(), sculpt_mesh_filter_exec(), and sculpt_mesh_filter_start().
Referenced by sculpt_mesh_filter_exec(), and SCULPT_OT_mesh_filter().
|
static |
Definition at line 2564 of file sculpt_filter_mesh.cc.
References C, blender::wmEvent::mval, blender::OPERATOR_PASS_THROUGH, blender::OPERATOR_RUNNING_MODAL, blender::wmOperator::ptr, blender::ret, blender::RNA_int_set_array(), sculpt_mesh_filter_invoke(), sculpt_mesh_filter_start(), and blender::WM_event_add_modal_handler().
Referenced by sculpt_mesh_filter_invoke(), and SCULPT_OT_mesh_filter().
|
static |
Definition at line 315 of file sculpt_filter_mesh.cc.
References ELEM, Relax, RelaxFaceSets, sculpt_mesh_filter_is_continuous(), Sharpen, and Smooth.
Referenced by sculpt_mesh_filter_confirm(), sculpt_mesh_filter_is_continuous(), and sculpt_mesh_filter_modal().
|
static |
Definition at line 2372 of file sculpt_filter_mesh.cc.
References blender::BKE_sculptsession_update_for_edit(), C, blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::CTX_wm_window(), blender::ED_workspace_status_text(), blender::EVT_MODAL_MAP, FILTER_MESH_MODAL_CANCEL, FILTER_MESH_MODAL_CONFIRM, blender::MOUSEMOVE, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::OPERATOR_RUNNING_MODAL, blender::wmEvent::prev_press_xy, blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_end_ex(), blender::ed::sculpt_paint::undo::restore_position_from_undo_step(), blender::ret, blender::RNA_collection_add(), blender::RNA_collection_length(), blender::RNA_enum_get(), blender::RNA_float_set(), blender::RNA_float_set_array(), blender::Object::runtime, sculpt_mesh_filter_apply(), sculpt_mesh_filter_cancel(), sculpt_mesh_filter_confirm(), sculpt_mesh_filter_end(), sculpt_mesh_filter_is_continuous(), sculpt_mesh_filter_modal(), sculpt_mesh_update_status_bar(), sculpt_mesh_update_strength(), blender::bke::ObjectRuntime::sculpt_session, blender::wmEvent::type, blender::wmEvent::val, blender::WM_CURSOR_EW_SCROLL, blender::WM_cursor_modal_restore(), blender::WM_cursor_modal_set(), blender::WM_event_tablet_data(), and blender::wmEvent::xy.
Referenced by sculpt_mesh_filter_modal(), and SCULPT_OT_mesh_filter().
|
static |
Definition at line 304 of file sculpt_filter_mesh.cc.
References ELEM, EnhanceDetails, Relax, RelaxFaceSets, sculpt_mesh_filter_needs_pmap(), Sharpen, Smooth, and SurfaceSmooth.
Referenced by sculpt_mesh_filter_needs_pmap(), and sculpt_mesh_filter_start().
|
static |
Definition at line 2484 of file sculpt_filter_mesh.cc.
References blender::ed::sculpt_paint::filter::Cache::active_face_set, blender::BKE_base_is_visible(), blender::BKE_sculptsession_update_for_edit(), C, cache_init(), blender::CTX_data_active_base(), blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::CTX_data_scene(), blender::CTX_data_tool_settings(), blender::CTX_wm_view3d(), blender::ed::sculpt_paint::cursor_geometry_info_update(), blender::ed::sculpt_paint::filter::Cache::enabled_axis, blender::ed::sculpt_paint::boundary::ensure_boundary_info(), EraseDisplacement, blender::SculptSession::filter_cache, blender::ed::sculpt_paint::auto_mask::filter_cache_ensure(), float, blender::bke::pbvh::Grids, blender::ed::sculpt_paint::auto_mask::is_enabled(), MESH_FILTER_DEFORM_X, MESH_FILTER_DEFORM_Y, MESH_FILTER_DEFORM_Z, blender::OPERATOR_CANCELLED, blender::OPERATOR_PASS_THROUGH, blender::ed::sculpt_paint::filter::Cache::orientation, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::Position, blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::wmOperator::reports, blender::RNA_enum_get(), blender::RNA_float_get(), blender::RNA_int_get_array(), blender::Object::runtime, blender::ToolSettings::sculpt, sculpt_filter_specific_init(), sculpt_mesh_filter_needs_pmap(), sculpt_mesh_filter_start(), blender::bke::ObjectRuntime::sculpt_session, blender::ed::sculpt_paint::shape_key_check(), and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by sculpt_mesh_filter_exec(), sculpt_mesh_filter_invoke(), and sculpt_mesh_filter_start().
|
static |
Definition at line 2632 of file sculpt_filter_mesh.cc.
References blender::ui::ITEM_R_EXPAND, blender::wmOperator::layout, blender::ui::Layout::prop(), blender::wmOperator::ptr, blender::ui::Layout::row(), sculpt_mesh_ui_exec(), and UI_ITEM_NONE.
Referenced by sculpt_mesh_ui_exec(), and SCULPT_OT_mesh_filter().
|
static |
Definition at line 2217 of file sculpt_filter_mesh.cc.
References C, IFACE_, blender::WorkspaceStatus::item(), and sculpt_mesh_update_status_bar().
Referenced by sculpt_mesh_filter_modal(), and sculpt_mesh_update_status_bar().
|
static |
Definition at line 2291 of file sculpt_filter_mesh.cc.
References blender::SculptSession::filter_cache, len(), blender::wmOperator::ptr, blender::RNA_float_set(), sculpt_mesh_update_strength(), blender::ed::sculpt_paint::filter::Cache::start_filter_strength, and UI_SCALE_FAC.
Referenced by sculpt_mesh_filter_apply_with_history(), sculpt_mesh_filter_modal(), and sculpt_mesh_update_strength().
| void blender::ed::sculpt_paint::filter::SCULPT_OT_mesh_filter | ( | wmOperatorType * | ot | ) |
Definition at line 2643 of file sculpt_filter_mesh.cc.
References BLT_I18NCONTEXT_OPERATOR_DEFAULT, blender::wmOperatorType::cancel, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, Inflate, blender::wmOperatorType::invoke, Local, MESH_FILTER_DEFORM_X, MESH_FILTER_DEFORM_Y, MESH_FILTER_DEFORM_Z, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::OPTYPE_BLOCKING, blender::OPTYPE_DEPENDS_ON_CURSOR, blender::OPTYPE_GRAB_CURSOR_X, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, prop_mesh_filter_deform_axis_items, prop_mesh_filter_orientation_items, prop_mesh_filter_types, register_operator_props(), blender::RNA_def_enum(), blender::RNA_def_enum_flag(), blender::RNA_def_float(), blender::RNA_def_int(), blender::RNA_def_property_translation_context(), sculpt_mesh_filter_cancel(), sculpt_mesh_filter_exec(), sculpt_mesh_filter_invoke(), sculpt_mesh_filter_modal(), sculpt_mesh_ui_exec(), blender::ed::sculpt_paint::sculpt_mode_poll(), SCULPT_OT_mesh_filter(), blender::wmOperatorType::srna, and blender::wmOperatorType::ui.
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_mesh_filter().
| float3x3 blender::ed::sculpt_paint::filter::to_object_space | ( | const filter::Cache & | filter_cache | ) |
Definition at line 83 of file sculpt_filter_mesh.cc.
References BLI_assert_unreachable, blender::MatBase< float, 3, 3 >::identity(), Local, blender::ed::sculpt_paint::filter::Cache::obmat_inv, blender::ed::sculpt_paint::filter::Cache::orientation, to_object_space(), View, blender::ed::sculpt_paint::filter::Cache::viewmat_inv, and World.
Referenced by blender::ed::sculpt_paint::cloth::calc_gravity_forces(), to_object_space(), and zero_disabled_axis_components().
| float3x3 blender::ed::sculpt_paint::filter::to_orientation_space | ( | const filter::Cache & | filter_cache | ) |
Definition at line 69 of file sculpt_filter_mesh.cc.
References BLI_assert_unreachable, blender::MatBase< float, 3, 3 >::identity(), Local, blender::ed::sculpt_paint::filter::Cache::obmat, blender::ed::sculpt_paint::filter::Cache::orientation, to_orientation_space(), View, blender::ed::sculpt_paint::filter::Cache::viewmat, and World.
Referenced by to_orientation_space(), and zero_disabled_axis_components().
| void blender::ed::sculpt_paint::filter::zero_disabled_axis_components | ( | const filter::Cache & | filter_cache, |
| MutableSpan< float3 > | vectors ) |
Definition at line 97 of file sculpt_filter_mesh.cc.
References blender::ed::sculpt_paint::filter::Cache::enabled_axis, blender::MutableSpan< T >::index_range(), Local, blender::ed::sculpt_paint::filter::Cache::orientation, to_object_space(), to_orientation_space(), and zero_disabled_axis_components().
Referenced by blender::ed::sculpt_paint::cloth::apply_scale_filter(), calc_enhance_details_filter(), calc_erase_displacement_filter(), calc_inflate_filter(), calc_random_filter(), calc_relax_face_sets_filter(), calc_relax_filter(), calc_scale_filter(), calc_sharpen_filter(), calc_smooth_filter(), calc_sphere_filter(), calc_surface_smooth_filter(), and zero_disabled_axis_components().
|
static |
Definition at line 278 of file sculpt_filter_mesh.cc.
Referenced by SCULPT_OT_mesh_filter().
|
static |
Definition at line 285 of file sculpt_filter_mesh.cc.
Referenced by SCULPT_OT_mesh_filter().
|
static |
Definition at line 241 of file sculpt_filter_mesh.cc.
Referenced by SCULPT_OT_mesh_filter().