Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-10-30 14:36:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-10-30 14:36:51 +0300
commit80465ba35a163c9832a4666fac74465561b7c6c5 (patch)
tree59c1aac8ca95dbdab195971ec808f703fc4a5249 /source/blender/blenkernel/BKE_curve.h
parente8daf2e3ea17c2e9569e6fc9b49879c74d9a8c22 (diff)
Curve Decimate: new tool to simplify bezier curves
Access from the curve clean-up menu
Diffstat (limited to 'source/blender/blenkernel/BKE_curve.h')
-rw-r--r--source/blender/blenkernel/BKE_curve.h10
1 files changed, 10 insertions, 0 deletions
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__ */