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:
authorHans Goudey <h.goudey@me.com>2022-04-09 01:50:00 +0300
committerHans Goudey <h.goudey@me.com>2022-04-09 01:50:00 +0300
commit502d16e66788487113ba18f85f44ebd7eff6c492 (patch)
treed03f9dddde8937c1013d9316e8461eaa2c284102 /source/blender/blenkernel/BKE_curves.hh
parent4f961901226470446bb6de9ac3d8469ff3453671 (diff)
Fix: Various fixes and cleanups in new curves code
- Use "curve" instead of "spline" in comments - Use non-plural variable names - Tag topology dirty after resolution modified rather than positions - Reorder enum values to change which value is zero (and the default) - Remove a duplicate unused variable
Diffstat (limited to 'source/blender/blenkernel/BKE_curves.hh')
-rw-r--r--source/blender/blenkernel/BKE_curves.hh12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/BKE_curves.hh b/source/blender/blenkernel/BKE_curves.hh
index 9061bb9fb81..c4edeae99a4 100644
--- a/source/blender/blenkernel/BKE_curves.hh
+++ b/source/blender/blenkernel/BKE_curves.hh
@@ -40,7 +40,7 @@ namespace curves::nurbs {
struct BasisCache {
/**
* For each evaluated point, the weight for all control points that influences it.
- * The vector's size is the evaluated point count multiplied by the spline's order.
+ * The vector's size is the evaluated point count multiplied by the curve's order.
*/
Vector<float> weights;
/**
@@ -61,7 +61,7 @@ class CurvesGeometryRuntime {
public:
/**
* Cache of offsets into the evaluated array for each curve, accounting for all previous
- * evaluated points, Bezier curve vector segments, different resolutions per spline, etc.
+ * evaluated points, Bezier curve vector segments, different resolutions per curve, etc.
*/
mutable Vector<int> evaluated_offsets_cache;
mutable Vector<int> bezier_evaluated_offsets;
@@ -86,13 +86,13 @@ class CurvesGeometryRuntime {
mutable std::mutex length_cache_mutex;
mutable bool length_cache_dirty = true;
- /** Direction of the spline at each evaluated point. */
- mutable Vector<float3> evaluated_tangents_cache;
+ /** Direction of the curve at each evaluated point. */
+ mutable Vector<float3> evaluated_tangent_cache;
mutable std::mutex tangent_cache_mutex;
mutable bool tangent_cache_dirty = true;
/** Normal direction vectors for each evaluated point. */
- mutable Vector<float3> evaluated_normals_cache;
+ mutable Vector<float3> evaluated_normal_cache;
mutable std::mutex normal_cache_mutex;
mutable bool normal_cache_dirty = true;
};
@@ -515,7 +515,7 @@ int calculate_evaluated_size(
int knots_size(int points_num, int8_t order, bool cyclic);
/**
- * Calculate the knots for a spline given its properties, based on built-in standards defined by
+ * Calculate the knots for a curve given its properties, based on built-in standards defined by
* #KnotsMode.
*
* \note Theoretically any sorted values can be used for NURBS knots, but calculating based