Blender  V3.3
Public Member Functions | Public Attributes | List of all members
blender::bke::CurvesEditHints Class Reference

#include <BKE_curves.hh>

Public Member Functions

 CurvesEditHints (const Curves &curves_id_orig)
 
bool is_valid () const
 

Public Attributes

const Curvescurves_id_orig
 
std::optional< Array< float3 > > positions
 
std::optional< Array< float3x3 > > deform_mats
 

Detailed Description

Used to propagate deformation data through modifier evaluation so that sculpt tools can work on evaluated data.

Definition at line 424 of file BKE_curves.hh.

Constructor & Destructor Documentation

◆ CurvesEditHints()

blender::bke::CurvesEditHints::CurvesEditHints ( const Curves curves_id_orig)
inline

Definition at line 441 of file BKE_curves.hh.

Member Function Documentation

◆ is_valid()

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 422 of file curves.cc.

References curves_id_orig, deform_mats, Curves::geometry, CurvesGeometry::point_num, and positions.

Member Data Documentation

◆ curves_id_orig

const Curves& blender::bke::CurvesEditHints::curves_id_orig

◆ deform_mats

std::optional<Array<float3x3> > blender::bke::CurvesEditHints::deform_mats

Matrices which transform point movement vectors from original data to corresponding movements of evaluated data.

Definition at line 439 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::nodes::transform_curve_edit_hints().

◆ positions

std::optional<Array<float3> > blender::bke::CurvesEditHints::positions

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 434 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(), blender::nodes::transform_curve_edit_hints(), and blender::nodes::translate_curve_edit_hints().


The documentation for this class was generated from the following files: