#include "config.h"
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <types.h>
#include <cgraph/list.h>
#include <common/render.h>
#include <common/utils.h>
#include <util/agxbuf.h>
#include <util/alloc.h>
#include <util/prisize_t.h>
Go to the source code of this file.
|
typedef double(* | radfunc_t) (double curlen, double totallen, double initwid) |
|
|
static void | addto (stroke_t *p, double x, double y) |
|
static double | myatan (double y, double x) |
|
static double | mymod (double original, double modulus) |
|
static void | insertArr (vararr_t *arr, pointf p, double l) |
|
static double | l2dist (pointf p0, pointf p1) |
|
static vararr_t | pathtolines (bezier *bez) |
|
static void | drawbevel (double x, double lineout, bool forward, double dir, double dir2, stroke_t *p) |
|
stroke_t | taper (bezier *bez, radfunc_t radfunc, double initwid) |
|
◆ BEZIERSUBDIVISION
#define BEZIERSUBDIVISION 20 |
◆ D2R
#define D2R |
( |
|
d | ) |
(M_PI*(d)/180.0) |
◆ lineto
#define lineto |
( |
|
p, |
|
|
|
x, |
|
|
|
y |
|
) |
| addto(p,x,y) |
◆ M_PI
#define M_PI 3.14159265358979323846 |
◆ moveto
#define moveto |
( |
|
p, |
|
|
|
x, |
|
|
|
y |
|
) |
| addto(p,x,y) |
◆ R2D
#define R2D |
( |
|
r | ) |
(180.0*(r)/M_PI) |
◆ radfunc_t
typedef double(* radfunc_t) (double curlen, double totallen, double initwid) |
◆ addto()
static void addto |
( |
stroke_t * |
p, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
static |
◆ drawbevel()
static void drawbevel |
( |
double |
x, |
|
|
double |
lineout, |
|
|
bool |
forward, |
|
|
double |
dir, |
|
|
double |
dir2, |
|
|
stroke_t * |
p |
|
) |
| |
|
static |
◆ insertArr()
static void insertArr |
( |
vararr_t * |
arr, |
|
|
pointf |
p, |
|
|
double |
l |
|
) |
| |
|
static |
◆ l2dist()
◆ myatan()
static double myatan |
( |
double |
y, |
|
|
double |
x |
|
) |
| |
|
static |
◆ mymod()
static double mymod |
( |
double |
original, |
|
|
double |
modulus |
|
) |
| |
|
static |
◆ pathtolines()
static vararr_t pathtolines |
( |
bezier * |
bez | ) |
|
|
static |
◆ taper()
Definition at line 181 of file taper.c.
References pathpoint::bevel, currentmiterlimit, D2R, pathpoint::dir, pathpoint::dir2, dist(), drawbevel(), free(), pathpoint::lengthsofar, lineto, pathpoint::lout, moveto, myatan(), mymod(), pathtolines(), SIZE_MAX, pathpoint::type, pathpoint::x, and pathpoint::y.
Referenced by emit_edge_graphics().
◆ currentmiterlimit
double currentmiterlimit = 10.0 |
|
static |