Blender
V3.3
|
#include "BLI_array.hh"
#include "BLI_index_range.hh"
#include "BLI_listbase.h"
#include "BLI_map.hh"
#include "BLI_span.hh"
#include "BLI_string_ref.hh"
#include "BLI_task.hh"
#include "BLI_vector.hh"
#include "DNA_curve_types.h"
#include "BKE_anonymous_attribute.hh"
#include "BKE_curve.h"
#include "BKE_curves.hh"
#include "BKE_geometry_set.hh"
#include "BKE_spline.hh"
Go to the source code of this file.
Functions | |
static HandleType | handle_type_from_dna_bezt (const eBezTriple_Handle dna_handle_type) |
static NormalMode | normal_mode_from_dna_curve (const int twist_mode) |
static KnotsMode | knots_mode_from_dna_nurb (const short flag) |
static SplinePtr | spline_from_dna_bezier (const Nurb &nurb) |
static SplinePtr | spline_from_dna_nurbs (const Nurb &nurb) |
static SplinePtr | spline_from_dna_poly (const Nurb &nurb) |
std::unique_ptr< CurveEval > | curve_eval_from_dna_curve (const Curve &dna_curve, const ListBase &nurbs_list) |
std::unique_ptr< CurveEval > | curve_eval_from_dna_curve (const Curve &dna_curve) |
static void | copy_attributes_between_components (const blender::bke::AttributeAccessor &src_attributes, blender::bke::MutableAttributeAccessor &dst_attributes, Span< std::string > skip) |
std::unique_ptr< CurveEval > | curves_to_curve_eval (const Curves &curves_id) |
Curves * | curve_eval_to_curves (const CurveEval &curve_eval) |
|
static |
Definition at line 346 of file curve_eval.cc.
References blender::Span< T >::contains(), blender::bke::AttributeMetaData::data_type, blender::bke::AttributeMetaData::domain, blender::bke::GAttributeWriter::finish(), blender::bke::AttributeAccessor::for_all(), if(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write(), blender::GVMutableArray::set_all(), and blender::bke::GAttributeWriter::varray.
Referenced by curve_eval_to_curves(), and curves_to_curve_eval().
Definition at line 341 of file curve_eval.cc.
References BKE_curve_nurbs_get_for_read(), and curve_eval_from_dna_curve().
std::unique_ptr<CurveEval> curve_eval_from_dna_curve | ( | const Curve & | dna_curve, |
const ListBase & | nurbs_list | ||
) |
Definition at line 303 of file curve_eval.cc.
References curve, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::threading::parallel_for(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and splines.
Referenced by curve_eval_from_dna_curve().
Definition at line 463 of file curve_eval.cc.
References ATTR_DOMAIN_CURVE, ATTR_DOMAIN_POINT, CurveComponentLegacy::attributes(), CurveComponent::attributes_for_write(), BLI_assert_unreachable, CurveEval::control_point_offsets(), copy_attributes_between_components(), CURVE_TYPE_BEZIER, CURVE_TYPE_CATMULL_ROM, CURVE_TYPE_NURBS, CURVE_TYPE_POLY, curves, blender::bke::curves_new_nomain(), Editable, blender::bke::SpanAttributeWriter< T >::finish(), Curves::geometry, CurveEval::has_spline_with_type(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), ReadOnly, CurveComponentLegacy::replace(), CurveComponent::replace(), blender::bke::SpanAttributeWriter< T >::span, CurveEval::splines(), src, CurveEval::total_control_point_num(), Spline::type(), and blender::bke::CurvesGeometry::wrap().
Definition at line 373 of file curve_eval.cc.
References ATTR_DOMAIN_CURVE, ATTR_DOMAIN_POINT, CurveComponentLegacy::attributes_for_write(), BLI_assert_unreachable, copy_attributes_between_components(), CURVE_TYPE_BEZIER, CURVE_TYPE_CATMULL_ROM, CURVE_TYPE_NURBS, CURVE_TYPE_POLY, curves, Editable, Curves::geometry, blender::VArrayCommon< T >::index_range(), blender::bke::AttributeAccessor::lookup_or_default(), ReadOnly, CurveComponentLegacy::replace(), CurveComponent::replace(), blender::IndexRange::size(), and blender::bke::CurvesGeometry::wrap().
Referenced by blender::nodes::node_geo_curve_trim_cc::geometry_set_curve_trim(), and blender::nodes::node_geo_curve_to_points_cc::node_geo_exec().
|
static |
Definition at line 170 of file curve_eval.cc.
References BEZIER_HANDLE_ALIGN, BEZIER_HANDLE_AUTO, BEZIER_HANDLE_FREE, BEZIER_HANDLE_VECTOR, BLI_assert_unreachable, HD_ALIGN, HD_ALIGN_DOUBLESIDE, HD_AUTO, HD_AUTO_ANIM, HD_FREE, and HD_VECT.
|
static |
Definition at line 203 of file curve_eval.cc.
References BLI_assert_unreachable, CU_NURB_BEZIER, CU_NURB_ENDPOINT, NURBS_KNOT_MODE_BEZIER, NURBS_KNOT_MODE_ENDPOINT, NURBS_KNOT_MODE_ENDPOINT_BEZIER, and NURBS_KNOT_MODE_NORMAL.
Referenced by spline_from_dna_nurbs().
|
static |
Definition at line 190 of file curve_eval.cc.
References BLI_assert_unreachable, CU_TWIST_MINIMUM, CU_TWIST_TANGENT, CU_TWIST_Z_UP, NORMAL_MODE_MINIMUM_TWIST, and NORMAL_MODE_Z_UP.
Definition at line 220 of file curve_eval.cc.
References Nurb::bezt, CU_NURB_CYCLIC, Nurb::flagu, blender::threading::parallel_for(), Nurb::pntsu, positions, radii, and Nurb::resolu.
Definition at line 252 of file curve_eval.cc.
References Nurb::bp, CU_NURB_CYCLIC, Nurb::flagu, knots_mode_from_dna_nurb(), Nurb::orderu, blender::threading::parallel_for(), Nurb::pntsu, positions, radii, and Nurb::resolu.
Definition at line 280 of file curve_eval.cc.
References Nurb::bp, CU_NURB_CYCLIC, Nurb::flagu, blender::threading::parallel_for(), Nurb::pntsu, positions, and radii.