From 80465ba35a163c9832a4666fac74465561b7c6c5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 30 Oct 2017 22:36:51 +1100 Subject: Curve Decimate: new tool to simplify bezier curves Access from the curve clean-up menu --- source/blender/blenkernel/BKE_curve.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/blender/blenkernel/BKE_curve.h') diff --git a/source/blender/blenkernel/BKE_curve.h b/source/blender/blenkernel/BKE_curve.h index a900ba43443..30db8f45059 100644 --- a/source/blender/blenkernel/BKE_curve.h +++ b/source/blender/blenkernel/BKE_curve.h @@ -218,4 +218,14 @@ struct EvaluationContext; void BKE_curve_eval_geometry(struct EvaluationContext *eval_ctx, struct Curve *curve); +/* curve_decimate.c */ +unsigned int BKE_curve_decimate_bezt_array( + struct BezTriple *bezt_array, const unsigned int bezt_array_len, const unsigned int resolu, const bool is_cyclic, + const char flag_test, const char flag_set, + const float error_sq_max, const unsigned int error_target_len); + +void BKE_curve_decimate_nurb( + struct Nurb *nu, const unsigned int resolu, + const float error_sq_max, const unsigned int error_target_len); + #endif /* __BKE_CURVE_H__ */ -- cgit v1.2.3