Blender V4.5
BKE_gpencil_geom_legacy.h File Reference

Go to the source code of this file.

Functions

void BKE_gpencil_stroke_2d_flat (const struct bGPDspoint *points, int totpoints, float(*points2d)[2], int *r_direction)
void BKE_gpencil_stroke_fill_triangulate (struct bGPDstroke *gps)
void BKE_gpencil_stroke_geometry_update (struct bGPdata *gpd, struct bGPDstroke *gps)
void BKE_gpencil_stroke_uv_update (struct bGPDstroke *gps)
struct bGPDstrokeBKE_gpencil_stroke_delete_tagged_points (struct bGPdata *gpd, struct bGPDframe *gpf, struct bGPDstroke *gps, struct bGPDstroke *next_stroke, int tag_flags, bool select, bool flat_cap, int limit)

Function Documentation

◆ BKE_gpencil_stroke_2d_flat()

void BKE_gpencil_stroke_2d_flat ( const struct bGPDspoint * points,
int totpoints,
float(*) points2d[2],
int * r_direction )

Get points of stroke always flat to view not affected by camera view or view position.

Parameters
pointsArray of grease pencil points (3D)
totpointsTotal of points
points2dResult array of 2D points
r_directionReturn Concave (-1), Convex (1), or Auto-detect (0)

References BKE_gpencil_stroke_2d_flat(), BKE_gpencil_stroke_delete_tagged_points(), BKE_gpencil_stroke_fill_triangulate(), BKE_gpencil_stroke_geometry_update(), BKE_gpencil_stroke_uv_update(), and select.

Referenced by BKE_gpencil_stroke_2d_flat(), BKE_gpencil_stroke_2d_flat(), and BKE_gpencil_stroke_fill_triangulate().

◆ BKE_gpencil_stroke_delete_tagged_points()

◆ BKE_gpencil_stroke_fill_triangulate()

◆ BKE_gpencil_stroke_geometry_update()

void BKE_gpencil_stroke_geometry_update ( struct bGPdata * gpd,
struct bGPDstroke * gps )

◆ BKE_gpencil_stroke_uv_update()

void BKE_gpencil_stroke_uv_update ( struct bGPDstroke * gps)