tornavis/source/blender/blenlib
Jacques Lucke d67f9820b8 Curves: improve Comb brush
New supported features:
* 3D/spherical brush that samples a good position on the curves.
* Falloff.

The custom falloff curve mapping is not yet available in the ui because that
requires some more ui reorganization. This is better done when we have
a better understanding of what settings we need exactly.

Currently, the depth of the 3d brush is only sampled once per stroke, when
first pressing LMB. Sometimes it is expected that the depth of the brush can
change within a single brush. However, implementing that in a good way
is not straight forward and might need additional options. Therefore that
will be handled separately. Some experimentation results are in D14376.

Ref T96445.

Differential Revision: https://developer.blender.org/D14376
2022-03-23 18:19:59 +01:00
..
intern Curves: improve Comb brush 2022-03-23 18:19:59 +01:00
tests Cleanup: spelling in comments 2022-03-23 12:15:50 +11:00
BLI_alloca.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_allocator.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_any.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_args.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_array.h BLI_array: add BLI_array_trim utility to re-allocate the current size 2022-02-21 12:01:32 +11:00
BLI_array.hh BLI: support accessing nth last element in Array/Span/Vector 2022-02-24 14:50:13 +01:00
BLI_array_store.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_array_store_utils.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_array_utils.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_asan.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_assert.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_astar.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_bitmap.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_bitmap_draw_2d.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_blenlib.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_bounds.hh License headers: use SPDX identifiers 2022-02-17 16:47:37 +11:00
BLI_boxpack_2d.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_buffer.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_color.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_compiler_attrs.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_compiler_compat.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_compiler_typecheck.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_console.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_convexhull_2d.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_cpp_type.hh BLI: generalize converting CPPType to static type 2022-03-19 10:57:40 +01:00
BLI_cpp_type_make.hh BLI: move CPPType to blenlib 2022-03-18 10:57:45 +01:00
BLI_delaunay_2d.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_dial_2d.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_disjoint_set.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_dlrbTree.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_dot_export.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_dot_export_attribute_enums.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_dynlib.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_dynstr.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_easing.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_edgehash.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_endian_defines.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_endian_switch.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_endian_switch_inline.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_enumerable_thread_specific.hh Fix: Build issue on windows 2022-02-23 12:27:02 -07:00
BLI_expr_pylike_eval.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_fileops.h Cleanup: spelling in comments 2022-03-08 14:32:34 +11:00
BLI_fileops.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_fileops_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_filereader.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_float4x4.hh BLI: Change dependencies in vector math files 2022-02-15 10:27:03 -06:00
BLI_fnmatch.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_function_ref.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_generic_array.hh BLI: move generic data structures to blenlib 2022-03-19 08:26:29 +01:00
BLI_generic_pointer.hh BLI: move generic data structures to blenlib 2022-03-19 08:26:29 +01:00
BLI_generic_span.hh BLI: move generic data structures to blenlib 2022-03-19 08:26:29 +01:00
BLI_generic_value_map.hh BLI: move generic data structures to blenlib 2022-03-19 08:26:29 +01:00
BLI_generic_vector_array.hh BLI: move generic data structures to blenlib 2022-03-19 08:26:29 +01:00
BLI_generic_virtual_array.hh BLI: move generic data structures to blenlib 2022-03-19 08:26:29 +01:00
BLI_generic_virtual_vector_array.hh BLI: move generic data structures to blenlib 2022-03-19 08:26:29 +01:00
BLI_ghash.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_gsqueue.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_hash.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_hash.hh Curves: add brush to add curves on surface 2022-03-02 17:15:44 +01:00
BLI_hash_md5.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_hash_mm2a.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_hash_mm3.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_hash_tables.hh Fix: Attempt to fix build error on windows 2022-02-23 13:02:06 -05:00
BLI_heap.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_heap_simple.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_index_mask.hh BLI: add index mask utilities 2022-02-23 11:14:07 +01:00
BLI_index_mask_ops.hh Curves: initial brush implementations for curves sculpt mode 2022-02-23 16:56:27 +01:00
BLI_index_range.hh BLI: Add functions to IndexRange to mirror Span 2022-03-03 11:14:44 -05:00
BLI_inplace_priority_queue.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_iterator.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_jitter_2d.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_kdopbvh.h Curves: new Add brush 2022-03-21 18:59:03 +01:00
BLI_kdtree.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_kdtree_impl.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_lasso_2d.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_linear_allocator.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_link_utils.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_linklist.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_linklist_lockfree.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_linklist_stack.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_listbase.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_listbase_wrapper.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_map.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_map_slots.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_base.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_base.hh BLI: Implement templated math functions for basic types 2022-02-16 10:28:26 -06:00
BLI_math_base_safe.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_bits.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_boolean.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_color.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_color_blend.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_geom.h Curves: improve Comb brush 2022-03-23 18:19:59 +01:00
BLI_math_inline.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_interp.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_matrix.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_mpq.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_rotation.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_solvers.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_statistics.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_time.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_vec_mpq_types.hh BLI: Change dependencies in vector math files 2022-02-15 10:27:03 -06:00
BLI_math_vec_types.hh Fix: Debug build error with vector type division 2022-02-17 12:36:41 -06:00
BLI_math_vector.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_math_vector.hh Fix: BLI math clamp doesn't work 2022-03-02 17:09:17 -05:00
BLI_memarena.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_memblock.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_memiter.h Cleanup: remove duplicate compiler attribute 2022-03-11 15:29:11 +11:00
BLI_memory_utils.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_memory_utils.hh BLI: add scoped-defer utility to add RAII-like behavior to C types 2022-03-02 12:51:21 +01:00
BLI_mempool.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_mesh_boolean.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_mesh_intersect.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_mmap.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_multi_value_map.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_noise.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_noise.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_path_util.h Cleanup: Remove repeated word in comments 2022-02-23 18:24:37 +11:00
BLI_polyfill_2d.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_polyfill_2d_beautify.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_probing_strategies.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_quadric.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_rand.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_rand.hh BLI: add probabilistic rounding utility 2022-03-17 12:48:41 +01:00
BLI_range.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_rect.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_resource_scope.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_scanfill.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_serialize.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_session_uuid.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_set.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_set_slots.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_simd.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_smallhash.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_sort.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_sort.hh Fix build when using WITH_TBB=OFF after recent changes 2022-03-22 01:30:19 +01:00
BLI_sort_utils.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_span.hh BLI: support accessing nth last element in Array/Span/Vector 2022-02-24 14:50:13 +01:00
BLI_stack.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_stack.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_strict_flags.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_string.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_string_cursor_utf8.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_string_ref.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_string_search.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_string_utf8.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_string_utils.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_sys_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_system.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_task.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_task.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_threads.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_timecode.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_timeit.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_timer.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_user_counter.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_utildefines.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_utildefines_iter.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_utildefines_stack.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_utildefines_variadic.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_utility_mixins.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_uuid.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_uvproject.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_vector.hh BLI: support accessing nth last element in Array/Span/Vector 2022-02-24 14:50:13 +01:00
BLI_vector_adaptor.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_vector_set.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_vector_set_slots.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_virtual_array.hh BLI: move generic data structures to blenlib 2022-03-19 08:26:29 +01:00
BLI_virtual_vector_array.hh File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_voronoi_2d.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_voxel.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
BLI_winstuff.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
CMakeLists.txt Fix build when using WITH_TBB=OFF after recent changes 2022-03-22 01:30:19 +01:00
PIL_time.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
PIL_time_utildefines.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00