From 91248876e517983531c44ffc1692674684c67eed Mon Sep 17 00:00:00 2001 From: YimingWu Date: Thu, 14 Nov 2019 19:18:23 +0100 Subject: GPencil MultiStroke modifier This patch includes a modifiers that developed for NPR rendering. - MultiStroke modifier that generates multiple strokes around the original ones. Differential Revision: https://developer.blender.org/D5795 --- source/blender/blenkernel/BKE_gpencil.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source/blender/blenkernel/BKE_gpencil.h') diff --git a/source/blender/blenkernel/BKE_gpencil.h b/source/blender/blenkernel/BKE_gpencil.h index d09917a9e41..21356db8abf 100644 --- a/source/blender/blenkernel/BKE_gpencil.h +++ b/source/blender/blenkernel/BKE_gpencil.h @@ -125,6 +125,12 @@ struct bGPDstroke *BKE_gpencil_add_stroke(struct bGPDframe *gpf, int totpoints, short thickness); +struct bGPDstroke *BKE_gpencil_add_stroke_existing_style(struct bGPDframe *gpf, + struct bGPDstroke *existing, + int mat_idx, + int totpoints, + short thickness); + /* Stroke and Fill - Alpha Visibility Threshold */ #define GPENCIL_ALPHA_OPACITY_THRESH 0.001f #define GPENCIL_STRENGTH_MIN 0.003f @@ -238,6 +244,18 @@ bool BKE_gpencil_smooth_stroke_uv(struct bGPDstroke *gps, int point_index, float bool BKE_gpencil_close_stroke(struct bGPDstroke *gps); void BKE_gpencil_dissolve_points(struct bGPDframe *gpf, struct bGPDstroke *gps, const short tag); +bool BKE_gpencil_stretch_stroke(struct bGPDstroke *gps, const float dist, const float tip_length); +bool BKE_gpencil_trim_stroke_points(struct bGPDstroke *gps, + const int index_from, + const int index_to); +bool BKE_gpencil_split_stroke(struct bGPDframe *gpf, + struct bGPDstroke *gps, + const int before_index, + struct bGPDstroke **remaining_gps); +bool BKE_gpencil_shrink_stroke(struct bGPDstroke *gps, const float dist); + +float BKE_gpencil_stroke_length(const struct bGPDstroke *gps, bool use_3d); + void BKE_gpencil_get_range_selected(struct bGPDlayer *gpl, int *r_initframe, int *r_endframe); float BKE_gpencil_multiframe_falloff_calc( struct bGPDframe *gpf, int actnum, int f_init, int f_end, struct CurveMapping *cur_falloff); -- cgit v1.2.3