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:
authorAntonio Vazquez <blendergit@gmail.com>2020-07-03 13:13:38 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-07-03 13:55:47 +0300
commit972d1700cdd8ed4e47156e69b524e9986da35ae3 (patch)
tree10570e70c05dd1eb92e9a7936b4c572de00b0f30 /source/blender/blenkernel/intern/gpencil_geom.c
parent4ccd96f1a43c145657eb198cd8dbd00b7ca79799 (diff)
GPencil: Cleanup more comments (cont)
Diffstat (limited to 'source/blender/blenkernel/intern/gpencil_geom.c')
-rw-r--r--source/blender/blenkernel/intern/gpencil_geom.c21
1 files changed, 16 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/gpencil_geom.c b/source/blender/blenkernel/intern/gpencil_geom.c
index 43a85cc14c7..0da7891c7bd 100644
--- a/source/blender/blenkernel/intern/gpencil_geom.c
+++ b/source/blender/blenkernel/intern/gpencil_geom.c
@@ -616,6 +616,7 @@ bool BKE_gpencil_stroke_trim_points(bGPDstroke *gps, const int index_from, const
return true;
}
+
/**
* Split stroke.
* \param gpf Grease pencil frame
@@ -1141,7 +1142,7 @@ void BKE_gpencil_stroke_2d_flat_ref(const bGPDspoint *ref_points,
*r_direction = (int)locy[2];
}
-/* calc texture coordinates using flat projected points */
+/* Calc texture coordinates using flat projected points. */
static void gpencil_calc_stroke_fill_uv(const float (*points2d)[2],
bGPDstroke *gps,
const float minv[2],
@@ -1286,6 +1287,12 @@ void BKE_gpencil_stroke_geometry_update(bGPDstroke *gps)
BKE_gpencil_stroke_boundingbox_calc(gps);
}
+/**
+ * Calculate grease pencil stroke length.
+ * @param gps Grease pencil stroke
+ * @param use_3d Set to true to use 3D points
+ * @return Length of the stroke
+ */
float BKE_gpencil_stroke_length(const bGPDstroke *gps, bool use_3d)
{
if (!gps->points || gps->totpoints < 2) {
@@ -1309,7 +1316,7 @@ float BKE_gpencil_stroke_length(const bGPDstroke *gps, bool use_3d)
}
/**
- * Trim stroke to the first intersection or loop
+ * Trim stroke to the first intersection or loop.
* \param gps: Stroke data
*/
bool BKE_gpencil_stroke_trim(bGPDstroke *gps)
@@ -1406,7 +1413,7 @@ bool BKE_gpencil_stroke_trim(bGPDstroke *gps)
}
/**
- * Close stroke
+ * Close grease pencil stroke.
* \param gps: Stroke to close
*/
bool BKE_gpencil_stroke_close(bGPDstroke *gps)
@@ -1499,7 +1506,7 @@ bool BKE_gpencil_stroke_close(bGPDstroke *gps)
* \param gpf Grease pencil frame
* \param gps Grease pencil stroke
* \param tag Type of tag for point
-*/
+ */
void BKE_gpencil_dissolve_points(bGPDframe *gpf, bGPDstroke *gps, const short tag)
{
bGPDspoint *pt;
@@ -2386,7 +2393,11 @@ void BKE_gpencil_convert_mesh(Main *bmain,
DEG_id_tag_update(&gpd->id, ID_RECALC_GEOMETRY | ID_RECALC_COPY_ON_WRITE);
}
-/* Apply Transforms */
+/**
+ * Apply grease pencil Transforms.
+ * @param gpd Grease pencil data-block
+ * @param mat Transformation matrix
+ */
void BKE_gpencil_transform(bGPdata *gpd, float mat[4][4])
{
if (gpd == NULL) {