|
Blender V5.3
|
#include <BKE_curves.hh>
Public Member Functions | |
| CurvesEditHints (const Curves &curves_id_orig) | |
| std::optional< Span< float3 > > | positions () const |
| std::optional< MutableSpan< float3 > > | positions_for_write () |
| bool | is_valid () const |
Public Attributes | |
| const Curves & | curves_id_orig |
| ImplicitSharingPtrAndData | positions_data |
| std::optional< Array< float3x3 > > | deform_mats |
Used to propagate deformation data through modifier evaluation so that sculpt tools can work on evaluated data.
Definition at line 533 of file BKE_curves.hh.
|
inline |
Definition at line 550 of file BKE_curves.hh.
References curves_id_orig.
| bool blender::bke::CurvesEditHints::is_valid | ( | ) | const |
The edit hints have to correspond to the original curves, i.e. the number of deformed points is the same as the number of original points.
Definition at line 367 of file blenkernel/intern/curves.cc.
References curves_id_orig, deform_mats, and positions().
Definition at line 383 of file blenkernel/intern/curves.cc.
References curves_id_orig, blender::ImplicitSharingPtrAndData::data, blender::ImplicitSharingPtrAndData::has_value(), positions_data, and blender::Span< T >::Span().
Referenced by blender::bke::crazyspace::get_evaluated_curves_deformation(), is_valid(), positions_for_write(), and blender::bke::remember_deformed_curve_positions_if_necessary().
| std::optional< MutableSpan< float3 > > blender::bke::CurvesEditHints::positions_for_write | ( | ) |
Definition at line 392 of file blenkernel/intern/curves.cc.
References curves_id_orig, blender::data, blender::ImplicitSharingPtrAndData::has_value(), blender::ImplicitSharingPtr< T, IsStrong >::ImplicitSharingPtr, blender::MutableSpan< T >::MutableSpan(), positions(), and positions_data.
Referenced by blender::nodes::node_geo_deform_curves_on_surface_cc::node_geo_exec(), blender::geometry::transform_curve_edit_hints(), and blender::geometry::translate_curve_edit_hints().
| const Curves& blender::bke::CurvesEditHints::curves_id_orig |
Original data that the edit hints below are meant to be used for.
Definition at line 538 of file BKE_curves.hh.
Referenced by CurvesEditHints(), blender::bke::crazyspace::get_evaluated_curves_deformation(), is_valid(), blender::nodes::node_geo_deform_curves_on_surface_cc::node_geo_exec(), positions(), positions_for_write(), and blender::bke::remember_deformed_curve_positions_if_necessary().
Matrices which transform point movement vectors from original data to corresponding movements of evaluated data.
Definition at line 548 of file BKE_curves.hh.
Referenced by blender::bke::crazyspace::get_evaluated_curves_deformation(), is_valid(), blender::nodes::node_geo_deform_curves_on_surface_cc::node_geo_exec(), and blender::geometry::transform_curve_edit_hints().
| ImplicitSharingPtrAndData blender::bke::CurvesEditHints::positions_data |
Evaluated positions for the points in #curves_orig. If this is empty, the positions from the evaluated Curves should be used if possible.
Definition at line 543 of file BKE_curves.hh.
Referenced by positions(), positions_for_write(), and blender::bke::remember_deformed_curve_positions_if_necessary().