Euphoria
|
polybezier.h
Go to the documentation of this file.
13 // paper.js, smooth and simpify(path fitter) path functions: https://github.com/paperjs/paper.js/blob/develop/src/path/PathFitter.js https://github.com/paperjs/paper.js/blob/develop/src/path/PathItem.js#L466
14 // path fitter original code: https://github.com/erich666/GraphicsGems/blob/master/gems/FitCurves.c
17 // bezier path - a bezier path that can either be open or closed, has anchor points, control points
18 // vertex path (or poly line) - a path with points with straight linear interpolated lines, can either be open or closed
21 // can use a tesselator function to create triangulated/convex polygons from closed paths with closed paths as holes:
23 // https://github.com/SebLague/Shape-Editor-Tool/blob/master/Shape%20Editor%20E04/Assets/Geometry/Triangulator.cs
Definition: argparse.cc:45
BezierSegment2 get_segment(int i) const
Definition: polybezier.cc:385
StepIteratorCreator< size_t > iterate_points() const
Definition: polybezier.cc:348
static bool is_anchor_point(size_t i)
Definition: polybezier.cc:360
static bool is_control_point(size_t i)
Definition: polybezier.cc:366
void set_auto_set_control_points(bool is_autoset)
Definition: polybezier.cc:404
StepIteratorCreator< int > iterate_segments() const
Definition: polybezier.cc:379
void move_point(int i, const vec2f &delta)
Definition: polybezier.cc:373
void toggle_auto_set_control_points()
Definition: polybezier.cc:410
Definition: iterate.h:56