Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_spline.hh
| Show First 20 Lines • Show All 564 Lines • ▼ Show 20 Lines | public: | ||||
| void translate(const blender::float3 &translation); | void translate(const blender::float3 &translation); | ||||
| void transform(const blender::float4x4 &matrix); | void transform(const blender::float4x4 &matrix); | ||||
| void bounds_min_max(blender::float3 &min, blender::float3 &max, const bool use_evaluated) const; | void bounds_min_max(blender::float3 &min, blender::float3 &max, const bool use_evaluated) const; | ||||
| blender::Array<int> control_point_offsets() const; | blender::Array<int> control_point_offsets() const; | ||||
| blender::Array<int> evaluated_point_offsets() const; | blender::Array<int> evaluated_point_offsets() const; | ||||
| blender::Array<float> accumulated_spline_lengths() const; | blender::Array<float> accumulated_spline_lengths() const; | ||||
| void mark_cache_invalid(); | |||||
HooglyBoogly: I didn't add something like this already because I'd like to make the cache invalidation more… | |||||
Done Inline ActionsIn that case, I recommend you add methods like positions_changed(), tilt_changed(), ... to the splines and curve. Internally they can still call mark_cache_invalid for now. JacquesLucke: In that case, I recommend you add methods like `positions_changed()`, `tilt_changed()`, ... to… | |||||
| void assert_valid_point_attributes() const; | void assert_valid_point_attributes() const; | ||||
| }; | }; | ||||
| std::unique_ptr<CurveEval> curve_eval_from_dna_curve(const Curve &curve, | std::unique_ptr<CurveEval> curve_eval_from_dna_curve(const Curve &curve, | ||||
| const ListBase &nurbs_list); | const ListBase &nurbs_list); | ||||
| std::unique_ptr<CurveEval> curve_eval_from_dna_curve(const Curve &dna_curve); | std::unique_ptr<CurveEval> curve_eval_from_dna_curve(const Curve &dna_curve); | ||||
I didn't add something like this already because I'd like to make the cache invalidation more specific in the future rather than more generic.
I guess we could add an IndexMask input here if that becomes an issue.