~inkscape+th-we/inkscape/inkscape

« back to all changes in this revision

Viewing changes to src/helper/geom-pathstroke.h

  • Committer: Alexander Brock
  • Date: 2016-12-02 22:07:35 UTC
  • mfrom: (15280.1.6 inkscape)
  • Revision ID: zaibu@lunar-orbit.de-20161202220735-7g5oikhk2e2hc0c6
Improve precision of offset_cubic

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 * @param[in] miter Miter limit. Only used when @a join is one of JOIN_MITER, JOIN_MITER_CLIP, and JOIN_EXTRAPOLATE.
43
43
 * @param[in] join  Line join type used during offset. Member of LineJoinType enum.
44
44
 * @param[in] cap   Line cap type used during stroking. Member of LineCapType enum.
 
45
 * @param[in] tolerance Tolerance, values smaller than 0 lead to automatic tolerance depending on width.
45
46
 *
46
47
 * @return Stroked path.
47
48
 *         If the input path is closed, the resultant vector will contain two paths.
48
49
 *         Otherwise, there should be only one in the output.
49
50
 */
50
 
Geom::PathVector outline(Geom::Path const& input, double width, double miter, LineJoinType join = JOIN_BEVEL, LineCapType cap = BUTT_FLAT);
 
51
Geom::PathVector outline(
 
52
        Geom::Path const& input,
 
53
        double width,
 
54
        double miter,
 
55
        LineJoinType join = JOIN_BEVEL,
 
56
        LineCapType cap = BUTT_FLAT,
 
57
        double tolerance = -1);
51
58
 
52
59
/**
53
60
 * Offset the input path by @a width.
57
64
 * @param[in] width Amount to offset.
58
65
 * @param[in] miter Miter limit. Only used when @a join is one of JOIN_MITER, JOIN_MITER_CLIP, and JOIN_EXTRAPOLATE.
59
66
 * @param[in] join  Line join type used during offset. Member of LineJoinType enum.
 
67
 * @param[in] tolerance Tolerance, values smaller than 0 lead to automatic tolerance depending on width.
60
68
 *
61
69
 * @return Offsetted output.
62
70
 */
63
 
Geom::Path half_outline(Geom::Path const& input, double width, double miter, LineJoinType join = JOIN_BEVEL);
 
71
Geom::Path half_outline(
 
72
        Geom::Path const& input,
 
73
        double width,
 
74
        double miter,
 
75
        LineJoinType join = JOIN_BEVEL,
 
76
        double tolerance = -1);
64
77
 
65
78
/**
66
79
 * Builds a join on the provided path.