|
Blender V4.3
|
Go to the source code of this file.
Functions | |
| struct bGPDcurve * | BKE_gpencil_stroke_editcurve_generate (struct bGPDstroke *gps, float error_threshold, float corner_angle, float stroke_radius) |
| 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_editcurve_subdivide (struct bGPDstroke *gps, int cuts) |
| void BKE_gpencil_editcurve_recalculate_handles | ( | struct bGPDstroke * | gps | ) |
Recalculate the handles of the edit curve of a grease pencil stroke.
Definition at line 275 of file gpencil_curve_legacy.cc.
References bGPDcurve_point::bezt, BKE_nurb_handle_calc(), bGPDcurve::curve_points, bGPDstroke::editcurve, bGPDcurve_point::flag, bGPDstroke::flag, GP_CURVE_POINT_SELECT, GP_STROKE_CYCLIC, GP_STROKE_NEEDS_CURVE_UPDATE, and bGPDcurve::tot_curve_points.
Referenced by createTransGPencil_curves(), and recalcData_gpencil_strokes().
| void BKE_gpencil_editcurve_stroke_sync_selection | ( | struct bGPdata * | gpd, |
| struct bGPDstroke * | gps, | ||
| struct bGPDcurve * | gpc ) |
Sync the selection from stroke to edit-curve.
Definition at line 249 of file gpencil_curve_legacy.cc.
References bGPDcurve_point::bezt, BEZT_DESEL_ALL, BEZT_SEL_ALL, bGPDcurve::curve_points, bGPDcurve::flag, bGPDcurve_point::flag, bGPDspoint::flag, bGPDstroke::flag, GP_CURVE_POINT_SELECT, GP_CURVE_SELECT, GP_SPOINT_SELECT, GP_STROKE_SELECT, gpencil_editstroke_deselect_all(), bGPDcurve_point::point_index, bGPDstroke::points, and bGPDcurve::tot_curve_points.
| void BKE_gpencil_editcurve_subdivide | ( | struct bGPDstroke * | gps, |
| int | cuts ) |
Definition at line 402 of file gpencil_curve_legacy.cc.
References bGPDcurve_point::bezt, BEZT_SEL_ALL, bGPDcurve::curve_points, bGPDstroke::editcurve, bGPDcurve_point::flag, bGPDstroke::flag, GP_CURVE_POINT_SELECT, GP_STROKE_CYCLIC, gpencil_editcurve_subdivide_count(), gpencil_editcurve_subdivide_curve_segment(), BezTriple::h1, BezTriple::h2, HD_ALIGN, is_cyclic(), MEM_callocN, MEM_freeN(), and bGPDcurve::tot_curve_points.
| struct bGPDcurve * BKE_gpencil_stroke_editcurve_generate | ( | struct bGPDstroke * | gps, |
| float | error_threshold, | ||
| float | corner_angle, | ||
| float | stroke_radius ) |
Creates a bGPDcurve by doing a cubic curve fitting on the grease pencil stroke points.
Definition at line 137 of file gpencil_curve_legacy.cc.
References bGPDcurve_point::bezt, BKE_gpencil_stroke_editcurve_new(), bGPDstroke::boundbox_max, bGPDstroke::boundbox_min, COORD_FITTING_INFLUENCE, bGPDcurve::curve_points, bGPDstroke::flag, free(), GP_STROKE_CYCLIC, gpencil_stroke_editcurve_generate_edgecases(), BezTriple::h1, BezTriple::h2, HD_ALIGN, HD_FREE, len_v3v3(), madd_v3_v3v3fl(), MEM_callocN, MEM_freeN(), mul_v3_v3fl(), mul_v4_v4fl(), POINT_DIM, bGPDcurve_point::point_index, bGPDstroke::points, bGPDcurve_point::pressure, bGPDspoint::pressure, bGPDcurve_point::strength, bGPDspoint::strength, sub_v3_v3v3(), bGPDstroke::totpoints, BezTriple::vec, bGPDcurve_point::vert_color, bGPDspoint::vert_color, and bGPDspoint::x.