|
Blender V5.3
|
Classes | |
| struct | ClothBrushCollision |
| struct | FalloffPlane |
| struct | FilterLocalData |
| struct | LengthConstraint |
| struct | LocalData |
| struct | SimulationData |
Enumerations | |
| enum class | ClothFilterType { Gravity , Inflate , Expand , Pinch , Scale } |
| enum | eClothFilterForceAxis { CLOTH_FILTER_FORCE_X = 1 << 0 , CLOTH_FILTER_FORCE_Y = 1 << 1 , CLOTH_FILTER_FORCE_Z = 1 << 2 } |
| enum | NodeSimState { SCULPT_CLOTH_NODE_UNINITIALIZED , SCULPT_CLOTH_NODE_INACTIVE , SCULPT_CLOTH_NODE_ACTIVE } |
| enum | ConstraintType { SCULPT_CLOTH_CONSTRAINT_STRUCTURAL = 0 , SCULPT_CLOTH_CONSTRAINT_DEFORMATION = 1 , SCULPT_CLOTH_CONSTRAINT_SOFTBODY = 2 , SCULPT_CLOTH_CONSTRAINT_PIN = 3 } |
Functions | |
| static MutableSpan< int > | calc_vert_indices_grids (const CCGKey &key, const Span< int > grids, Vector< int > &indices) |
| static MutableSpan< int > | calc_vert_indices_bmesh (const Set< BMVert *, 0 > &verts, Vector< int > &indices) |
| static MutableSpan< int > | calc_visible_vert_indices_grids (const CCGKey &key, const BitGroupVector<> &grid_hidden, const Span< int > grids, Vector< int > &indices) |
| static MutableSpan< int > | calc_visible_vert_indices_bmesh (const Set< BMVert *, 0 > &verts, Vector< int > &indices) |
| static GroupedSpan< int > | calc_vert_neighbor_indices_grids (const SubdivCCG &subdiv_ccg, const Span< int > verts, Vector< int > &r_offset_data, Vector< int > &r_data) |
| static GroupedSpan< int > | calc_vert_neighbor_indices_bmesh (const BMesh &bm, const Span< int > verts, Vector< int > &r_offset_data, Vector< int > &r_data) |
| static float3 | cloth_brush_simulation_location_get (const SculptSession &ss, const Brush *brush) |
| IndexMask | brush_affected_nodes_gather (const Object &object, const Brush &brush, IndexMaskMemory &memory) |
| bool | is_cloth_deform_brush (const Brush &brush) |
| static float | cloth_brush_simulation_falloff_get (const Brush &brush, const float radius, const float3 &location, const float3 &co) |
| static BLI_NOINLINE void | calc_brush_simulation_falloff (const Brush &brush, const float radius, const float3 &location, const Span< float3 > positions, const MutableSpan< float > factors) |
| static void | cloth_brush_add_length_constraint (SimulationData &cloth_sim, const int node_index, const int v1, const int v2, const Span< float3 > init_positions) |
| static void | cloth_brush_add_softbody_constraint (SimulationData &cloth_sim, const int node_index, const int v, const float strength) |
| static void | cloth_brush_add_pin_constraint (SimulationData &cloth_sim, const int node_index, const int v, const float strength) |
| static void | cloth_brush_add_deformation_constraint (SimulationData &cloth_sim, const int node_index, const int v, const float strength) |
| static void | add_constraints_for_verts (const Object &object, const Brush *brush, const float3 &cloth_sim_initial_location, const float cloth_sim_radius, const Span< float3 > init_positions, const int node_index, const Span< int > verts, const GroupedSpan< int > vert_neighbors, SimulationData &cloth_sim, Set< OrderedEdge > &created_length_constraints) |
| void | ensure_nodes_constraints (const Sculpt &sd, Object &object, const IndexMask &node_mask, SimulationData &cloth_sim, const float3 &initial_location, const float radius) |
| static BLI_NOINLINE void | apply_forces (SimulationData &cloth_sim, const Span< float3 > forces, const Span< int > verts) |
| static BLI_NOINLINE void | expand_length_constraints (SimulationData &cloth_sim, const Span< int > verts, const Span< float > factors) |
| static BLI_NOINLINE void | calc_distances_to_plane (const Span< float3 > positions, const float4 &plane, const MutableSpan< float > distances) |
| static BLI_NOINLINE void | clamp_factors (const MutableSpan< float > factors, const float min, const float max) |
| static BLI_NOINLINE void | apply_grab_brush (SimulationData &cloth_sim, const Span< int > verts, const MutableSpan< float > factors, const bool use_falloff_plane, const float3 &grab_delta_symmetry) |
| static BLI_NOINLINE void | apply_snake_hook_brush (SimulationData &cloth_sim, const Span< int > verts, const MutableSpan< float > factors, const float3 &grab_delta_symmetry) |
| static BLI_NOINLINE void | calc_pinch_forces (const Span< float3 > positions, const float3 &location, const MutableSpan< float3 > forces) |
| static BLI_NOINLINE void | calc_plane_pinch_forces (const Span< float3 > positions, const float4 &plane, const float3 &plane_normal, const MutableSpan< float3 > forces) |
| static BLI_NOINLINE void | calc_perpendicular_pinch_forces (const Span< float3 > positions, const float4x4 &imat, const float3 &location, const MutableSpan< float3 > forces) |
| static void | calc_forces_mesh (const Depsgraph &depsgraph, Object &ob, const Brush &brush, const float3 &offset, const float4x4 &imat, const float3 &sim_location, const float3 &gravity, const std::optional< FalloffPlane > &falloff_plane, const MeshAttributeData &attribute_data, const Span< float3 > positions_eval, const Span< float3 > vert_normals, const bke::pbvh::MeshNode &node) |
| static void | calc_forces_grids (const Depsgraph &depsgraph, Object &ob, const Brush &brush, const float3 &offset, const float4x4 &imat, const float3 &sim_location, const float3 &gravity, const std::optional< FalloffPlane > &falloff_plane, const bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | calc_forces_bmesh (const Depsgraph &depsgraph, Object &ob, const Brush &brush, const float3 &offset, const float4x4 &imat, const float3 &sim_location, const float3 &gravity, const std::optional< FalloffPlane > &falloff_plane, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static Vector< ColliderCache > | cloth_brush_collider_cache_create (Object &object, const Depsgraph &depsgraph) |
| static void | cloth_brush_collision_cb (void *userdata, int index, const BVHTreeRay *ray, BVHTreeRayHit *hit) |
| static void | cloth_brush_solve_collision (const Object &object, SimulationData &cloth_sim, const int i) |
| static BLI_NOINLINE void | solve_verts_simulation (const Object &object, const Brush *brush, const float3 &sim_location, const Span< int > verts, const MutableSpan< float > factors, LocalData &tls, SimulationData &cloth_sim) |
| static void | calc_constraint_factors (const Depsgraph &depsgraph, const Object &object, const Brush *brush, const float3 &sim_location, const Span< float3 > init_positions, const MutableSpan< float > cloth_factors) |
| static void | cloth_brush_satisfy_constraints (const Depsgraph &depsgraph, const Object &object, const Brush *brush, SimulationData &cloth_sim) |
| void | do_simulation_step (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, SimulationData &cloth_sim, const IndexMask &node_mask) |
| static void | cloth_brush_apply_brush_forces (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| static void | cloth_sim_initialize_default_node_state (Object &object, SimulationData &cloth_sim) |
| static void | copy_positions_to_array (const Depsgraph &depsgraph, const Object &object, MutableSpan< float3 > positions) |
| static void | copy_normals_to_array (const Depsgraph &depsgraph, const Object &object, MutableSpan< float3 > normals) |
| std::unique_ptr< SimulationData > | brush_simulation_create (const Depsgraph &depsgraph, Object &ob, const float cloth_mass, const float cloth_damping, const float cloth_softbody_strength, const bool use_collisions, const bool needs_deform_coords) |
| void | brush_store_simulation_state (const Depsgraph &depsgraph, const Object &object, SimulationData &cloth_sim) |
| void | sim_activate_nodes (Object &object, SimulationData &cloth_sim, const IndexMask &node_mask) |
| static void | sculpt_cloth_ensure_constraints_in_simulation_area (const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| void | do_cloth_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| void | simulation_limits_draw (const uint gpuattr, const Brush &brush, const float location[3], const float normal[3], const float rds, const float line_width, const float outline_col[3], const float alpha) |
| void | plane_falloff_preview_draw (const uint gpuattr, Brush &brush, SculptSession &ss, const float outline_col[3], float outline_alpha) |
| static bool | cloth_filter_is_deformation_filter (ClothFilterType filter_type) |
| static BLI_NOINLINE void | calc_gravity_forces (const Span< float > factors, const filter::Cache &filter_cache, const MutableSpan< float3 > forces) |
| static BLI_NOINLINE void | apply_scale_filter (filter::Cache &filter_cache, const Span< int > verts, const Span< float > factors, FilterLocalData &tls) |
| static void | apply_filter_forces_mesh (const Depsgraph &depsgraph, const ClothFilterType filter_type, const float filter_strength, const float3 &gravity, const Span< float3 > positions_eval, const Span< float3 > vert_normals, const GroupedSpan< int > vert_to_face_map, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, Object &object, FilterLocalData &tls) |
| static void | apply_filter_forces_grids (const Depsgraph &depsgraph, const Span< int > face_sets, const ClothFilterType filter_type, const float filter_strength, const float3 &gravity, const bke::pbvh::GridsNode &node, Object &object, FilterLocalData &tls) |
| static void | apply_filter_forces_bmesh (const Depsgraph &depsgraph, const ClothFilterType filter_type, const float filter_strength, const float3 &gravity, bke::pbvh::BMeshNode &node, Object &object, FilterLocalData &tls) |
| static wmOperatorStatus | sculpt_cloth_filter_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | sculpt_cloth_filter_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | SCULPT_OT_cloth_filter (wmOperatorType *ot) |
Variables | |
| static EnumPropertyItem | prop_cloth_filter_type [] |
| static EnumPropertyItem | prop_cloth_filter_orientation_items [] |
| static EnumPropertyItem | prop_cloth_filter_force_axis_items [] |
|
strong |
| Enumerator | |
|---|---|
| Gravity | |
| Inflate | |
| Expand | |
| Pinch | |
| Scale | |
Definition at line 2000 of file sculpt_cloth.cc.
| Enumerator | |
|---|---|
| SCULPT_CLOTH_CONSTRAINT_STRUCTURAL | |
| SCULPT_CLOTH_CONSTRAINT_DEFORMATION | |
| SCULPT_CLOTH_CONSTRAINT_SOFTBODY | |
| SCULPT_CLOTH_CONSTRAINT_PIN | |
Definition at line 42 of file sculpt_cloth.hh.
| Enumerator | |
|---|---|
| CLOTH_FILTER_FORCE_X | |
| CLOTH_FILTER_FORCE_Y | |
| CLOTH_FILTER_FORCE_Z | |
Definition at line 2044 of file sculpt_cloth.cc.
| Enumerator | |
|---|---|
| SCULPT_CLOTH_NODE_UNINITIALIZED | |
| SCULPT_CLOTH_NODE_INACTIVE | |
| SCULPT_CLOTH_NODE_ACTIVE | |
Definition at line 31 of file sculpt_cloth.hh.
|
static |
Definition at line 379 of file sculpt_cloth.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), add_constraints_for_verts(), b, blender::BKE_brush_curve_strength(), blender::BRUSH_CLOTH_DEFORM_GRAB, blender::BRUSH_CLOTH_DEFORM_SNAKE_HOOK, blender::BRUSH_CLOTH_FORCE_FALLOFF_PLANE, blender::BRUSH_CLOTH_PIN_SIMULATION_BOUNDARY, blender::BRUSH_CLOTH_SIMULATION_AREA_DYNAMIC, blender::BRUSH_CLOTH_SIMULATION_AREA_LOCAL, blender::SculptSession::cache, cloth_brush_add_deformation_constraint(), cloth_brush_add_length_constraint(), cloth_brush_add_pin_constraint(), cloth_brush_add_softbody_constraint(), cloth_brush_simulation_falloff_get(), CLOTH_DEFORMATION_GRAB_STRENGTH, CLOTH_DEFORMATION_SNAKEHOOK_STRENGTH, CLOTH_DEFORMATION_TARGET_STRENGTH, blender::ed::sculpt_paint::cloth::SimulationData::deformation_pos, blender::math::distance_squared(), fade(), FLT_MAX, blender::Span< T >::index_range(), blender::ed::sculpt_paint::StrokeCache::initial_radius, is_cloth_deform_brush(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), len_squared(), blender::ed::sculpt_paint::StrokeCache::location_symm, blender::ed::sculpt_paint::StrokeCache::radius, blender::SCULPT_BRUSH_TYPE_CLOTH, and blender::ed::sculpt_paint::cloth::SimulationData::softbody_strength.
Referenced by add_constraints_for_verts(), and ensure_nodes_constraints().
|
static |
Definition at line 2247 of file sculpt_cloth.cc.
References blender::ed::sculpt_paint::auto_mask::active_cache_get(), blender::ed::sculpt_paint::filter::Cache::active_face_set, apply_filter_forces_bmesh(), apply_forces(), apply_scale_filter(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, blender::SculptSession::bm, calc_gravity_forces(), calc_pinch_forces(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), calc_vert_indices_bmesh(), blender::CD_PROP_INT32, blender::ed::sculpt_paint::filter::Cache::cloth_sim, blender::ed::sculpt_paint::filter::Cache::cloth_sim_pinch_point, blender::CustomData_get_offset_named(), Expand, expand_length_constraints(), blender::ed::sculpt_paint::cloth::FilterLocalData::factors, blender::MutableSpan< T >::fill(), blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, blender::ed::sculpt_paint::cloth::FilterLocalData::forces, blender::ed::sculpt_paint::gather_bmesh_normals(), blender::ed::sculpt_paint::gather_bmesh_positions(), Gravity, Inflate, blender::math::is_zero(), node, blender::BMesh::pdata, Pinch, blender::ed::sculpt_paint::cloth::FilterLocalData::positions, lexit::Vector< T >::resize(), Scale, blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::ed::sculpt_paint::face_set::vert_has_face_set(), and blender::ed::sculpt_paint::cloth::FilterLocalData::vert_indices.
Referenced by apply_filter_forces_bmesh(), and sculpt_cloth_filter_modal().
|
static |
Definition at line 2175 of file sculpt_cloth.cc.
References blender::ed::sculpt_paint::auto_mask::active_cache_get(), blender::ed::sculpt_paint::filter::Cache::active_face_set, apply_filter_forces_grids(), apply_forces(), apply_scale_filter(), blender::BKE_subdiv_ccg_key_top_level(), calc_gravity_forces(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), calc_pinch_forces(), calc_vert_indices_grids(), blender::ed::sculpt_paint::filter::Cache::cloth_sim, blender::ed::sculpt_paint::filter::Cache::cloth_sim_pinch_point, Expand, expand_length_constraints(), blender::ed::sculpt_paint::cloth::FilterLocalData::factors, blender::MutableSpan< T >::fill(), blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, blender::ed::sculpt_paint::cloth::FilterLocalData::forces, blender::ed::sculpt_paint::gather_grids_normals(), blender::ed::sculpt_paint::gather_grids_positions(), Gravity, blender::CCGKey::grid_area, blender::Span< T >::index_range(), Inflate, blender::math::is_zero(), node, Pinch, blender::ed::sculpt_paint::cloth::FilterLocalData::positions, lexit::Vector< T >::resize(), Scale, blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Span< T >::size(), blender::MutableSpan< T >::slice(), blender::SculptSession::subdiv_ccg, blender::ed::sculpt_paint::face_set::vert_has_face_set(), and blender::ed::sculpt_paint::cloth::FilterLocalData::vert_indices.
Referenced by apply_filter_forces_grids(), and sculpt_cloth_filter_modal().
|
static |
Definition at line 2104 of file sculpt_cloth.cc.
References blender::ed::sculpt_paint::auto_mask::active_cache_get(), blender::ed::sculpt_paint::filter::Cache::active_face_set, apply_filter_forces_mesh(), apply_forces(), apply_scale_filter(), calc_gravity_forces(), calc_pinch_forces(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::filter::Cache::cloth_sim, blender::ed::sculpt_paint::filter::Cache::cloth_sim_pinch_point, Expand, expand_length_constraints(), blender::ed::sculpt_paint::MeshAttributeData::face_sets, blender::ed::sculpt_paint::cloth::FilterLocalData::factors, blender::MutableSpan< T >::fill(), blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, blender::ed::sculpt_paint::cloth::FilterLocalData::forces, blender::ed::sculpt_paint::gather_data_mesh(), Gravity, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::Span< T >::index_range(), Inflate, blender::math::is_zero(), blender::ed::sculpt_paint::MeshAttributeData::mask, node, Pinch, blender::ed::sculpt_paint::cloth::FilterLocalData::positions, lexit::Vector< T >::resize(), Scale, blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Span< T >::size(), and blender::ed::sculpt_paint::face_set::vert_has_face_set().
Referenced by apply_filter_forces_mesh(), and sculpt_cloth_filter_modal().
|
static |
Definition at line 641 of file sculpt_cloth.cc.
References blender::ed::sculpt_paint::cloth::SimulationData::acceleration, apply_forces(), BLI_NOINLINE, blender::Editor, blender::Span< T >::index_range(), blender::ed::sculpt_paint::cloth::SimulationData::mass, PRF_scope, and blender::math::rcp().
Referenced by apply_filter_forces_bmesh(), apply_filter_forces_grids(), apply_filter_forces_mesh(), apply_forces(), calc_forces_bmesh(), calc_forces_grids(), and calc_forces_mesh().
|
static |
Definition at line 683 of file sculpt_cloth.cc.
References apply_grab_brush(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::MutableSpan< T >::as_span(), BLI_NOINLINE, clamp_factors(), blender::ed::sculpt_paint::cloth::SimulationData::deformation_pos, blender::ed::sculpt_paint::cloth::SimulationData::deformation_strength, blender::Editor, blender::Span< T >::index_range(), blender::ed::sculpt_paint::cloth::SimulationData::init_pos, PRF_scope, and blender::ed::sculpt_paint::scatter_data_mesh().
Referenced by apply_grab_brush(), calc_forces_bmesh(), calc_forces_grids(), and calc_forces_mesh().
|
static |
Definition at line 2089 of file sculpt_cloth.cc.
References apply_scale_filter(), BLI_NOINLINE, blender::ed::sculpt_paint::filter::Cache::cloth_sim, blender::ed::sculpt_paint::cloth::FilterLocalData::forces, blender::ed::sculpt_paint::gather_data_mesh(), blender::Span< T >::index_range(), blender::ed::sculpt_paint::scale_translations(), and blender::ed::sculpt_paint::filter::zero_disabled_axis_components().
Referenced by apply_filter_forces_bmesh(), apply_filter_forces_grids(), apply_filter_forces_mesh(), and apply_scale_filter().
|
static |
Definition at line 703 of file sculpt_cloth.cc.
References apply_snake_hook_brush(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::MutableSpan< T >::as_span(), BLI_NOINLINE, blender::ed::sculpt_paint::cloth::SimulationData::deformation_pos, blender::ed::sculpt_paint::cloth::SimulationData::deformation_strength, blender::Editor, blender::Span< T >::index_range(), blender::ed::sculpt_paint::cloth::SimulationData::pos, PRF_scope, and blender::ed::sculpt_paint::scatter_data_mesh().
Referenced by apply_snake_hook_brush(), calc_forces_bmesh(), calc_forces_grids(), and calc_forces_mesh().
| IndexMask blender::ed::sculpt_paint::cloth::brush_affected_nodes_gather | ( | const Object & | object, |
| const Brush & | brush, | ||
| IndexMaskMemory & | memory ) |
Definition at line 190 of file sculpt_cloth.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::BLI_assert(), BLI_assert_unreachable, brush_affected_nodes_gather(), blender::BRUSH_CLOTH_SIMULATION_AREA_DYNAMIC, blender::BRUSH_CLOTH_SIMULATION_AREA_GLOBAL, blender::BRUSH_CLOTH_SIMULATION_AREA_LOCAL, blender::SculptSession::cache, blender::ed::sculpt_paint::StrokeCache::initial_location_symm, blender::ed::sculpt_paint::StrokeCache::initial_radius, blender::ed::sculpt_paint::StrokeCache::location_symm, node, blender::ed::sculpt_paint::node_in_sphere(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::StrokeCache::radius, blender::SCULPT_BRUSH_TYPE_CLOTH, blender::bke::pbvh::search_nodes(), and blender::math::square().
Referenced by brush_affected_nodes_gather(), and blender::ed::sculpt_paint::calc_brush_node_mask().
| std::unique_ptr< SimulationData > blender::ed::sculpt_paint::cloth::brush_simulation_create | ( | const Depsgraph & | depsgraph, |
| Object & | ob, | ||
| const float | cloth_mass, | ||
| const float | cloth_damping, | ||
| const float | cloth_softbody_strength, | ||
| const bool | use_collisions, | ||
| const bool | needs_deform_coords ) |
Definition at line 1774 of file sculpt_cloth.cc.
References brush_simulation_create(), cloth_brush_collider_cache_create(), CLOTH_LENGTH_CONSTRAINTS_BLOCK, cloth_sim_initialize_default_node_state(), copy_normals_to_array(), copy_positions_to_array(), blender::Editor, PRF_scope, and blender::ed::sculpt_paint::vertex_count_get().
Referenced by brush_simulation_create(), blender::ed::sculpt_paint::do_brush_action(), do_cloth_brush(), and sculpt_cloth_filter_invoke().
| void blender::ed::sculpt_paint::cloth::brush_store_simulation_state | ( | const Depsgraph & | depsgraph, |
| const Object & | object, | ||
| SimulationData & | cloth_sim ) |
Definition at line 1823 of file sculpt_cloth.cc.
References brush_store_simulation_state(), copy_positions_to_array(), blender::Editor, blender::ed::sculpt_paint::cloth::SimulationData::pos, and PRF_scope.
Referenced by brush_store_simulation_state(), blender::ed::sculpt_paint::do_brush_action(), do_cloth_brush(), and sculpt_cloth_filter_modal().
|
static |
Definition at line 263 of file sculpt_cloth.cc.
References blender::BLI_assert(), BLI_NOINLINE, calc_brush_simulation_falloff(), cloth_brush_simulation_falloff_get(), blender::Span< T >::index_range(), blender::MutableSpan< T >::size(), and blender::Span< T >::size().
Referenced by calc_brush_simulation_falloff(), calc_constraint_factors(), calc_forces_bmesh(), calc_forces_grids(), calc_forces_mesh(), and solve_verts_simulation().
|
static |
Definition at line 1268 of file sculpt_cloth.cc.
References blender::ed::sculpt_paint::auto_mask::active_cache_get(), blender::bke::pbvh::all_leaf_nodes(), blender::MutableSpan< T >::as_span(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::BKE_subdiv_ccg_key_top_level(), blender::bm, blender::SculptSession::bm, blender::bke::pbvh::BMesh, blender::SculptSession::cache, calc_brush_simulation_falloff(), calc_constraint_factors(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::data, blender::ed::sculpt_paint::cloth::LocalData::factors, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_data_bmesh(), blender::ed::sculpt_paint::gather_data_grids(), blender::ed::sculpt_paint::gather_data_mesh(), blender::exec_mode::grain_size(), blender::CCGKey::grid_area, 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::cloth::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, lexit::Vector< T >::resize(), 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(), and blender::SculptSession::subdiv_ccg.
Referenced by calc_constraint_factors(), and cloth_brush_satisfy_constraints().
|
static |
Definition at line 663 of file sculpt_cloth.cc.
References BLI_NOINLINE, calc_distances_to_plane(), blender::dist_to_plane_v3(), blender::Editor, blender::Span< T >::index_range(), and PRF_scope.
Referenced by calc_distances_to_plane(), calc_forces_bmesh(), calc_forces_grids(), and calc_forces_mesh().
|
static |
Definition at line 989 of file sculpt_cloth.cc.
References blender::ed::sculpt_paint::auto_mask::active_cache_get(), apply_forces(), apply_grab_brush(), blender::ed::sculpt_paint::apply_hardness_to_distances(), apply_snake_hook_brush(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::SculptSession::bm, blender::BRUSH_CLOTH_DEFORM_DRAG, blender::BRUSH_CLOTH_DEFORM_EXPAND, blender::BRUSH_CLOTH_DEFORM_GRAB, blender::BRUSH_CLOTH_DEFORM_INFLATE, blender::BRUSH_CLOTH_DEFORM_PINCH_PERPENDICULAR, blender::BRUSH_CLOTH_DEFORM_PINCH_POINT, blender::BRUSH_CLOTH_DEFORM_PUSH, blender::BRUSH_CLOTH_DEFORM_SNAKE_HOOK, blender::BRUSH_FRONTFACE, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), calc_brush_simulation_falloff(), blender::ed::sculpt_paint::calc_brush_strength_factors(), blender::ed::sculpt_paint::calc_brush_texture_factors(), calc_distances_to_plane(), calc_forces_bmesh(), blender::ed::sculpt_paint::calc_front_face(), calc_perpendicular_pinch_forces(), calc_pinch_forces(), calc_plane_pinch_forces(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), calc_vert_indices_bmesh(), blender::ed::sculpt_paint::StrokeCache::cloth_sim, blender::ed::sculpt_paint::cloth::LocalData::distances, expand_length_constraints(), blender::ed::sculpt_paint::cloth::LocalData::factors, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::ed::sculpt_paint::gather_bmesh_normals(), blender::ed::sculpt_paint::gather_bmesh_positions(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::ed::sculpt_paint::cloth::SimulationData::init_pos, blender::ed::sculpt_paint::cloth::LocalData::init_positions, blender::math::is_zero(), blender::ed::sculpt_paint::StrokeCache::last_location_symm, blender::ed::sculpt_paint::StrokeCache::location_symm, node, blender::math::normalize(), blender::ed::sculpt_paint::cloth::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, lexit::Vector< T >::resize(), blender::Object::runtime, blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Sculpt, blender::bke::ObjectRuntime::sculpt_session, blender::Span< T >::size(), blender::ed::sculpt_paint::cloth::LocalData::translations, blender::ed::sculpt_paint::translations_from_offset_and_factors(), blender::ed::sculpt_paint::cloth::LocalData::vert_indices, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by calc_forces_bmesh(), and cloth_brush_apply_brush_forces().
|
static |
Definition at line 878 of file sculpt_cloth.cc.
References blender::ed::sculpt_paint::auto_mask::active_cache_get(), apply_forces(), apply_grab_brush(), blender::ed::sculpt_paint::apply_hardness_to_distances(), apply_snake_hook_brush(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_subdiv_ccg_key_top_level(), blender::BRUSH_CLOTH_DEFORM_DRAG, blender::BRUSH_CLOTH_DEFORM_EXPAND, blender::BRUSH_CLOTH_DEFORM_GRAB, blender::BRUSH_CLOTH_DEFORM_INFLATE, blender::BRUSH_CLOTH_DEFORM_PINCH_PERPENDICULAR, blender::BRUSH_CLOTH_DEFORM_PINCH_POINT, blender::BRUSH_CLOTH_DEFORM_PUSH, blender::BRUSH_CLOTH_DEFORM_SNAKE_HOOK, blender::BRUSH_FRONTFACE, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), calc_brush_simulation_falloff(), blender::ed::sculpt_paint::calc_brush_strength_factors(), blender::ed::sculpt_paint::calc_brush_texture_factors(), calc_distances_to_plane(), calc_forces_grids(), blender::ed::sculpt_paint::calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), calc_perpendicular_pinch_forces(), calc_pinch_forces(), calc_plane_pinch_forces(), calc_vert_indices_grids(), blender::ed::sculpt_paint::StrokeCache::cloth_sim, blender::ed::sculpt_paint::cloth::LocalData::distances, expand_length_constraints(), blender::ed::sculpt_paint::cloth::LocalData::factors, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::ed::sculpt_paint::gather_data_grids(), blender::ed::sculpt_paint::gather_grids_normals(), blender::ed::sculpt_paint::gather_grids_positions(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::ed::sculpt_paint::cloth::SimulationData::init_pos, blender::ed::sculpt_paint::cloth::LocalData::init_positions, blender::math::is_zero(), blender::ed::sculpt_paint::StrokeCache::last_location_symm, blender::ed::sculpt_paint::StrokeCache::location_symm, node, blender::math::normalize(), blender::ed::sculpt_paint::cloth::LocalData::positions, blender::ed::sculpt_paint::StrokeCache::radius, lexit::Vector< T >::resize(), blender::Object::runtime, blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Sculpt, blender::bke::ObjectRuntime::sculpt_session, blender::MutableSpan< T >::size(), blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, blender::ed::sculpt_paint::cloth::LocalData::translations, blender::ed::sculpt_paint::translations_from_offset_and_factors(), blender::ed::sculpt_paint::cloth::LocalData::vert_indices, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by calc_forces_grids(), and cloth_brush_apply_brush_forces().
|
static |
Definition at line 770 of file sculpt_cloth.cc.
References blender::ed::sculpt_paint::auto_mask::active_cache_get(), apply_forces(), apply_grab_brush(), blender::ed::sculpt_paint::apply_hardness_to_distances(), apply_snake_hook_brush(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::BRUSH_CLOTH_DEFORM_DRAG, blender::BRUSH_CLOTH_DEFORM_EXPAND, blender::BRUSH_CLOTH_DEFORM_GRAB, blender::BRUSH_CLOTH_DEFORM_INFLATE, blender::BRUSH_CLOTH_DEFORM_PINCH_PERPENDICULAR, blender::BRUSH_CLOTH_DEFORM_PINCH_POINT, blender::BRUSH_CLOTH_DEFORM_PUSH, blender::BRUSH_CLOTH_DEFORM_SNAKE_HOOK, blender::BRUSH_FRONTFACE, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), calc_brush_simulation_falloff(), blender::ed::sculpt_paint::calc_brush_strength_factors(), blender::ed::sculpt_paint::calc_brush_texture_factors(), calc_distances_to_plane(), calc_forces_mesh(), blender::ed::sculpt_paint::calc_front_face(), calc_perpendicular_pinch_forces(), calc_pinch_forces(), calc_plane_pinch_forces(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::StrokeCache::cloth_sim, expand_length_constraints(), blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::cloth::SimulationData::init_pos, blender::math::is_zero(), blender::ed::sculpt_paint::StrokeCache::last_location_symm, blender::ed::sculpt_paint::StrokeCache::location_symm, blender::ed::sculpt_paint::MeshAttributeData::mask, node, blender::math::normalize(), blender::ed::sculpt_paint::StrokeCache::radius, blender::Object::runtime, blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Sculpt, blender::bke::ObjectRuntime::sculpt_session, blender::Span< T >::size(), blender::ed::sculpt_paint::translations_from_offset_and_factors(), and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by calc_forces_mesh(), and cloth_brush_apply_brush_forces().
|
static |
Definition at line 2062 of file sculpt_cloth.cc.
References BLI_NOINLINE, calc_gravity_forces(), blender::MutableSpan< T >::index_range(), blender::ed::sculpt_paint::filter::Cache::orientation, blender::ed::sculpt_paint::filter::to_object_space(), and blender::ed::sculpt_paint::filter::View.
Referenced by apply_filter_forces_bmesh(), apply_filter_forces_grids(), apply_filter_forces_mesh(), and calc_gravity_forces().
|
static |
Definition at line 738 of file sculpt_cloth.cc.
References BLI_NOINLINE, calc_perpendicular_pinch_forces(), blender::math::dot(), blender::Editor, blender::Span< T >::index_range(), blender::math::normalize(), PRF_scope, blender::MatBase< T, NumCol, NumRow, Alignment >::x_axis(), and blender::MatBase< T, NumCol, NumRow, Alignment >::z_axis().
Referenced by calc_forces_bmesh(), calc_forces_grids(), calc_forces_mesh(), and calc_perpendicular_pinch_forces().
|
static |
Definition at line 716 of file sculpt_cloth.cc.
References BLI_NOINLINE, calc_pinch_forces(), blender::Editor, blender::MutableSpan< T >::index_range(), blender::math::normalize(), and PRF_scope.
Referenced by apply_filter_forces_bmesh(), apply_filter_forces_grids(), apply_filter_forces_mesh(), calc_forces_bmesh(), calc_forces_grids(), calc_forces_mesh(), and calc_pinch_forces().
|
static |
Definition at line 726 of file sculpt_cloth.cc.
References BLI_NOINLINE, calc_plane_pinch_forces(), blender::dist_signed_to_plane_v3(), distance(), blender::Editor, blender::Span< T >::index_range(), blender::math::normalize(), and PRF_scope.
Referenced by calc_forces_bmesh(), calc_forces_grids(), calc_forces_mesh(), and calc_plane_pinch_forces().
|
static |
Definition at line 86 of file sculpt_cloth.cc.
References BM_elem_index_get, calc_vert_indices_bmesh(), blender::Editor, PRF_scope, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), and blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size().
Referenced by apply_filter_forces_bmesh(), calc_forces_bmesh(), calc_vert_indices_bmesh(), and do_simulation_step().
|
static |
Definition at line 71 of file sculpt_cloth.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), calc_vert_indices_grids(), blender::Editor, blender::array_utils::fill_index_range(), blender::CCGKey::grid_area, blender::Span< T >::index_range(), PRF_scope, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), and blender::Span< T >::size().
Referenced by apply_filter_forces_grids(), calc_forces_grids(), calc_vert_indices_grids(), calc_visible_vert_indices_grids(), and do_simulation_step().
|
static |
Definition at line 157 of file sculpt_cloth.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::bm, BM_elem_index_get, blender::BM_vert_at_index(), calc_vert_neighbor_indices_bmesh(), blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), blender::Editor, blender::Span< T >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), PRF_scope, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and blender::ed::sculpt_paint::vert_neighbors_get_bmesh().
Referenced by calc_vert_neighbor_indices_bmesh(), and ensure_nodes_constraints().
|
static |
Definition at line 131 of file sculpt_cloth.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_subdiv_ccg_key_top_level(), blender::BKE_subdiv_ccg_neighbor_coords_get(), calc_vert_neighbor_indices_grids(), blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), blender::SubdivCCGNeighbors::coords, blender::Editor, blender::SubdivCCGCoord::from_index(), blender::Span< T >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), PRF_scope, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and blender::SubdivCCGCoord::to_index().
Referenced by calc_vert_neighbor_indices_grids(), and ensure_nodes_constraints().
|
static |
Definition at line 118 of file sculpt_cloth.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BM_elem_flag_test, blender::BM_ELEM_HIDDEN, BM_elem_index_get, calc_visible_vert_indices_bmesh(), blender::Editor, PRF_scope, blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), and blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size().
Referenced by calc_visible_vert_indices_bmesh(), and ensure_nodes_constraints().
|
static |
Definition at line 99 of file sculpt_cloth.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), calc_vert_indices_grids(), calc_visible_vert_indices_grids(), blender::Editor, blender::bits::foreach_0_index(), blender::CCGKey::grid_area, blender::Span< T >::index_range(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), PRF_scope, blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), and blender::Span< T >::size().
Referenced by calc_visible_vert_indices_grids(), and ensure_nodes_constraints().
|
static |
Definition at line 673 of file sculpt_cloth.cc.
References BLI_NOINLINE, clamp_factors(), blender::Editor, max, min, and PRF_scope.
Referenced by apply_grab_brush(), and clamp_factors().
|
static |
Definition at line 356 of file sculpt_cloth.cc.
References cloth_brush_add_deformation_constraint(), blender::ed::sculpt_paint::cloth::SimulationData::deformation_pos, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_index_a, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_index_b, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_position_a, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_position_b, blender::ed::sculpt_paint::cloth::LengthConstraint::length, blender::ed::sculpt_paint::cloth::SimulationData::length_constraints, blender::ed::sculpt_paint::cloth::LengthConstraint::node, blender::ed::sculpt_paint::cloth::SimulationData::pos, SCULPT_CLOTH_CONSTRAINT_DEFORMATION, blender::ed::sculpt_paint::cloth::LengthConstraint::strength, blender::ed::sculpt_paint::cloth::LengthConstraint::type, and blender::v.
Referenced by add_constraints_for_verts(), and cloth_brush_add_deformation_constraint().
|
static |
Definition at line 286 of file sculpt_cloth.cc.
References cloth_brush_add_length_constraint(), blender::math::distance(), blender::ed::sculpt_paint::cloth::LengthConstraint::elem_index_a, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_index_b, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_position_a, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_position_b, blender::ed::sculpt_paint::cloth::LengthConstraint::length, blender::ed::sculpt_paint::cloth::SimulationData::length_constraints, blender::ed::sculpt_paint::cloth::LengthConstraint::node, blender::ed::sculpt_paint::cloth::SimulationData::pos, SCULPT_CLOTH_CONSTRAINT_STRUCTURAL, blender::ed::sculpt_paint::cloth::LengthConstraint::strength, blender::ed::sculpt_paint::cloth::LengthConstraint::type, and blender::v2.
Referenced by add_constraints_for_verts(), and cloth_brush_add_length_constraint().
|
static |
Definition at line 333 of file sculpt_cloth.cc.
References cloth_brush_add_pin_constraint(), blender::ed::sculpt_paint::cloth::LengthConstraint::elem_index_a, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_index_b, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_position_a, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_position_b, blender::ed::sculpt_paint::cloth::SimulationData::init_pos, blender::ed::sculpt_paint::cloth::LengthConstraint::length, blender::ed::sculpt_paint::cloth::SimulationData::length_constraints, blender::ed::sculpt_paint::cloth::LengthConstraint::node, blender::ed::sculpt_paint::cloth::SimulationData::pos, SCULPT_CLOTH_CONSTRAINT_PIN, blender::ed::sculpt_paint::cloth::LengthConstraint::strength, blender::ed::sculpt_paint::cloth::LengthConstraint::type, and blender::v.
Referenced by add_constraints_for_verts(), and cloth_brush_add_pin_constraint().
|
static |
Definition at line 310 of file sculpt_cloth.cc.
References cloth_brush_add_softbody_constraint(), blender::ed::sculpt_paint::cloth::LengthConstraint::elem_index_a, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_index_b, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_position_a, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_position_b, blender::ed::sculpt_paint::cloth::LengthConstraint::length, blender::ed::sculpt_paint::cloth::SimulationData::length_constraints, blender::ed::sculpt_paint::cloth::LengthConstraint::node, blender::ed::sculpt_paint::cloth::SimulationData::pos, SCULPT_CLOTH_CONSTRAINT_SOFTBODY, blender::ed::sculpt_paint::cloth::SimulationData::softbody_pos, blender::ed::sculpt_paint::cloth::LengthConstraint::strength, blender::ed::sculpt_paint::cloth::LengthConstraint::type, and blender::v.
Referenced by add_constraints_for_verts(), and cloth_brush_add_softbody_constraint().
|
static |
Definition at line 1571 of file sculpt_cloth.cc.
References blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::BRUSH_CLOTH_DEFORM_GRAB, blender::BRUSH_CLOTH_DEFORM_PINCH_PERPENDICULAR, blender::BRUSH_CLOTH_DEFORM_PUSH, blender::BRUSH_CLOTH_DEFORM_SNAKE_HOOK, blender::BRUSH_CLOTH_FORCE_FALLOFF_PLANE, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_plane(), calc_forces_bmesh(), calc_forces_grids(), calc_forces_mesh(), cloth_brush_apply_brush_forces(), cloth_brush_simulation_location_get(), blender::ed::sculpt_paint::StrokeCache::cloth_sim, blender::math::cross(), blender::Object::data, ELEM, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::exec_mode::grain_size(), blender::ed::sculpt_paint::StrokeCache::gravity_direction_symm, blender::Sculpt::gravity_factor, 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::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, blender::math::normalize(), blender::normalize_m4(), blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::plane_from_point_normal_v3(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::ed::sculpt_paint::StrokeCache::radius, blender::Object::runtime, blender::ed::sculpt_paint::StrokeCache::scale, blender::ed::sculpt_paint::StrokeCache::sculpt_normal_symm, blender::bke::ObjectRuntime::sculpt_session, blender::ed::sculpt_paint::StrokeCache::stroke_local_mat, blender::ed::sculpt_paint::StrokeCache::supports_gravity, blender::bke::pbvh::vert_normals_eval(), blender::bke::pbvh::vert_positions_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 cloth_brush_apply_brush_forces(), and do_cloth_brush().
|
static |
Definition at line 1098 of file sculpt_cloth.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BKE_modifiers_findby_type(), blender::CollisionModifierData::bvhtree, cloth_brush_collider_cache_create(), blender::collision_move_object(), blender::ColliderCache::collmd, blender::DEG_ITER_OBJECT_FLAG_DUPLI, blender::DEG_ITER_OBJECT_FLAG_LINKED_DIRECTLY, blender::DEG_ITER_OBJECT_FLAG_VISIBLE, DEG_OBJECT_ITER_BEGIN, DEG_OBJECT_ITER_END, blender::DEGObjectIterSettings::depsgraph, blender::eModifierType_Collision, blender::DEGObjectIterSettings::flags, blender::ColliderCache::ob, and STREQ.
Referenced by brush_simulation_create(), and cloth_brush_collider_cache_create().
|
static |
Definition at line 1136 of file sculpt_cloth.cc.
References cloth_brush_collision_cb(), blender::BVHTreeRayHit::co, blender::ed::sculpt_paint::cloth::ClothBrushCollision::col_data, blender::copy_v3_v3(), blender::BVHTreeRay::direction, blender::BVHTreeRayHit::dist, float, blender::BVHTreeRayHit::index, blender::ed::sculpt_paint::cloth::ClothBrushCollision::isect_precalc, blender::isect_ray_tri_watertight_v3(), blender::madd_v3_v3v3fl(), blender::BVHTreeRayHit::no, blender::normal_tri_v3(), blender::BVHTreeRay::origin, UNPACK3, blender::CollisionModifierData::vert_tris, and blender::CollisionModifierData::x.
Referenced by cloth_brush_collision_cb(), and cloth_brush_solve_collision().
|
static |
Definition at line 1362 of file sculpt_cloth.cc.
References calc_constraint_factors(), cloth_brush_satisfy_constraints(), cloth_brush_simulation_location_get(), CLOTH_SIMULATION_ITERATIONS, CLOTH_SOLVER_DISPLACEMENT_FACTOR, blender::ed::sculpt_paint::cloth::SimulationData::deformation_strength, blender::Editor, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_index_a, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_index_b, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_position_a, blender::ed::sculpt_paint::cloth::LengthConstraint::elem_position_b, blender::ed::sculpt_paint::cloth::SimulationData::init_pos, blender::ed::sculpt_paint::cloth::LengthConstraint::length, blender::math::length(), blender::ed::sculpt_paint::cloth::SimulationData::length_constraint_tweak, blender::ed::sculpt_paint::cloth::SimulationData::length_constraints, blender::ed::sculpt_paint::cloth::LengthConstraint::node, blender::ed::sculpt_paint::cloth::SimulationData::node_state, blender::ed::sculpt_paint::cloth::SimulationData::pos, PRF_scope, SCULPT_CLOTH_CONSTRAINT_DEFORMATION, SCULPT_CLOTH_CONSTRAINT_SOFTBODY, SCULPT_CLOTH_NODE_ACTIVE, blender::ed::sculpt_paint::cloth::SimulationData::softbody_pos, blender::ed::sculpt_paint::cloth::LengthConstraint::strength, blender::ed::sculpt_paint::cloth::LengthConstraint::type, blender::v2, and blender::ed::sculpt_paint::vertex_count_get().
Referenced by cloth_brush_satisfy_constraints(), and do_simulation_step().
|
static |
Definition at line 231 of file sculpt_cloth.cc.
References blender::BRUSH_CLOTH_SIMULATION_AREA_GLOBAL, cloth_brush_simulation_falloff_get(), blender::math::distance(), distance(), and blender::SCULPT_BRUSH_TYPE_CLOTH.
Referenced by add_constraints_for_verts(), calc_brush_simulation_falloff(), and cloth_brush_simulation_falloff_get().
|
static |
Definition at line 179 of file sculpt_cloth.cc.
References blender::BRUSH_CLOTH_SIMULATION_AREA_LOCAL, blender::SculptSession::cache, cloth_brush_simulation_location_get(), blender::ed::sculpt_paint::StrokeCache::initial_location_symm, and blender::ed::sculpt_paint::StrokeCache::location_symm.
Referenced by cloth_brush_apply_brush_forces(), cloth_brush_satisfy_constraints(), cloth_brush_simulation_location_get(), do_simulation_step(), and sculpt_cloth_ensure_constraints_in_simulation_area().
|
static |
Definition at line 1166 of file sculpt_cloth.cc.
References blender::BLI_bvhtree_ray_cast_ex(), BVH_RAYCAST_DEFAULT, blender::BVH_RAYCAST_WATERTIGHT, blender::CollisionModifierData::bvhtree, blender::closest_to_plane_v3(), cloth_brush_collision_cb(), cloth_brush_solve_collision(), blender::BVHTreeRayHit::co, blender::ed::sculpt_paint::cloth::ClothBrushCollision::col_data, blender::ed::sculpt_paint::cloth::SimulationData::collider_list, blender::ColliderCache::collmd, blender::BVHTreeRayHit::dist, blender::BVHTreeRayHit::index, blender::ed::sculpt_paint::cloth::ClothBrushCollision::isect_precalc, blender::isect_ray_tri_watertight_v3_precalc(), blender::ed::sculpt_paint::cloth::SimulationData::last_iteration_pos, blender::BVHTreeRayHit::no, blender::math::normalize_and_get_length(), blender::plane_from_point_normal_v3(), blender::ed::sculpt_paint::cloth::SimulationData::pos, and blender::math::transform_point().
Referenced by cloth_brush_solve_collision(), and solve_verts_simulation().
|
static |
Definition at line 2057 of file sculpt_cloth.cc.
References cloth_filter_is_deformation_filter(), ELEM, and Scale.
Referenced by cloth_filter_is_deformation_filter(), and sculpt_cloth_filter_invoke().
|
static |
Definition at line 1706 of file sculpt_cloth.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::bke::pbvh::BMesh, cloth_sim_initialize_default_node_state(), blender::index_mask::IndexMask::foreach_index(), blender::bke::pbvh::Grids, blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::cloth::SimulationData::node_state, blender::ed::sculpt_paint::cloth::SimulationData::node_state_index, blender::bke::object::pbvh_get(), and SCULPT_CLOTH_NODE_UNINITIALIZED.
Referenced by brush_simulation_create(), and cloth_sim_initialize_default_node_state().
|
static |
Definition at line 1753 of file sculpt_cloth.cc.
References blender::SculptSession::bm, blender::BM_mesh_vert_normals_get(), blender::bke::pbvh::BMesh, blender::MutableSpan< T >::copy_from(), copy_normals_to_array(), blender::bke::pbvh::Grids, blender::bke::pbvh::Mesh, blender::SubdivCCG::normals, blender::bke::object::pbvh_get(), blender::SculptSession::subdiv_ccg, and blender::bke::pbvh::vert_normals_eval().
Referenced by brush_simulation_create(), and copy_normals_to_array().
|
static |
Definition at line 1732 of file sculpt_cloth.cc.
References blender::SculptSession::bm, blender::BM_mesh_vert_coords_get(), blender::bke::pbvh::BMesh, blender::MutableSpan< T >::copy_from(), copy_positions_to_array(), blender::bke::pbvh::Grids, blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), blender::SubdivCCG::positions, blender::SculptSession::subdiv_ccg, and blender::bke::pbvh::vert_positions_eval().
Referenced by brush_simulation_create(), brush_store_simulation_state(), and copy_positions_to_array().
| void blender::ed::sculpt_paint::cloth::do_cloth_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 1877 of file sculpt_cloth.cc.
References blender::BKE_paint_brush_for_read(), blender::BRUSH_CLOTH_SIMULATION_AREA_LOCAL, blender::BRUSH_CLOTH_USE_COLLISION, brush_simulation_create(), brush_store_simulation_state(), blender::SculptSession::cache, cloth_brush_apply_brush_forces(), blender::ed::sculpt_paint::StrokeCache::cloth_sim, do_cloth_brush(), do_simulation_step(), blender::Editor, is_cloth_deform_brush(), blender::Sculpt::paint, PRF_scope, blender::Object::runtime, sculpt_cloth_ensure_constraints_in_simulation_area(), blender::bke::ObjectRuntime::sculpt_session, sim_activate_nodes(), and blender::ed::sculpt_paint::stroke_is_first_brush_step_of_symmetry_pass().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_cloth_brush().
| void blender::ed::sculpt_paint::cloth::do_simulation_step | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | object, | ||
| SimulationData & | cloth_sim, | ||
| const IndexMask & | node_mask ) |
Definition at line 1434 of file sculpt_cloth.cc.
References blender::ed::sculpt_paint::auto_mask::active_cache_get(), blender::BKE_paint_brush_for_read(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::BKE_subdiv_ccg_key_top_level(), blender::bm, blender::SculptSession::bm, BM_elem_index_get, blender::bke::pbvh::BMesh, blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), calc_vert_indices_bmesh(), calc_vert_indices_grids(), blender::ed::sculpt_paint::clip_and_lock_translations(), cloth_brush_satisfy_constraints(), cloth_brush_simulation_location_get(), blender::MutableSpan< T >::copy_from(), blender::copy_v3_v3(), blender::data, do_simulation_step(), blender::Editor, blender::ed::sculpt_paint::cloth::LocalData::factors, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::IndexMask::from_predicate(), blender::exec_mode::grain_size(), blender::CCGKey::grid_area, blender::bke::ccg::grid_range(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::Span< T >::index_range(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::cloth::SimulationData::node_state, blender::ed::sculpt_paint::cloth::SimulationData::node_state_index, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::cloth::SimulationData::pos, PRF_scope, lexit::Vector< T >::resize(), SCULPT_CLOTH_NODE_ACTIVE, SCULPT_CLOTH_NODE_INACTIVE, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Span< T >::size(), blender::MutableSpan< T >::slice(), blender::Span< T >::slice(), solve_verts_simulation(), blender::SculptSession::subdiv_ccg, blender::ed::sculpt_paint::cloth::LocalData::translations, 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::cloth::LocalData::vert_indices.
Referenced by blender::ed::sculpt_paint::do_brush_action(), do_cloth_brush(), do_simulation_step(), and sculpt_cloth_filter_modal().
| void blender::ed::sculpt_paint::cloth::ensure_nodes_constraints | ( | const Sculpt & | sd, |
| Object & | object, | ||
| const IndexMask & | node_mask, | ||
| SimulationData & | cloth_sim, | ||
| const float3 & | initial_location, | ||
| const float | radius ) |
Definition at line 493 of file sculpt_cloth.cc.
References add_constraints_for_verts(), blender::BKE_paint_brush_for_read(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::BKE_subdiv_ccg_key_top_level(), blender::bm, blender::SculptSession::bm, blender::bke::pbvh::BMesh, blender::BRUSH_PERSISTENT, calc_vert_neighbor_indices_bmesh(), calc_vert_neighbor_indices_grids(), blender::ed::sculpt_paint::calc_vert_neighbors(), calc_visible_vert_indices_bmesh(), calc_visible_vert_indices_grids(), blender::data, blender::Editor, ensure_nodes_constraints(), blender::bke::Face, blender::IndexMask::from_predicate(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::cloth::SimulationData::init_pos, blender::blender::Span< T >::is_empty(), blender::Span< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::cloth::SimulationData::node_state, blender::ed::sculpt_paint::cloth::SimulationData::node_state_index, blender::ed::sculpt_paint::hide::node_visible_verts(), blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::SculptSession::persistent_multires_data(), blender::bke::Point, PRF_scope, SCULPT_CLOTH_NODE_UNINITIALIZED, blender::SculptSession::subdiv_ccg, and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by blender::ed::sculpt_paint::do_brush_action(), ensure_nodes_constraints(), sculpt_cloth_ensure_constraints_in_simulation_area(), and sculpt_cloth_filter_invoke().
|
static |
Definition at line 652 of file sculpt_cloth.cc.
References BLI_NOINLINE, blender::Editor, expand_length_constraints(), blender::Span< T >::index_range(), blender::ed::sculpt_paint::cloth::SimulationData::length_constraint_tweak, and PRF_scope.
Referenced by apply_filter_forces_bmesh(), apply_filter_forces_grids(), apply_filter_forces_mesh(), calc_forces_bmesh(), calc_forces_grids(), calc_forces_mesh(), and expand_length_constraints().
| bool blender::ed::sculpt_paint::cloth::is_cloth_deform_brush | ( | const Brush & | brush | ) |
Definition at line 221 of file sculpt_cloth.cc.
References blender::BRUSH_CLOTH_DEFORM_GRAB, blender::BRUSH_CLOTH_DEFORM_SNAKE_HOOK, blender::BRUSH_DEFORM_TARGET_CLOTH_SIM, ELEM, is_cloth_deform_brush(), and blender::SCULPT_BRUSH_TYPE_CLOTH.
Referenced by add_constraints_for_verts(), do_cloth_brush(), is_cloth_deform_brush(), blender::ed::sculpt_paint::paint_brush_type_require_location(), blender::ed::sculpt_paint::paint_space_stroke_enabled(), blender::ed::sculpt_paint::paint_space_stroke_spacing(), and blender::ed::sculpt_paint::stroke_cache_update().
| void blender::ed::sculpt_paint::cloth::plane_falloff_preview_draw | ( | const uint | gpuattr, |
| Brush & | brush, | ||
| SculptSession & | ss, | ||
| const float | outline_col[3], | ||
| float | outline_alpha ) |
Definition at line 1961 of file sculpt_cloth.cc.
References blender::add_v3_v3v3(), blender::BRUSH_CLOTH_DEFORM_GRAB, blender::SculptSession::cache, blender::GPU_line_width(), blender::GPU_matrix_mul(), blender::GPU_PRIM_LINES, blender::GPU_PRIM_TRIS, blender::ed::sculpt_paint::StrokeCache::grab_delta, blender::immBegin(), blender::immEnd(), blender::immUniformColor3fvAlpha(), blender::immVertex3f(), blender::ed::sculpt_paint::StrokeCache::location, plane_falloff_preview_draw(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::ed::sculpt_paint::StrokeCache::radius, and blender::ed::sculpt_paint::StrokeCache::stroke_local_mat.
Referenced by blender::ed::sculpt_paint::mesh_cursor_active_draw(), and plane_falloff_preview_draw().
|
static |
Definition at line 1865 of file sculpt_cloth.cc.
References blender::BKE_paint_brush_for_read(), blender::SculptSession::cache, cloth_brush_simulation_location_get(), blender::ed::sculpt_paint::StrokeCache::cloth_sim, ensure_nodes_constraints(), blender::ed::sculpt_paint::StrokeCache::initial_radius, blender::Sculpt::paint, blender::Object::runtime, sculpt_cloth_ensure_constraints_in_simulation_area(), and blender::bke::ObjectRuntime::sculpt_session.
Referenced by do_cloth_brush(), and sculpt_cloth_ensure_constraints_in_simulation_area().
|
static |
Definition at line 2447 of file sculpt_cloth.cc.
References blender::ed::sculpt_paint::filter::Cache::active_face_set, blender::ed::sculpt_paint::face_set::active_face_set_get(), blender::SculptSession::active_vert_position(), blender::BKE_base_is_visible(), blender::BKE_sculptsession_update_for_edit(), brush_simulation_create(), C, blender::ed::sculpt_paint::filter::cache_init(), CLOTH_FILTER_FORCE_X, CLOTH_FILTER_FORCE_Y, CLOTH_FILTER_FORCE_Z, cloth_filter_is_deformation_filter(), blender::ed::sculpt_paint::filter::Cache::cloth_sim, blender::ed::sculpt_paint::filter::Cache::cloth_sim_pinch_point, blender::CTX_data_active_base(), blender::CTX_data_active_object(), blender::CTX_data_ensure_evaluated_depsgraph(), 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, ensure_nodes_constraints(), blender::SculptSession::filter_cache, blender::ed::sculpt_paint::auto_mask::filter_cache_ensure(), float, FLT_MAX, blender::ed::sculpt_paint::auto_mask::is_enabled(), blender::wmEvent::mval, blender::ed::sculpt_paint::filter::Cache::node_mask, blender::OPERATOR_CANCELLED, blender::OPERATOR_RUNNING_MODAL, blender::ed::sculpt_paint::filter::Cache::orientation, blender::Sculpt::paint, blender::ed::sculpt_paint::undo::Position, blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::wmOperator::reports, blender::RNA_boolean_get(), blender::RNA_enum_get(), blender::RNA_float_get(), blender::Object::runtime, blender::ToolSettings::sculpt, sculpt_cloth_filter_invoke(), blender::bke::ObjectRuntime::sculpt_session, blender::ed::sculpt_paint::shape_key_check(), and blender::WM_event_add_modal_handler().
Referenced by sculpt_cloth_filter_invoke(), and SCULPT_OT_cloth_filter().
|
static |
Definition at line 2318 of file sculpt_cloth.cc.
References apply_filter_forces_bmesh(), apply_filter_forces_grids(), apply_filter_forces_mesh(), blender::ed::sculpt_paint::filter::Cache::automasking, blender::BKE_sculptsession_update_for_edit(), blender::bke::pbvh::BMesh, blender::BRUSH_AUTOMASKING_CAVITY_ALL, brush_store_simulation_state(), C, blender::ed::sculpt_paint::filter::Cache::cloth_sim, blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::CTX_data_tool_settings(), blender::data, do_simulation_step(), blender::bke::Face, blender::SculptSession::filter_cache, blender::ed::sculpt_paint::flush_update_done(), blender::ed::sculpt_paint::flush_update_step(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::Sculpt::gravity_factor, blender::Sculpt::gravity_object, blender::bke::pbvh::Grids, blender::ed::sculpt_paint::auto_mask::is_enabled(), blender::KM_RELEASE, blender::LEFTMOUSE, len(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), blender::bke::pbvh::Mesh, blender::MOUSEMOVE, blender::ed::sculpt_paint::filter::Cache::node_mask, blender::OPERATOR_FINISHED, blender::OPERATOR_RUNNING_MODAL, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::Position, blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_end(), blender::RNA_enum_get(), blender::RNA_float_get(), blender::ToolSettings::sculpt, sculpt_cloth_filter_modal(), sim_activate_nodes(), blender::wmEvent::type, UI_SCALE_FAC, blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), blender::bke::pbvh::update_node_bounds_mesh(), blender::wmEvent::val, blender::bke::pbvh::vert_normals_eval(), blender::bke::pbvh::vert_positions_eval(), and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by sculpt_cloth_filter_modal(), and SCULPT_OT_cloth_filter().
| void blender::ed::sculpt_paint::cloth::SCULPT_OT_cloth_filter | ( | wmOperatorType * | ot | ) |
Definition at line 2526 of file sculpt_cloth.cc.
References BLT_I18NCONTEXT_OPERATOR_DEFAULT, CLOTH_FILTER_FORCE_X, CLOTH_FILTER_FORCE_Y, CLOTH_FILTER_FORCE_Z, blender::wmOperatorType::description, blender::wmOperatorType::flag, Gravity, blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::ed::sculpt_paint::filter::Local, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, prop_cloth_filter_force_axis_items, prop_cloth_filter_orientation_items, prop_cloth_filter_type, blender::ed::sculpt_paint::filter::register_operator_props(), blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::RNA_def_enum_flag(), blender::RNA_def_float(), blender::RNA_def_property_translation_context(), sculpt_cloth_filter_invoke(), sculpt_cloth_filter_modal(), blender::ed::sculpt_paint::sculpt_mode_poll(), SCULPT_OT_cloth_filter(), and blender::wmOperatorType::srna.
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_cloth_filter().
| void blender::ed::sculpt_paint::cloth::sim_activate_nodes | ( | Object & | object, |
| SimulationData & | cloth_sim, | ||
| const IndexMask & | node_mask ) |
Definition at line 1831 of file sculpt_cloth.cc.
References blender::bke::pbvh::BMesh, blender::Editor, blender::index_mask::IndexMask::foreach_index(), blender::bke::pbvh::Grids, blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::cloth::SimulationData::node_state, blender::ed::sculpt_paint::cloth::SimulationData::node_state_index, blender::bke::object::pbvh_get(), PRF_scope, SCULPT_CLOTH_NODE_ACTIVE, and sim_activate_nodes().
Referenced by blender::ed::sculpt_paint::do_brush_action(), do_cloth_brush(), sculpt_cloth_filter_modal(), and sim_activate_nodes().
| void blender::ed::sculpt_paint::cloth::simulation_limits_draw | ( | uint | gpuattr, |
| const Brush & | brush, | ||
| const float | location[3], | ||
| const float | normal[3], | ||
| float | rds, | ||
| float | line_width, | ||
| const float | outline_col[3], | ||
| float | alpha ) |
Cursor drawing function.
Definition at line 1932 of file sculpt_cloth.cc.
References blender::GPU_line_width(), blender::GPU_matrix_mul(), blender::GPU_matrix_pop(), blender::GPU_matrix_push(), blender::imm_draw_circle_dashed_3d(), blender::imm_draw_circle_wire_3d(), blender::immUniformColor3fvAlpha(), blender::quat_to_mat4(), blender::rotation_between_vecs_to_quat(), simulation_limits_draw(), blender::translate_m4(), and blender::unit_m4().
Referenced by blender::ed::sculpt_paint::cursor_space_overlays_draw(), blender::ed::sculpt_paint::mesh_cursor_active_draw(), and simulation_limits_draw().
|
static |
Definition at line 1218 of file sculpt_cloth.cc.
References blender::ed::sculpt_paint::cloth::SimulationData::acceleration, blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), BLI_NOINLINE, blender::SculptSession::cache, calc_brush_simulation_falloff(), cloth_brush_solve_collision(), CLOTH_SIMULATION_TIME_STEP, blender::ed::sculpt_paint::cloth::SimulationData::damping, blender::ed::sculpt_paint::cloth::LocalData::diffs, blender::Editor, blender::ed::sculpt_paint::gather_data_mesh(), blender::Span< T >::index_range(), blender::ed::sculpt_paint::cloth::SimulationData::init_pos, blender::ed::sculpt_paint::cloth::SimulationData::last_iteration_pos, blender::ed::sculpt_paint::cloth::SimulationData::pos, blender::ed::sculpt_paint::cloth::LocalData::positions, blender::ed::sculpt_paint::cloth::SimulationData::prev_pos, PRF_scope, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scale_translations(), blender::Span< T >::size(), and solve_verts_simulation().
Referenced by do_simulation_step(), and solve_verts_simulation().
|
static |
Definition at line 2050 of file sculpt_cloth.cc.
Referenced by SCULPT_OT_cloth_filter().
|
static |
Definition at line 2025 of file sculpt_cloth.cc.
Referenced by SCULPT_OT_cloth_filter().
|
static |
Definition at line 2008 of file sculpt_cloth.cc.
Referenced by SCULPT_OT_cloth_filter().