[Bf-blender-cvs] [adc007d4e78] sculpt-dev: sculpt-dev: Rename BLI_arc_spline.hh to BLI_even_spline.hh

Joseph Eagar noreply at git.blender.org
Tue Nov 1 20:16:40 CET 2022


Commit: adc007d4e788643f825397feec076912a3fe2180
Author: Joseph Eagar
Date:   Tue Nov 1 12:15:48 2022 -0700
Branches: sculpt-dev
https://developer.blender.org/rBadc007d4e788643f825397feec076912a3fe2180

sculpt-dev: Rename BLI_arc_spline.hh to BLI_even_spline.hh

Contracting "arc length parameterized" to "arc" is ambigous
(could mean a circle spline).  Instead use "even", short for
"evenly spaced."

===================================================================

R098	source/blender/blenlib/BLI_arc_spline.hh	source/blender/blenlib/BLI_even_spline.hh
M	source/blender/blenlib/CMakeLists.txt
M	source/blender/editors/sculpt_paint/paint_stroke.cc

===================================================================

diff --git a/source/blender/blenlib/BLI_arc_spline.hh b/source/blender/blenlib/BLI_even_spline.hh
similarity index 98%
rename from source/blender/blenlib/BLI_arc_spline.hh
rename to source/blender/blenlib/BLI_even_spline.hh
index 00cdc5be8e1..4b80df0202c 100644
--- a/source/blender/blenlib/BLI_arc_spline.hh
+++ b/source/blender/blenlib/BLI_even_spline.hh
@@ -613,11 +613,6 @@ template<typename Float, int axes = 2> class BezierSpline {
       Vector dva = lastdv;
       Vector a = lastp;
 
-      // Vector dva = derivative(s);
-      // Vector dvb = derivative(s + ds);
-      // Vector a = evaluate(s);
-      // Vector b = evaluate(s + ds);
-
       Vector vec1 = a - p;
       Vector vec2 = b - p;
 
diff --git a/source/blender/blenlib/CMakeLists.txt b/source/blender/blenlib/CMakeLists.txt
index 25776cd69a2..671687e756b 100644
--- a/source/blender/blenlib/CMakeLists.txt
+++ b/source/blender/blenlib/CMakeLists.txt
@@ -313,7 +313,7 @@ set(SRC
   BLI_sort.h
   BLI_sort.hh
   BLI_sort_utils.h
-  BLI_arc_spline.hh
+  BLI_even_spline.hh
   BLI_span.hh
   BLI_stack.h
   BLI_stack.hh
diff --git a/source/blender/editors/sculpt_paint/paint_stroke.cc b/source/blender/editors/sculpt_paint/paint_stroke.cc
index 388140903ce..31a8443d3dd 100644
--- a/source/blender/editors/sculpt_paint/paint_stroke.cc
+++ b/source/blender/editors/sculpt_paint/paint_stroke.cc
@@ -7,7 +7,7 @@
 
 #include "MEM_guardedalloc.h"
 
-#include "BLI_arc_spline.hh"
+#include "BLI_even_spline.hh"
 #include "BLI_listbase.h"
 #include "BLI_math.h"
 #include "BLI_rand.h"
@@ -58,7 +58,7 @@ using blender::float3;
 static void paint_stroke_add_sample(
     const Paint *paint, PaintStroke *stroke, float x, float y, float pressure);
 
-//#define DRAW_DEBUG_VIS
+#define DRAW_DEBUG_VIS
 
 static int paint_stroke_max_points(const Paint *paint, PaintStroke *stroke)
 {



More information about the Bf-blender-cvs mailing list