Blender  V3.3
BKE_gpencil_curve.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2008 Blender Foundation. */
3 
4 #pragma once
5 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 struct Main;
15 struct Object;
16 struct Scene;
17 struct bGPDcurve;
18 struct bGPDlayer;
19 struct bGPDstroke;
20 struct bGPdata;
21 
33 void BKE_gpencil_convert_curve(struct Main *bmain,
34  struct Scene *scene,
35  struct Object *ob_gp,
36  struct Object *ob_cu,
37  bool use_collections,
38  float scale_thickness,
39  float sample);
40 
45  float error_threshold,
46  float corner_angle,
47  float stroke_radius);
52  struct bGPDlayer *gpl,
53  struct bGPDstroke *gps);
58  struct bGPDstroke *gps,
59  struct bGPDcurve *gpc);
64  struct bGPDstroke *gps,
65  struct bGPDcurve *gpc);
72  uint resolution,
73  bool is_adaptive);
78 void BKE_gpencil_editcurve_subdivide(struct bGPDstroke *gps, int cuts);
79 
80 #ifdef __cplusplus
81 }
82 #endif
void BKE_gpencil_stroke_update_geometry_from_editcurve(struct bGPDstroke *gps, uint resolution, bool is_adaptive)
void BKE_gpencil_convert_curve(struct Main *bmain, struct Scene *scene, struct Object *ob_gp, struct Object *ob_cu, bool use_collections, float scale_thickness, float sample)
void BKE_gpencil_stroke_editcurve_update(struct bGPdata *gpd, struct bGPDlayer *gpl, struct bGPDstroke *gps)
void BKE_gpencil_editcurve_subdivide(struct bGPDstroke *gps, int cuts)
void BKE_gpencil_strokes_selected_update_editcurve(struct bGPdata *gpd)
void BKE_gpencil_stroke_editcurve_sync_selection(struct bGPdata *gpd, struct bGPDstroke *gps, struct bGPDcurve *gpc)
void BKE_gpencil_editcurve_stroke_sync_selection(struct bGPdata *gpd, struct bGPDstroke *gps, struct bGPDcurve *gpc)
void BKE_gpencil_editcurve_recalculate_handles(struct bGPDstroke *gps)
void BKE_gpencil_strokes_selected_sync_selection_editcurve(struct bGPdata *gpd)
struct bGPDcurve * BKE_gpencil_stroke_editcurve_generate(struct bGPDstroke *gps, float error_threshold, float corner_angle, float stroke_radius)
unsigned int uint
Definition: BLI_sys_types.h:67
Scene scene
bool is_adaptive(CpuPatchTable *patch_table)
Definition: eval_output.cc:24
Definition: BKE_main.h:121