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 <campbell@blender.org>2022-04-28 07:03:47 +0300
committerCampbell Barton <campbell@blender.org>2022-04-28 07:03:47 +0300
commiteb4b79c5562ad6cd13b45c2e69a7b95628853e17 (patch)
tree2a57c63f2eee49d458a18b100b5555709acfcd30 /source/blender/blenkernel/BKE_curves.hh
parent9e2d80c49ec0c0160597d1c7707082a662bdea69 (diff)
Cleanup: unbalanced doxy sections, add some sections
Diffstat (limited to 'source/blender/blenkernel/BKE_curves.hh')
-rw-r--r--source/blender/blenkernel/BKE_curves.hh36
1 files changed, 32 insertions, 4 deletions
diff --git a/source/blender/blenkernel/BKE_curves.hh b/source/blender/blenkernel/BKE_curves.hh
index 4bfbe0cd27f..fe2c6196221 100644
--- a/source/blender/blenkernel/BKE_curves.hh
+++ b/source/blender/blenkernel/BKE_curves.hh
@@ -401,6 +401,10 @@ class CurvesGeometry : public ::CurvesGeometry {
namespace curves {
+/* -------------------------------------------------------------------- */
+/** \name Inline Curve Methods
+ * \{ */
+
/**
* The number of segments between control points, accounting for the last segment of cyclic
* curves. The logic is simple, but this function should be used to make intentions clearer.
@@ -422,6 +426,12 @@ inline float3 decode_surface_bary_coord(const float2 &v)
return {v.x, v.y, 1.0f - v.x - v.y};
}
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name Curve Poly Methods
+ * \{ */
+
namespace poly {
/**
@@ -447,6 +457,12 @@ void calculate_normals_z_up(Span<float3> tangents, MutableSpan<float3> normals);
} // namespace poly
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name Curve Bezier Methods
+ * \{ */
+
namespace bezier {
/**
@@ -547,6 +563,12 @@ void interpolate_to_evaluated(GSpan src, Span<int> evaluated_offsets, GMutableSp
} // namespace bezier
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name Curve Catmull-Rom Methods
+ * \{ */
+
namespace catmull_rom {
/**
@@ -564,6 +586,12 @@ void interpolate_to_evaluated(GSpan src, bool cyclic, int resolution, GMutableSp
} // namespace catmull_rom
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name Curve NURBS Methods
+ * \{ */
+
namespace nurbs {
/**
@@ -629,6 +657,8 @@ void interpolate_to_evaluated(const BasisCache &basis_cache,
} // namespace nurbs
+/** \} */
+
} // namespace curves
Curves *curves_new_nomain(int points_num, int curves_num);
@@ -640,8 +670,6 @@ Curves *curves_new_nomain_single(int points_num, CurveType type);
std::array<int, CURVE_TYPES_NUM> calculate_type_counts(const VArray<int8_t> &types);
-/** \} */
-
/* -------------------------------------------------------------------- */
/** \name #CurvesGeometry Inline Methods
* \{ */
@@ -767,8 +795,8 @@ inline bool point_is_sharp(const Span<int8_t> handle_types_left,
ELEM(handle_types_right[index], BEZIER_HANDLE_VECTOR, BEZIER_HANDLE_FREE);
}
-} // namespace curves::bezier
-
/** \} */
+} // namespace curves::bezier
+
} // namespace blender::bke