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>2016-04-15 11:10:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-04-15 13:36:38 +0300
commit8ac662c77aa59c9eea5fc85c4a40546bcb1b4557 (patch)
tree82b67353779c20e41e2f3f365baf21cc209dcbea /extern/curve_fit_nd/intern
parente56e7bd1ec3081a13e44319a1b2793f4043d07dd (diff)
New freehand curve drawing tool
- Access with Shift-LMB or from the 'Create' toolbar tab. - Uses curve fitting for bezier curves, with error and corner angle options. - Optional tablet pressure to curve radius mapping. - Depth can use the cursor or optionally draw onto the surface, for the entire stroke or using the stroke start. - Stroke plane can optionally be perpendicular to, or aligned to the surface normal. - Optional radius tapering and for start/end points. - Supports operator redo and calling from Python.
Diffstat (limited to 'extern/curve_fit_nd/intern')
-rw-r--r--extern/curve_fit_nd/intern/curve_fit_cubic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/extern/curve_fit_nd/intern/curve_fit_cubic.c b/extern/curve_fit_nd/intern/curve_fit_cubic.c
index d623b51ed0b..810cf92760d 100644
--- a/extern/curve_fit_nd/intern/curve_fit_cubic.c
+++ b/extern/curve_fit_nd/intern/curve_fit_cubic.c
@@ -846,7 +846,7 @@ static void fit_cubic_to_points(
* Take an array of 3d points.
* return the cubic splines
*/
-int curve_fit_cubic_from_points_db(
+int curve_fit_cubic_to_points_db(
const double *points,
const uint points_len,
const uint dims,
@@ -984,9 +984,9 @@ int curve_fit_cubic_from_points_db(
}
/**
- * A version of #curve_fit_cubic_from_points_db to handle floats
+ * A version of #curve_fit_cubic_to_points_db to handle floats
*/
-int curve_fit_cubic_from_points_fl(
+int curve_fit_cubic_to_points_fl(
const float *points,
const uint points_len,
const uint dims,
@@ -1009,7 +1009,7 @@ int curve_fit_cubic_from_points_fl(
float *cubic_array_fl = NULL;
uint cubic_array_len = 0;
- int result = curve_fit_cubic_from_points_db(
+ int result = curve_fit_cubic_to_points_db(
points_db, points_len, dims, error_threshold, corners, corners_len,
&cubic_array_db, &cubic_array_len,
r_cubic_orig_index,