|
Blender V5.3
|
Namespaces | |
| namespace | convert |
| namespace | tests |
Classes | |
| class | Drawing |
| class | DrawingReference |
| class | DrawingRuntime |
| struct | FillCache |
| class | Layer |
| class | LayerGroup |
| class | LayerGroupRuntime |
| class | LayerMask |
| class | LayerRuntime |
| struct | LayerTransformData |
| struct | ShapeData |
| class | TreeNode |
| struct | TriangleCache |
Typedefs | |
| using | FramesMapKeyT = int |
Functions | |
| void | copy_drawing_array (Span< const GreasePencilDrawingBase * > src_drawings, MutableSpan< GreasePencilDrawingBase * > dst_drawings) |
| TREENODE_COMMON_METHODS_FORWARD_IMPL (Layer) | |
| TREENODE_COMMON_METHODS_FORWARD_IMPL (LayerGroup) | |
| const AttributeAccessorFunctions & | get_attribute_accessor_functions () |
| void | ensure_non_empty_layer_names (Main &bmain, GreasePencil &grease_pencil) |
| std::optional< FillCache > | fill_cache_from_fill_ids (const VArray< int > &fill_ids) |
| ShapeData | shapes_from_fill_ids (const VArray< int > &fill_ids, int curves_num) |
| int | get_next_available_fill_id (Span< int > fill_ids) |
| int | get_next_available_fill_id (const VArray< int > &fill_ids) |
| void | gather_next_available_fill_ids (const VArray< int > &fill_ids, MutableSpan< int > r_new_fill_ids) |
| void | gather_next_available_fill_ids (const VArray< int > &fill_ids, const IndexMask &curve_mask, MutableSpan< int > r_new_fill_ids) |
| IndexMask | selected_mask_to_fills (const IndexMask &selected_mask, const CurvesGeometry &curves, AttrDomain selection_domain, IndexMaskMemory &memory) |
| IndexMask | curves_mask_to_shapes (const IndexMask &curve_mask, const GroupedSpan< int > shapes, IndexMaskMemory &memory) |
| void | separate_fill_ids (CurvesGeometry &curves, const IndexMask &strokes_to_keep) |
| static void | ensure_fill_cache (const Drawing &drawing) |
| static void | update_triangle_and_offsets_cache (const Span< float3 > positions, const Span< float3 > normals, const OffsetIndices< int > points_by_curve, const IndexMask &fill_mask, const GroupedSpan< int > fills, Vector< int3 > &r_triangles, MutableSpan< int > r_triangle_offsets, Vector< float3 > &r_intersection_points, MutableSpan< int > r_intersection_point_offsets) |
| static void | ensure_triangle_cache (const Drawing &drawing) |
| static void | update_curve_plane_normal_cache (const Span< float3 > positions, const OffsetIndices< int > points_by_curve, const IndexMask &curve_mask, MutableSpan< float3 > normals) |
| static float4x2 | get_local_to_stroke_matrix (const Span< float3 > positions, const float3 normal) |
| static float3x2 | get_stroke_to_texture_matrix (const float uv_rotation, const float2 uv_translation, const float2 uv_scale) |
| static float4x3 | expand_4x2_mat (const float4x2 &strokemat) |
| static IndexMask | curves_to_fills_mask (const IndexMask &curve_mask, const std::optional< GroupedSpan< int > > fills, const int num_curves, IndexMaskMemory &memory) |
| static void | update_triangle_and_offsets_changed (const Span< float3 > positions, const Span< float3 > normals, const OffsetIndices< int > dst_points_by_curve, const IndexMask &changed_curves, const std::optional< GroupedSpan< int > > fills, const GroupedSpan< int3 > src_triangles, const GroupedSpan< float3 > src_intersection_points, Vector< int3 > &r_triangles, MutableSpan< int > r_triangle_offsets, Vector< float3 > &r_intersection_points, MutableSpan< int > r_intersection_point_offsets) |
| static const auto & | changed_tags () |
| static const auto & | builtin_attributes () |
| static const auto & | array_storage_required () |
| static int | get_domain_size (const void *owner, const AttrDomain domain) |
| static AttributeAccessorFunctions | get_grease_pencil_accessor_functions () |
| static int | get_next_available_fill_id_from_max (const int max_fill_id) |
Vertex groups in drawings | |
| void | validate_drawing_vertex_groups (GreasePencil &grease_pencil) |
| int | ensure_vertex_group (StringRef name, ListBaseT< bDeformGroup > &vertex_group_names) |
| void | assign_to_vertex_group (Drawing &drawing, StringRef name, float weight) |
| void | assign_to_vertex_group_from_mask (CurvesGeometry &curves, const IndexMask &mask, StringRef name, float weight) |
| bool | remove_from_vertex_group (Drawing &drawing, StringRef name, bool use_selection) |
| void | clear_vertex_groups (GreasePencil &grease_pencil) |
Variables | |
| constexpr float | LEGACY_RADIUS_CONVERSION_FACTOR = 1.0f / 2000.0f |
| constexpr StringRef | ATTR_RADIUS = "radius" |
| constexpr StringRef | ATTR_OPACITY = "opacity" |
| constexpr StringRef | ATTR_VERTEX_COLOR = "vertex_color" |
| constexpr StringRef | ATTR_FILL_COLOR = "fill_color" |
| using blender::bke::greasepencil::FramesMapKeyT = int |
Definition at line 455 of file BKE_grease_pencil.hh.
|
static |
Definition at line 33 of file grease_pencil_attributes.cc.
References array_storage_required().
Referenced by array_storage_required(), and get_grease_pencil_accessor_functions().
| void blender::bke::greasepencil::assign_to_vertex_group | ( | Drawing & | drawing, |
| StringRef | name, | ||
| float | weight ) |
Assign selected vertices to the vertex group.
Definition at line 97 of file grease_pencil_vertex_groups.cc.
References assign_to_vertex_group(), blender::BKE_defgroup_name_index(), blender::BKE_defvert_ensure_index(), blender::BLI_addtail(), blender::BLI_assert(), blender::blender::StringRefBase::copy_utf8_truncated(), blender::MutableSpan< T >::index_range(), blender::bke::AttributeAccessor::lookup_or_default(), blender::bDeformGroup::name, blender::bke::Point, blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::MDeformWeight::weight.
Referenced by assign_to_vertex_group(), and blender::ed::object::vgroup_assign_verts().
| void blender::bke::greasepencil::assign_to_vertex_group_from_mask | ( | bke::CurvesGeometry & | curves, |
| const IndexMask & | mask, | ||
| StringRef | name, | ||
| float | weight ) |
Definition at line 67 of file grease_pencil_vertex_groups.cc.
References assign_to_vertex_group_from_mask(), blender::BKE_defgroup_name_index(), blender::BKE_defvert_ensure_index(), blender::BLI_addtail(), blender::BLI_assert(), blender::blender::StringRefBase::copy_utf8_truncated(), and blender::bDeformGroup::name.
Referenced by assign_to_vertex_group_from_mask(), and blender::ed::sculpt_paint::greasepencil::process_stroke_weights().
|
static |
Definition at line 24 of file grease_pencil_attributes.cc.
References builtin_attributes().
Referenced by builtin_attributes(), and get_grease_pencil_accessor_functions().
|
static |
Definition at line 18 of file grease_pencil_attributes.cc.
References changed_tags().
Referenced by changed_tags(), and get_grease_pencil_accessor_functions().
| void blender::bke::greasepencil::clear_vertex_groups | ( | GreasePencil & | grease_pencil | ) |
Remove vertices from all vertex groups.
Definition at line 158 of file grease_pencil_vertex_groups.cc.
References blender::BKE_defvert_clear(), clear_vertex_groups(), blender::GP_DRAWING, blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::gpu::wrap().
Referenced by blender::BKE_object_defgroup_remove_all_ex(), clear_vertex_groups(), and blender::object_defgroup_remove_common().
| void blender::bke::greasepencil::copy_drawing_array | ( | Span< const GreasePencilDrawingBase * > | src_drawings, |
| MutableSpan< GreasePencilDrawingBase * > | dst_drawings ) |
Copies the drawings from one array to another. Assumes that dst_drawings is allocated but not initialized, e.g. it will allocate new drawings and store the pointers.
Definition at line 1470 of file grease_pencil.cc.
References blender::BLI_assert(), copy_drawing_array(), blender::GP_DRAWING, blender::GP_DRAWING_REFERENCE, blender::Span< T >::index_range(), blender::MutableSpan< T >::size(), blender::Span< T >::size(), and blender::GreasePencilDrawingBase::type.
Referenced by blender::BKE_grease_pencil_duplicate_drawing_array(), copy_drawing_array(), and blender::ed::greasepencil::join_object_with_active().
| IndexMask blender::bke::greasepencil::curves_mask_to_shapes | ( | const IndexMask & | curve_mask, |
| const GroupedSpan< int > | shapes, | ||
| IndexMaskMemory & | memory ) |
Definition at line 270 of file grease_pencil_fills.cc.
References curves_mask_to_shapes(), blender::offset_indices::GroupedSpan< T >::data, blender::offset_indices::GroupedSpan< T >::index_range(), blender::threading::parallel_for(), and blender::offset_indices::GroupedSpan< T >::size().
Referenced by curves_mask_to_shapes().
|
static |
Definition at line 1169 of file grease_pencil.cc.
References curves_to_fills_mask(), blender::IndexMask::from_predicate(), and blender::index_mask::IndexMask::to_bools().
Referenced by curves_to_fills_mask(), and update_triangle_and_offsets_changed().
|
static |
Definition at line 526 of file grease_pencil.cc.
References blender::bke::Curve, ensure_fill_cache(), blender::bke::greasepencil::DrawingRuntime::fill_cache, fill_cache_from_fill_ids(), blender::bke::AttributeAccessor::lookup(), blender::GreasePencilDrawing::runtime, and blender::bke::greasepencil::Drawing::strokes().
Referenced by ensure_fill_cache(), and blender::bke::greasepencil::Drawing::fills().
| void blender::bke::greasepencil::ensure_non_empty_layer_names | ( | Main & | bmain, |
| GreasePencil & | grease_pencil ) |
Renames layers with empty names to "Layer".
Definition at line 2442 of file grease_pencil.cc.
References DATA_, ensure_non_empty_layer_names(), and layer.
Referenced by blender::ed::object::apply_grease_pencil_for_modifier(), blender::ed::object::apply_grease_pencil_for_modifier_all_keyframes(), ensure_non_empty_layer_names(), blender::ed::geometry::store_result_geometry(), and TREENODE_COMMON_METHODS_FORWARD_IMPL().
|
static |
Definition at line 757 of file grease_pencil.cc.
References blender::ui::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::bke::greasepencil::Drawing::curve_plane_normals(), ensure_triangle_cache(), blender::bke::greasepencil::Drawing::fills(), blender::bke::greasepencil::TriangleCache::intersection_point_offsets, blender::bke::greasepencil::TriangleCache::intersection_points, blender::ui::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::GreasePencilDrawing::runtime, blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::DrawingRuntime::triangle_cache, blender::bke::greasepencil::TriangleCache::triangle_offsets, blender::bke::greasepencil::TriangleCache::triangles, and update_triangle_and_offsets_cache().
Referenced by ensure_triangle_cache(), blender::bke::greasepencil::Drawing::intersection_points(), and blender::bke::greasepencil::Drawing::triangles().
| int blender::bke::greasepencil::ensure_vertex_group | ( | StringRef | name, |
| ListBaseT< bDeformGroup > & | vertex_group_names ) |
Find or create a vertex group in a drawing.
Definition at line 54 of file grease_pencil_vertex_groups.cc.
References blender::BKE_defgroup_name_index(), blender::BLI_addtail(), blender::BLI_assert(), blender::blender::StringRefBase::copy_utf8_truncated(), ensure_vertex_group(), and blender::bDeformGroup::name.
Referenced by ensure_vertex_group(), and blender::write_weights_for_drawing().
Definition at line 938 of file grease_pencil.cc.
References expand_4x2_mat().
Referenced by expand_4x2_mat(), and blender::bke::greasepencil::Drawing::set_texture_matrices().
| std::optional< FillCache > blender::bke::greasepencil::fill_cache_from_fill_ids | ( | const VArray< int > & | fill_ids | ) |
Definition at line 19 of file grease_pencil_fills.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_or_modify(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), fill_cache_from_fill_ids(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::VArrayCommon< T >::index_range(), blender::VArrayCommon< T >::is_empty(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::threading::parallel_for(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and blender::offset_indices::OffsetIndices< T >::total_size().
Referenced by ensure_fill_cache(), fill_cache_from_fill_ids(), and blender::bke::greasepencil::tests::TEST_F().
| void blender::bke::greasepencil::gather_next_available_fill_ids | ( | const VArray< int > & | fill_ids, |
| const IndexMask & | curve_mask, | ||
| MutableSpan< int > | r_new_fill_ids ) |
Definition at line 197 of file grease_pencil_fills.cc.
References blender::index_mask::IndexMask::foreach_index(), gather_next_available_fill_ids(), get_next_available_fill_id(), and blender::exec_mode::grain_size().
| void blender::bke::greasepencil::gather_next_available_fill_ids | ( | const VArray< int > & | fill_ids, |
| MutableSpan< int > | r_new_fill_ids ) |
Definition at line 192 of file grease_pencil_fills.cc.
References blender::array_utils::fill_index_range(), gather_next_available_fill_ids(), and get_next_available_fill_id().
Referenced by gather_next_available_fill_ids(), gather_next_available_fill_ids(), blender::geometry::grease_pencil_remove_points_and_split(), blender::ed::greasepencil::grease_pencil_set_stroke_type_exec(), and blender::MOD_lineart_gpencil_generate_v3().
| const AttributeAccessorFunctions & blender::bke::greasepencil::get_attribute_accessor_functions | ( | ) |
Definition at line 204 of file grease_pencil_attributes.cc.
References get_attribute_accessor_functions(), and get_grease_pencil_accessor_functions().
Referenced by blender::bke::GreasePencilComponent::attributes(), blender::bke::GreasePencilComponent::attributes_for_write(), get_attribute_accessor_functions(), and TREENODE_COMMON_METHODS_FORWARD_IMPL().
|
static |
Definition at line 39 of file grease_pencil_attributes.cc.
References get_domain_size(), and blender::bke::Layer.
Referenced by get_domain_size(), and get_grease_pencil_accessor_functions().
|
static |
Definition at line 45 of file grease_pencil_attributes.cc.
References blender::bke::AttributeIter::accessor, array_storage_required(), blender::bke::Attribute::assign_data(), attribute, blender::bke::attribute_init_to_data(), blender::bke::attribute_to_reader(), blender::bke::attribute_to_writer(), builtin_attributes(), changed_tags(), blender::bke::AttributeInit::Construct, blender::data, blender::bke::Attribute::data_type(), blender::bke::AttrBuiltinInfo::default_value, blender::bke::Attribute::domain(), get_domain_size(), get_grease_pencil_accessor_functions(), blender::bke::AttributeIter::is_builtin, blender::bke::AttributeIter::is_stopped(), blender::bke::Layer, blender::bke::rename_attributes(), storage, blender::bke::AttributeIter::storage_type, and blender::bke::AttrBuiltinInfo::validator.
Referenced by get_attribute_accessor_functions(), and get_grease_pencil_accessor_functions().
|
static |
Definition at line 871 of file grease_pencil.cc.
References cross, dot(), get_local_to_stroke_matrix(), blender::MatBase< float, 4, 2 >::identity(), length_squared(), normalize, blender::Span< T >::size(), and transpose.
Referenced by get_local_to_stroke_matrix(), and blender::bke::greasepencil::Drawing::set_texture_matrices().
| int blender::bke::greasepencil::get_next_available_fill_id | ( | const VArray< int > & | fill_ids | ) |
Definition at line 184 of file grease_pencil_fills.cc.
References get_next_available_fill_id(), get_next_available_fill_id_from_max(), and blender::array_utils::max_element_index().
| int blender::bke::greasepencil::get_next_available_fill_id | ( | Span< int > | fill_ids | ) |
Definition at line 177 of file grease_pencil_fills.cc.
References get_next_available_fill_id(), get_next_available_fill_id_from_max(), and blender::array_utils::max_element_index().
Referenced by gather_next_available_fill_ids(), gather_next_available_fill_ids(), get_next_available_fill_id(), get_next_available_fill_id(), blender::ed::greasepencil::grease_pencil_join_fills_exec(), blender::ed::greasepencil::grease_pencil_primitive_init_curves(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_start_sample(), and blender::ed::greasepencil::boolean::separate_fill_islands().
|
static |
Definition at line 170 of file grease_pencil_fills.cc.
References get_next_available_fill_id_from_max().
Referenced by get_next_available_fill_id(), get_next_available_fill_id(), and get_next_available_fill_id_from_max().
|
static |
Definition at line 902 of file grease_pencil.cc.
References cos, from_scale(), get_stroke_to_texture_matrix(), blender::MatBase< float, 3, 2 >::identity(), rot, safe_rcp(), and sin.
Referenced by get_stroke_to_texture_matrix().
| bool blender::bke::greasepencil::remove_from_vertex_group | ( | Drawing & | drawing, |
| StringRef | name, | ||
| bool | use_selection ) |
Remove selected vertices from the vertex group.
Definition at line 131 of file grease_pencil_vertex_groups.cc.
References blender::BKE_defgroup_name_index(), blender::BKE_defvert_find_index(), blender::BKE_defvert_remove_group(), blender::MutableSpan< T >::index_range(), blender::bke::AttributeAccessor::lookup_or_default(), blender::bke::Point, remove_from_vertex_group(), and blender::bke::greasepencil::Drawing::strokes_for_write().
Referenced by blender::ed::object::grease_pencil_clear_from_vgroup(), and remove_from_vertex_group().
| IndexMask blender::bke::greasepencil::selected_mask_to_fills | ( | const IndexMask & | selected_mask, |
| const CurvesGeometry & | curves, | ||
| AttrDomain | selection_domain, | ||
| IndexMaskMemory & | memory ) |
Definition at line 207 of file grease_pencil_fills.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::BLI_assert(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::bke::Curve, blender::bke::curves::curve_to_point_selection(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_predicate(), blender::bke::AttributeAccessor::lookup(), blender::bke::Point, blender::bke::curves::point_to_curve_selection(), selected_mask_to_fills(), and blender::index_mask::IndexMask::to_bools().
Referenced by blender::ed::greasepencil::ensure_selection_domain(), blender::draw::grease_pencil_edit_batch_ensure(), blender::ed::greasepencil::grease_pencil_join_fills_exec(), blender::ed::greasepencil::grease_pencil_stroke_material_set_exec(), selected_mask_to_fills(), and blender::ed::greasepencil::selection_update().
| void blender::bke::greasepencil::separate_fill_ids | ( | CurvesGeometry & | curves, |
| const IndexMask & | strokes_to_keep ) |
Definition at line 300 of file grease_pencil_fills.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::index_mask::IndexMask::complement(), blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of(), blender::index_mask::IndexMask::is_empty(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::math::max(), separate_fill_ids(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by blender::ed::greasepencil::grease_pencil_duplicate_exec(), and separate_fill_ids().
| ShapeData blender::bke::greasepencil::shapes_from_fill_ids | ( | const VArray< int > & | fill_ids, |
| int | curves_num ) |
Calculate all of the shapes from the "fill_id" attribute. Each shape is either a group of multiple curves that share the same "fill_id", or a single curve when the "fill_id" is zero.
For example:
curve index: 0 1 2 3 4 5 6 7 8 fill_id: 0 0 a 0 a c a b b (a, b, c are some integers != 0)
shape_map: 0 1 2 4 6 3 5 7 8 shape_offsets: 0 1 2 5 6 7 9 shapes: _ _ _____ _ _ ___ a c b (ordered by the first occurrence in fill_id)
Returns a ShapeData struct with the #shape_map and #shape_offsets.
Definition at line 78 of file grease_pencil_fills.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::BLI_assert(), blender::array_utils::fill_index_range(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::VArrayCommon< T >::is_empty(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::threading::parallel_for(), blender::bke::greasepencil::ShapeData::shape_map, blender::bke::greasepencil::ShapeData::shape_offsets, shapes_from_fill_ids(), blender::VArrayCommon< T >::size(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by blender::ed::greasepencil::tests::draw_results(), shapes_from_fill_ids(), and blender::ed::greasepencil::tests::test_curve_boolean().
| blender::bke::greasepencil::TREENODE_COMMON_METHODS_FORWARD_IMPL | ( | Layer | ) |
References TREENODE_COMMON_METHODS_FORWARD_IMPL().
Referenced by TREENODE_COMMON_METHODS_FORWARD_IMPL(), and TREENODE_COMMON_METHODS_FORWARD_IMPL().
| blender::bke::greasepencil::TREENODE_COMMON_METHODS_FORWARD_IMPL | ( | LayerGroup | ) |
|
static |
Definition at line 807 of file grease_pencil.cc.
References blender::add_newell_cross_v3_v3v3(), blender::IndexRange::drop_back(), blender::IndexRange::first(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::IndexRange::last(), length(), blender::math::length_squared(), blender::math::max(), blender::math::normalize(), blender::math::normalize_and_get_length(), blender::IndexRange::size(), and update_curve_plane_normal_cache().
Referenced by blender::bke::greasepencil::Drawing::curve_plane_normals(), blender::bke::greasepencil::Drawing::tag_positions_changed(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and update_curve_plane_normal_cache().
|
static |
Definition at line 547 of file grease_pencil.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::axis_dominant_v3_to_m3(), blender::BLI_assert(), blender::BLI_memarena_alloc(), blender::BLI_memarena_clear(), blender::BLI_memarena_free(), blender::BLI_memarena_new(), BLI_MEMARENA_STD_BUFSIZE, blender::BLI_polyfill_calc_arena(), blender::CDT_INSIDE_WITH_HOLES, blender::CDT_ONLY_ONE_ORIG, blender::CDT_ORIG_VERTS, blender::MutableSpan< T >::data(), blender::meshintersect::CDT_input< T >::face_offsets, blender::meshintersect::CDT_input< T >::face_vert_indices, float, blender::index_mask::IndexMask::foreach_segment(), blender::IndexMask::from_indices(), blender::IndexMask::from_predicate(), blender::offset_indices::gather_selected_offsets(), blender::exec_mode::grain_size(), blender::IndexRange::index_range(), blender::OffsetSpan< T, BaseT >::index_range(), blender::IndexRange::IndexRange(), blender::math::invert(), blender::threading::isolate_task(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::mul_v2_m3v3(), blender::MutableSpan< T >::MutableSpan(), blender::meshintersect::CDT_input< T >::needed_ids, blender::threading::parallel_for(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::result, blender::index_mask::IndexMask::size(), blender::IndexRange::size(), blender::Span< T >::Span(), blender::offset_indices::sum_group_sizes(), blender::offset_indices::OffsetIndices< T >::total_size(), update_triangle_and_offsets_cache(), and blender::meshintersect::CDT_input< T >::vert.
Referenced by ensure_triangle_cache(), update_triangle_and_offsets_cache(), and update_triangle_and_offsets_changed().
|
static |
Definition at line 1188 of file grease_pencil.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::index_mask::IndexMask::complement(), blender::array_utils::copy_group_to_group(), curves_to_fills_mask(), blender::offset_indices::GroupedSpan< T >::data, blender::index_mask::IndexMask::foreach_index(), blender::array_utils::gather(), blender::exec_mode::grain_size(), blender::offset_indices::GroupedSpan< T >::index_range(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::IndexRange::IndexRange(), blender::MutableSpan< T >::last(), blender::offset_indices::GroupedSpan< T >::offsets, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::array_utils::scatter(), blender::index_mask::IndexMask::size(), blender::offset_indices::OffsetIndices< T >::size(), update_triangle_and_offsets_cache(), and update_triangle_and_offsets_changed().
Referenced by blender::bke::greasepencil::Drawing::tag_positions_changed(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and update_triangle_and_offsets_changed().
| void blender::bke::greasepencil::validate_drawing_vertex_groups | ( | GreasePencil & | grease_pencil | ) |
Make sure drawings only contain vertex groups of the GreasePencil.
Definition at line 26 of file grease_pencil_vertex_groups.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::BLI_freelinkN(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::GP_DRAWING, blender::bDeformGroup::name, blender::bke::remove_defgroup_index(), blender::bke::greasepencil::Drawing::strokes_for_write(), validate_drawing_vertex_groups(), and blender::gpu::wrap().
Referenced by blender::BKE_object_defgroup_new(), blender::BKE_object_defgroup_remove(), and validate_drawing_vertex_groups().
|
constexpr |
Definition at line 459 of file grease_pencil.cc.
Referenced by blender::bke::greasepencil::Drawing::fill_colors(), and blender::bke::greasepencil::Drawing::fill_colors_for_write().
|
constexpr |
Definition at line 457 of file grease_pencil.cc.
Referenced by blender::bke::greasepencil::Drawing::opacities(), and blender::bke::greasepencil::Drawing::opacities_for_write().
|
constexpr |
Definition at line 456 of file grease_pencil.cc.
Referenced by blender::bke::greasepencil::Drawing::radii(), and blender::bke::greasepencil::Drawing::radii_for_write().
|
constexpr |
Definition at line 458 of file grease_pencil.cc.
Referenced by blender::bke::greasepencil::Drawing::vertex_colors(), and blender::bke::greasepencil::Drawing::vertex_colors_for_write().
|
constexpr |
Definition at line 55 of file BKE_grease_pencil.hh.
Referenced by blender::blo_do_versions_402(), blender::blo_do_versions_403(), blender::ed::object::convert_mesh_to_grease_pencil(), blender::bke::greasepencil::convert::fcurve_convert_thickness_cb(), blender::ed::sculpt_paint::GreasePencilFillOpData::from_context(), blender::ed::sculpt_paint::grease_pencil_apply_fill(), blender::bke::greasepencil::convert::legacy_gpencil_frame_to_grease_pencil_drawing(), blender::bke::greasepencil::convert::legacy_object_modifier_thickness(), blender::bke::greasepencil::convert::lineart_unwrap_v3(), blender::bke::greasepencil::convert::lineart_wrap_v3(), and blender::modify_drawing().