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
path: root/extern
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
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')
-rw-r--r--extern/curve_fit_nd/curve_fit_nd.h4
-rw-r--r--extern/curve_fit_nd/intern/curve_fit_cubic.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/extern/curve_fit_nd/curve_fit_nd.h b/extern/curve_fit_nd/curve_fit_nd.h
index 67b0ed75b8e..d20921c186a 100644
--- a/extern/curve_fit_nd/curve_fit_nd.h
+++ b/extern/curve_fit_nd/curve_fit_nd.h
@@ -55,7 +55,7 @@
*
* \returns zero on success, nonzero is reserved for error values.
*/
-int curve_fit_cubic_from_points_db(
+int curve_fit_cubic_to_points_db(
const double *points,
const unsigned int points_len,
const unsigned int dims,
@@ -67,7 +67,7 @@ int curve_fit_cubic_from_points_db(
unsigned int **r_cubic_orig_index,
unsigned int **r_corner_index_array, unsigned int *r_corner_index_len);
-int curve_fit_cubic_from_points_fl(
+int curve_fit_cubic_to_points_fl(
const float *points,
const unsigned int points_len,
const unsigned int dims,
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,