Blender V5.0
curves_geometry.cc File Reference

Go to the source code of this file.

Classes

struct  blender::bke::EvalData

Namespaces

namespace  blender
namespace  blender::bke

Functions

Accessors
std::array< int, CURVE_TYPES_NUMblender::bke::calculate_type_counts (const VArray< int8_t > &types)
Evaluation
template<typename CountFn>
void blender::bke::build_offsets (MutableSpan< int > offsets, const CountFn &count_fn)
static void blender::bke::calculate_evaluated_offsets (const CurvesGeometry &curves, MutableSpan< int > offsets, MutableSpan< int > all_bezier_offsets)
static void blender::bke::rotate_directions_around_axes (MutableSpan< float3 > directions, const Span< float3 > axes, const Span< float > angles)
static void blender::bke::normalize_span (MutableSpan< float3 > data)
static void blender::bke::evaluate_generic_data_for_curve (const EvalData &eval_data, const int curve_index, const GSpan src, GMutableSpan dst)
Operations
static void blender::bke::translate_positions (MutableSpan< float3 > positions, const float3 &translation)
static void blender::bke::copy_point_selection_custom_knots (const CurvesGeometry &curves, const IndexMask &points_to_copy, const Span< int > curve_point_counts, CurvesGeometry &dst_curves)
CurvesGeometry blender::bke::curves_copy_point_selection (const CurvesGeometry &curves, const IndexMask &points_to_copy, const AttributeFilter &attribute_filter)
static void blender::bke::copy_curve_selection_custom_knots (const CurvesGeometry &curves, const IndexMask &curves_to_copy, CurvesGeometry &dst_curves)
CurvesGeometry blender::bke::curves_copy_curve_selection (const CurvesGeometry &curves, const IndexMask &curves_to_copy, const AttributeFilter &attribute_filter)
static void blender::bke::reverse_custom_knots (MutableSpan< float > custom_knots)
template<typename T>
static void blender::bke::reverse_curve_point_data (const CurvesGeometry &curves, const IndexMask &curve_selection, MutableSpan< T > data)
template<typename T>
static void blender::bke::reverse_swap_curve_point_data (const CurvesGeometry &curves, const IndexMask &curve_selection, MutableSpan< T > data_a, MutableSpan< T > data_b)
CurvesGeometry blender::bke::curves_new_no_attributes (int point_num, int curve_num)
Domain Interpolation
template<typename T>
static void blender::bke::adapt_curve_domain_point_to_curve_impl (const CurvesGeometry &curves, const VArray< T > &old_values, MutableSpan< T > r_values)
template<>
void blender::bke::adapt_curve_domain_point_to_curve_impl (const CurvesGeometry &curves, const VArray< bool > &old_values, MutableSpan< bool > r_values)
static GVArray blender::bke::adapt_curve_domain_point_to_curve (const CurvesGeometry &curves, const GVArray &varray)
template<typename T>
static void blender::bke::adapt_curve_domain_curve_to_point_impl (const CurvesGeometry &curves, const VArray< T > &old_values, MutableSpan< T > r_values)
static GVArray blender::bke::adapt_curve_domain_curve_to_point (const CurvesGeometry &curves, const GVArray &varray)

Variables

constexpr StringRef blender::bke::ATTR_POSITION = "position"
constexpr StringRef blender::bke::ATTR_RADIUS = "radius"
constexpr StringRef blender::bke::ATTR_TILT = "tilt"
constexpr StringRef blender::bke::ATTR_CURVE_TYPE = "curve_type"
constexpr StringRef blender::bke::ATTR_CYCLIC = "cyclic"
constexpr StringRef blender::bke::ATTR_RESOLUTION = "resolution"
constexpr StringRef blender::bke::ATTR_NORMAL_MODE = "normal_mode"
constexpr StringRef blender::bke::ATTR_HANDLE_TYPE_LEFT = "handle_type_left"
constexpr StringRef blender::bke::ATTR_HANDLE_TYPE_RIGHT = "handle_type_right"
constexpr StringRef blender::bke::ATTR_HANDLE_POSITION_LEFT = "handle_left"
constexpr StringRef blender::bke::ATTR_HANDLE_POSITION_RIGHT = "handle_right"
constexpr StringRef blender::bke::ATTR_NURBS_ORDER = "nurbs_order"
constexpr StringRef blender::bke::ATTR_NURBS_WEIGHT = "nurbs_weight"
constexpr StringRef blender::bke::ATTR_NURBS_KNOTS_MODE = "knots_mode"
constexpr StringRef blender::bke::ATTR_SURFACE_UV_COORDINATE = "surface_uv_coordinate"