|
Blender V5.3
|
Classes | |
| struct | ClosestElement |
| class | CurvesPenToolOperation |
| class | PenToolOperation |
Enumerations | |
| enum class | PenModal : int8_t { MoveHandle = 0 , MoveEntire = 1 , SnapAngle = 2 } |
| enum class | ElementMode : int8_t { None = 0 , Point = 1 , Edge = 2 , HandleLeft = 3 , HandleRight = 4 } |
Functions | |
| static void | pen_find_closest_point (const PenToolOperation &ptd, const bke::CurvesGeometry &curves, const IndexMask &editable_curves, const float4x4 &layer_to_object, const int drawing_index, const float2 &mouse_co, ClosestElement &r_closest_element) |
| static void | pen_find_closest_handle (const PenToolOperation &ptd, const bke::CurvesGeometry &curves, const IndexMask &bezier_points, const float4x4 &layer_to_object, const int drawing_index, const float2 &mouse_co, ClosestElement &r_closest_element) |
| static float2 | line_segment_closest_point (const float2 &pos_1, const float2 &pos_2, const float2 &pos, float &r_local_t) |
| static void | pen_find_closest_edge_point (const PenToolOperation &ptd, const bke::CurvesGeometry &curves, const IndexMask &editable_curves, const float4x4 &layer_to_object, const int drawing_index, const float2 &mouse_co, ClosestElement &r_closest_element) |
| static ClosestElement | find_closest_element (const PenToolOperation &ptd, const float2 &mouse_co) |
| static void | pen_status_indicators (bContext *C, wmOperator *op) |
| static float2 | snap_8_angles (const float2 &p) |
| static void | move_segment (const PenToolOperation &ptd, bke::CurvesGeometry &curves, const float4x4 &layer_to_world) |
| static bool | move_handles_in_curve (const PenToolOperation &ptd, bke::CurvesGeometry &curves, const IndexMask &selection, const float4x4 &layer_to_world, const float4x4 &layer_to_object) |
| static std::optional< bke::CurvesGeometry > | extrude_curves (const PenToolOperation &ptd, const bke::CurvesGeometry &src, const float4x4 &layer_to_object, const IndexMask editable_curves) |
| static void | insert_point_to_curve (const PenToolOperation &ptd, bke::CurvesGeometry &src) |
| static void | add_single_point_and_curve (const PenToolOperation &ptd, bke::CurvesGeometry &curves, const float4x4 &layer_to_world) |
| static bool | close_curve_and_select (const PenToolOperation &ptd, bke::CurvesGeometry &curves, const IndexRange points, const bool clear_selection) |
| static float2 | calculate_center_of_mass (const PenToolOperation &ptd, const bool ends_only) |
| static void | invoke_curves (PenToolOperation &ptd, bContext *C, wmOperator *op, const wmEvent *event) |
| static IndexMask | retrieve_visible_bezier_handle_points (const bke::CurvesGeometry &curves, const int handle_display, IndexMaskMemory &memory) |
| static void | curves_pen_exit (bContext *C, wmOperator *op) |
| static wmOperatorStatus | curves_pen_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | curves_pen_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| void | pen_tool_common_props (wmOperatorType *ot) |
| wmKeyMap * | ensure_keymap (wmKeyConfig *keyconf) |
Variables | |
| static const EnumPropertyItem | prop_handle_types [] |
| constexpr float | selection_distance_factor = 0.3f |
| constexpr float | selection_distance_factor_edge = 0.2f |
| constexpr float | default_handle_px_distance = 16.0f |
| constexpr int | CURVE_HANDLE_TYPES_NUM = 4 |
| constexpr float | selection_edge_priority_factor = 0.1f |
| constexpr float | selection_point_overwrite_edge_distance_factor = 0.7f |
| constexpr float | selection_point_overwrite_edge_distance_factor_sq |
|
strong |
| Enumerator | |
|---|---|
| None | |
| Point | |
| Edge | |
| HandleLeft | |
| HandleRight | |
Definition at line 52 of file ED_curves.hh.
|
strong |
| Enumerator | |
|---|---|
| MoveHandle | |
| MoveEntire | |
| SnapAngle | |
Definition at line 44 of file curves_pen.cc.
|
static |
Definition at line 819 of file curves_pen.cc.
References blender::Object::actcol, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), add_single_point_and_curve(), blender::bke::attribute_filter_from_skip_ref(), blender::bke::Bool, blender::bke::Curve, blender::CURVE_TYPE_BEZIER, default_handle_px_distance, blender::ed::curves::ensure_selection_attribute(), blender::ed::curves::pen_tool::PenToolOperation::extrude_handle, blender::bke::fill_attribute_range_default(), blender::ed::curves::fill_selection_true(), blender::bke::GSpanAttributeWriter::finish(), blender::bke::SpanAttributeWriter< T >::finish(), blender::IndexRange::from_single(), blender::ed::curves::get_curves_selection_attribute_names(), blender::MutableSpan< T >::last(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::ed::curves::pen_tool::PenToolOperation::mouse_co, blender::ViewContext::obact, blender::bke::Point, blender::ed::curves::pen_tool::PenToolOperation::project(), blender::ed::curves::pen_tool::PenToolOperation::radius, blender::ed::curves::pen_tool::PenToolOperation::screen_to_layer(), blender::bke::GSpanAttributeWriter::span, blender::bke::SpanAttributeWriter< T >::span, and blender::ed::curves::pen_tool::PenToolOperation::vc.
Referenced by add_single_point_and_curve().
|
static |
Definition at line 943 of file curves_pen.cc.
References blender::ed::curves::pen_tool::PenToolOperation::all_selected_points(), calculate_center_of_mass(), blender::ed::curves::pen_tool::PenToolOperation::curves_range(), blender::IndexRange::first(), blender::index_mask::IndexMask::foreach_index(), blender::ed::curves::pen_tool::PenToolOperation::get_curves(), blender::IndexRange::last(), blender::ed::curves::pen_tool::PenToolOperation::layer_to_object_per_curves, blender::ed::curves::pen_tool::PenToolOperation::layer_to_screen(), blender::num, and blender::IndexRange::size().
Referenced by calculate_center_of_mass(), invoke_curves(), and blender::ed::curves::pen_tool::PenToolOperation::modal().
|
static |
Definition at line 891 of file curves_pen.cc.
References blender::bke::Bool, close_curve_and_select(), blender::ed::curves::pen_tool::PenToolOperation::closest_element, blender::ed::curves::pen_tool::ClosestElement::curve_index, blender::ed::curves::pen_tool::ClosestElement::element_mode, blender::ed::curves::ensure_selection_attribute(), blender::ed::curves::fill_selection_false(), blender::ed::curves::fill_selection_true(), blender::bke::GSpanAttributeWriter::finish(), blender::IndexRange::first(), blender::IndexRange::from_single(), blender::ed::curves::get_curves_selection_attribute_names(), HandleLeft, HandleRight, blender::ed::curves::has_anything_selected(), blender::IndexRange::last(), blender::bke::Point, Point, blender::ed::curves::pen_tool::ClosestElement::point_index, blender::ed::curves::pen_tool::PenToolOperation::select_point, blender::GMutableSpan::slice(), and blender::bke::GSpanAttributeWriter::span.
Referenced by close_curve_and_select().
|
static |
Definition at line 1411 of file curves_pen.cc.
References C, curves_pen_exit(), blender::wmOperator::customdata, blender::ED_workspace_status_text(), blender::ed::curves::pen_tool::CurvesPenToolOperation::update_view(), blender::ed::curves::pen_tool::PenToolOperation::vc, blender::ViewContext::win, and blender::WM_cursor_modal_restore().
Referenced by curves_pen_exit(), curves_pen_invoke(), and curves_pen_modal().
|
static |
Definition at line 1428 of file curves_pen.cc.
References C, curves_pen_exit(), curves_pen_invoke(), blender::wmOperator::customdata, blender::ed::curves::pen_tool::PenToolOperation::invoke(), blender::OPERATOR_RUNNING_MODAL, and blender::result.
Referenced by blender::ed::curves::CURVES_OT_pen(), and curves_pen_invoke().
|
static |
Definition at line 1443 of file curves_pen.cc.
References C, curves_pen_exit(), curves_pen_modal(), blender::wmOperator::customdata, blender::ed::curves::pen_tool::PenToolOperation::modal(), blender::OPERATOR_RUNNING_MODAL, and blender::result.
Referenced by blender::ed::curves::CURVES_OT_pen(), and curves_pen_modal().
| wmKeyMap * blender::ed::curves::pen_tool::ensure_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 1486 of file curves_pen.cc.
References ensure_keymap(), blender::wmKeyMap::modal_items, MoveEntire, MoveHandle, SnapAngle, blender::WM_modalkeymap_ensure(), and blender::WM_modalkeymap_find().
Referenced by blender::ed::curves::ED_curves_pentool_modal_keymap(), blender::ED_grease_pencil_pentool_modal_keymap(), and ensure_keymap().
|
static |
Definition at line 547 of file curves_pen.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::bke::attribute_filter_from_skip_ref(), blender::bke::CurvesGeometry::attributes(), blender::bke::CurvesGeometry::attributes_for_write(), blender::BKE_defgroup_copy_list(), blender::bke::Bool, blender::bke::CurvesGeometry::calculate_bezier_auto_handles(), blender::ed::curves::pen_tool::PenToolOperation::center_of_mass_co, blender::index_mask::IndexMask::complement(), blender::array_utils::copy(), blender::bke::copy_attributes(), blender::GMutableSpan::copy_from(), blender::offset_indices::copy_group_sizes(), blender::bke::Curve, blender::CURVE_TYPE_BEZIER, blender::bke::CurvesGeometry::curve_types(), blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), blender::bke::CurvesGeometry::cyclic(), blender::bke::CurvesGeometry::cyclic_for_write(), blender::MutableSpan< T >::drop_back(), blender::ed::curves::ensure_selection_attribute(), extrude_curves(), blender::ed::curves::pen_tool::PenToolOperation::extrude_handle, blender::array_utils::fill_index_range(), blender::bke::GSpanAttributeWriter::finish(), blender::IndexRange::first(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_predicate(), blender::bke::gather_attributes(), blender::bke::curves::nurbs::gather_custom_knots(), blender::bke::CurvesGeometry::handle_types_left_for_write(), blender::bke::CurvesGeometry::handle_types_right_for_write(), blender::Vector< T, InlineBufferCapacity, Allocator >::insert(), blender::IndexRange::last(), blender::ed::curves::pen_tool::PenToolOperation::layer_to_screen(), blender::bke::AttributeAccessor::lookup_or_default(), blender::ed::curves::pen_tool::PenToolOperation::mouse_co, blender::bke::CurvesGeometry::nurbs_has_custom_knots(), blender::NURBS_KNOT_MODE_ENDPOINT, blender::NURBS_KNOT_MODE_NORMAL, blender::bke::CurvesGeometry::nurbs_knots_modes(), blender::bke::CurvesGeometry::offsets_for_write(), blender::bke::Point, blender::bke::CurvesGeometry::point_to_curve_map(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::points_num(), blender::bke::CurvesGeometry::positions(), blender::bke::CurvesGeometry::positions_for_write(), blender::ed::curves::pen_tool::PenToolOperation::project(), blender::ed::curves::pen_tool::PenToolOperation::radius, blender::bke::CurvesGeometry::radius_for_write(), blender::IndexRange::size(), blender::bke::GSpanAttributeWriter::span, blender::bke::CurvesGeometry::update_curve_types(), blender::bke::curves::nurbs::update_custom_knot_modes(), and blender::CurvesGeometry::vertex_group_names.
Referenced by extrude_curves().
|
static |
Definition at line 304 of file curves_pen.cc.
References blender::ed::curves::pen_tool::PenToolOperation::curves_range(), blender::ed::curves::pen_tool::PenToolOperation::editable_curves(), blender::ed::curves::pen_tool::ClosestElement::element_mode, find_closest_element(), blender::ed::curves::pen_tool::PenToolOperation::get_curves(), blender::ed::curves::pen_tool::PenToolOperation::layer_to_object_per_curves, None, pen_find_closest_edge_point(), pen_find_closest_handle(), pen_find_closest_point(), and blender::ed::curves::pen_tool::PenToolOperation::visible_bezier_handle_points().
Referenced by find_closest_element(), and invoke_curves().
|
static |
Definition at line 704 of file curves_pen.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::bke::attribute_filter_from_skip_ref(), blender::bke::CurvesGeometry::attributes(), blender::bke::CurvesGeometry::attributes_for_write(), blender::BEZIER_HANDLE_ALIGN, blender::BEZIER_HANDLE_FREE, blender::BKE_defgroup_copy_list(), blender::bke::Bool, blender::bke::CurvesGeometry::calculate_bezier_auto_handles(), blender::ed::curves::pen_tool::PenToolOperation::closest_element, blender::index_mask::IndexMask::complement(), blender::array_utils::copy(), blender::bke::copy_attributes(), blender::offset_indices::copy_group_sizes(), blender::bke::Curve, blender::ed::curves::pen_tool::ClosestElement::curve_index, blender::CURVE_TYPE_BEZIER, blender::bke::CurvesGeometry::curve_types(), blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), blender::MutableSpan< T >::drop_back(), blender::ed::curves::pen_tool::ClosestElement::edge_t, blender::ed::curves::ensure_selection_attribute(), blender::array_utils::fill_index_range(), blender::ed::curves::fill_selection_false(), blender::ed::curves::fill_selection_true(), blender::bke::GSpanAttributeWriter::finish(), blender::IndexRange::first(), blender::IndexMask::from_predicate(), blender::IndexRange::from_single(), blender::bke::gather_attributes(), blender::bke::curves::nurbs::gather_custom_knots(), blender::ed::curves::get_curves_selection_attribute_names(), blender::bke::curves::bezier::Insertion::handle_next, blender::bke::CurvesGeometry::handle_positions_left(), blender::bke::CurvesGeometry::handle_positions_left_for_write(), blender::bke::CurvesGeometry::handle_positions_right(), blender::bke::CurvesGeometry::handle_positions_right_for_write(), blender::bke::curves::bezier::Insertion::handle_prev, blender::bke::CurvesGeometry::handle_types_left_for_write(), blender::bke::CurvesGeometry::handle_types_right_for_write(), blender::bke::curves::bezier::insert(), blender::Vector< T, InlineBufferCapacity, Allocator >::insert(), insert_point_to_curve(), blender::math::interpolate(), blender::bke::curves::bezier::Insertion::left_handle, blender::bke::CurvesGeometry::nurbs_has_custom_knots(), blender::NURBS_KNOT_MODE_ENDPOINT, blender::NURBS_KNOT_MODE_NORMAL, blender::bke::CurvesGeometry::nurbs_knots_modes(), blender::bke::CurvesGeometry::offsets_for_write(), blender::bke::Point, blender::ed::curves::pen_tool::ClosestElement::point_index, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::points_num(), blender::bke::curves::bezier::Insertion::position, blender::bke::CurvesGeometry::positions(), blender::bke::CurvesGeometry::positions_for_write(), blender::bke::curves::bezier::Insertion::right_handle, blender::IndexRange::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::bke::GSpanAttributeWriter::span, blender::bke::CurvesGeometry::update_curve_types(), blender::bke::curves::nurbs::update_custom_knot_modes(), and blender::CurvesGeometry::vertex_group_names.
Referenced by insert_point_to_curve().
|
static |
Definition at line 984 of file curves_pen.cc.
References C, calculate_center_of_mass(), blender::ed::curves::pen_tool::PenToolOperation::center_of_mass_co, blender::ed::curves::pen_tool::PenToolOperation::closest_element, blender::ed::curves::pen_tool::PenToolOperation::curves_range(), blender::ed::curves::pen_tool::PenToolOperation::extrude_point, find_closest_element(), invoke_curves(), blender::ed::curves::pen_tool::PenToolOperation::mouse_co, blender::ed::curves::pen_tool::PenToolOperation::move_point, blender::ed::curves::pen_tool::PenToolOperation::move_seg, blender::threading::parallel_for(), and blender::ed::curves::pen_tool::PenToolOperation::select_point.
Referenced by blender::ed::curves::pen_tool::PenToolOperation::invoke(), and invoke_curves().
|
static |
Definition at line 205 of file curves_pen.cc.
References blender::math::clamp(), blender::math::dot(), and line_segment_closest_point().
Referenced by line_segment_closest_point(), and pen_find_closest_edge_point().
|
static |
Definition at line 423 of file curves_pen.cc.
References blender::BEZIER_HANDLE_ALIGN, blender::BEZIER_HANDLE_AUTO, blender::BEZIER_HANDLE_FREE, blender::BEZIER_HANDLE_VECTOR, blender::ed::curves::pen_tool::PenToolOperation::center_of_mass_co, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::ed::curves::pen_tool::PenToolOperation::handle_moved, blender::index_mask::IndexMask::is_empty(), blender::ed::curves::pen_tool::PenToolOperation::layer_to_screen(), blender::bke::AttributeAccessor::lookup_or_default(), blender::ed::curves::pen_tool::PenToolOperation::mouse_co, blender::ed::curves::pen_tool::PenToolOperation::move_entire, blender::ed::curves::pen_tool::PenToolOperation::move_handle, move_handles_in_curve(), blender::ed::curves::pen_tool::PenToolOperation::move_point, blender::bke::Point, blender::ed::curves::pen_tool::PenToolOperation::point_added, blender::ed::curves::pen_tool::PenToolOperation::prev_xy, blender::ed::curves::pen_tool::PenToolOperation::project(), blender::ed::curves::pen_tool::PenToolOperation::screen_to_layer(), snap_8_angles(), blender::ed::curves::pen_tool::PenToolOperation::snap_angle, and blender::ed::curves::pen_tool::PenToolOperation::xy.
Referenced by blender::ed::curves::pen_tool::PenToolOperation::modal(), and move_handles_in_curve().
|
static |
Equation of the starting Bezier Curve: => b(t) = (1-t)^3 * p0 + 3(1-t)^2 * t * p1 + 3(1-t) * t^2 * p2 + t^3 * p3
Equation of the moved Bezier Curve: => B(t) = (1-t)^3 * P0 + 3(1-t)^2 * t * P1 + 3(1-t) * t^2 * P2 + t^3 * P3
The moved Bezier curve has four unknowns: P0, P1, P2 and P3 We want the end points to stay the same so: P0 = p0 and P3 = p3
Mouse location (Pm) should satisfy the equation Pm = B(t). The last constraint used is that the vector between P1 and P2 doesn't change after moving. Therefore: => k2 = p1 - p2 = P1 - P2
Using all four equations we can solve for P1 as: => P1 = (Pm - (1-t)^3 * P0 - t^3 * P3) / (3(1-t) * t) + k2 * t And P2 as: => P2 = P1 - k2
Definition at line 347 of file curves_pen.cc.
References blender::BEZIER_HANDLE_ALIGN, blender::BEZIER_HANDLE_FREE, blender::ed::curves::pen_tool::PenToolOperation::closest_element, blender::ed::curves::pen_tool::ClosestElement::curve_index, blender::ed::curves::pen_tool::ClosestElement::edge_t, blender::IndexRange::first(), blender::ed::curves::pen_tool::PenToolOperation::mouse_co, move_segment(), blender::ed::curves::pen_tool::ClosestElement::point_index, blender::ed::curves::pen_tool::PenToolOperation::screen_to_layer(), and blender::IndexRange::size().
Referenced by blender::ed::curves::pen_tool::PenToolOperation::modal(), and move_segment().
|
static |
Definition at line 220 of file curves_pen.cc.
References blender::ed::curves::pen_tool::ClosestElement::curve_index, blender::CURVE_TYPE_BEZIER, blender::ed::curves::pen_tool::ClosestElement::distance_squared, blender::math::distance_squared(), distance_squared(), blender::ed::curves::pen_tool::ClosestElement::drawing_index, blender::IndexRange::drop_back(), Edge, blender::ed::curves::pen_tool::ClosestElement::edge_t, blender::ed::curves::pen_tool::ClosestElement::element_mode, blender::IndexRange::first(), blender::index_mask::IndexMask::foreach_index(), blender::IndexRange::from_begin_end_inclusive(), blender::IndexRange::index_range(), blender::IndexRange::IndexRange(), blender::ed::curves::pen_tool::ClosestElement::is_closer(), blender::ed::curves::pen_tool::PenToolOperation::layer_to_screen(), line_segment_closest_point(), pen_find_closest_edge_point(), blender::ed::curves::pen_tool::ClosestElement::point_index, blender::IndexRange::shift(), blender::IndexRange::size(), and blender::ed::curves::pen_tool::PenToolOperation::threshold_distance_edge.
Referenced by find_closest_element(), and pen_find_closest_edge_point().
|
static |
Definition at line 156 of file curves_pen.cc.
References blender::ed::curves::pen_tool::ClosestElement::curve_index, blender::ed::curves::pen_tool::ClosestElement::distance_squared, blender::math::distance_squared(), distance_squared(), blender::ed::curves::pen_tool::ClosestElement::drawing_index, blender::ed::curves::pen_tool::ClosestElement::element_mode, blender::index_mask::IndexMask::foreach_index(), HandleLeft, HandleRight, blender::ed::curves::pen_tool::ClosestElement::is_closer(), blender::ed::curves::pen_tool::PenToolOperation::layer_to_screen(), pen_find_closest_handle(), blender::ed::curves::pen_tool::ClosestElement::point_index, and blender::ed::curves::pen_tool::PenToolOperation::threshold_distance.
Referenced by find_closest_element(), and pen_find_closest_handle().
|
static |
Definition at line 124 of file curves_pen.cc.
References blender::ed::curves::pen_tool::ClosestElement::curve_index, blender::ed::curves::pen_tool::ClosestElement::distance_squared, blender::math::distance_squared(), distance_squared(), blender::ed::curves::pen_tool::ClosestElement::drawing_index, blender::ed::curves::pen_tool::ClosestElement::element_mode, blender::index_mask::IndexMask::foreach_index(), blender::ed::curves::pen_tool::ClosestElement::is_closer(), blender::ed::curves::pen_tool::PenToolOperation::layer_to_screen(), pen_find_closest_point(), Point, blender::ed::curves::pen_tool::ClosestElement::point_index, and blender::ed::curves::pen_tool::PenToolOperation::threshold_distance.
Referenced by find_closest_element(), and pen_find_closest_point().
|
static |
Definition at line 331 of file curves_pen.cc.
References C, IFACE_, MoveEntire, MoveHandle, blender::WorkspaceStatus::opmodal(), pen_status_indicators(), SnapAngle, and blender::wmOperator::type.
Referenced by blender::ed::curves::pen_tool::PenToolOperation::modal(), and pen_status_indicators().
| void blender::ed::curves::pen_tool::pen_tool_common_props | ( | wmOperatorType * | ot | ) |
Definition at line 1454 of file curves_pen.cc.
References blender::BEZIER_HANDLE_VECTOR, FLT_MAX, pen_tool_common_props(), prop_handle_types, blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::RNA_def_float_distance(), blender::wmOperatorType::srna, and blender::WM_operator_properties_mouse_select().
Referenced by blender::ed::curves::CURVES_OT_pen(), blender::ed::greasepencil::GREASE_PENCIL_OT_pen(), and pen_tool_common_props().
|
static |
Definition at line 1124 of file curves_pen.cc.
References blender::CURVE_HANDLE_ALL, blender::CURVE_HANDLE_NONE, blender::CURVE_TYPE_BEZIER, blender::IndexMask::from_predicate(), blender::IndexMask::IndexMask(), blender::bke::Point, and retrieve_visible_bezier_handle_points().
Referenced by retrieve_visible_bezier_handle_points(), and blender::ed::curves::pen_tool::CurvesPenToolOperation::visible_bezier_handle_points().
Definition at line 340 of file curves_pen.cc.
References abs, AngleRadian::from_degree(), length(), normalize, sign(), sin, and snap_8_angles().
Referenced by move_handles_in_curve(), and snap_8_angles().
|
constexpr |
Definition at line 67 of file curves_pen.cc.
|
constexpr |
Definition at line 64 of file curves_pen.cc.
Referenced by add_single_point_and_curve().
|
static |
Definition at line 53 of file curves_pen.cc.
Referenced by pen_tool_common_props().
|
constexpr |
Definition at line 60 of file curves_pen.cc.
Referenced by blender::ed::curves::pen_tool::PenToolOperation::invoke().
|
constexpr |
Definition at line 61 of file curves_pen.cc.
Referenced by blender::ed::curves::pen_tool::PenToolOperation::invoke().
|
constexpr |
Definition at line 70 of file curves_pen.cc.
Referenced by blender::ed::curves::pen_tool::ClosestElement::is_closer().
|
constexpr |
Definition at line 72 of file curves_pen.cc.
|
constexpr |
Definition at line 74 of file curves_pen.cc.
Referenced by blender::ed::curves::pen_tool::ClosestElement::is_closer().