/inkscape/src/2geom/ |
H A D | bezier-curve.cpp | 129 Coord BezierCurve::length(Coord tolerance) const 140 return bezier_length(pts[0], pts[1], pts[2], tolerance); 145 return bezier_length(pts[0], pts[1], pts[2], pts[3], tolerance); 148 return bezier_length(controlPoints(), tolerance); 362 static Coord bezier_length_internal(std::vector<Point> &v1, Coord tolerance, int level) argument 368 * error tolerance, we can be sure that the true value is no further than 369 * 0.5 * tolerance from their arithmetic mean. When it's larger, we recursively 379 if (upper - lower <= 2*tolerance || level >= 8) { 437 return bezier_length_internal(v1, 0.5 * tolerance, level + 1) + 438 bezier_length_internal(v2, 0.5 * tolerance, leve 443 bezier_length(std::vector<Point> const &points, Coord tolerance) argument 450 bezier_length_internal(Point a0, Point a1, Point a2, Coord tolerance, int level) argument 471 bezier_length(Point a0, Point a1, Point a2, Coord tolerance) argument 476 bezier_length_internal(Point a0, Point a1, Point a2, Point a3, Coord tolerance, int level) argument 500 bezier_length(Point a0, Point a1, Point a2, Point a3, Coord tolerance) argument [all...] |
H A D | elliptical-arc-from-sbasis.cpp | 56 * has to look like an actual elliptical arc even if a certain tolerance 81 * the tolerance the higher it is the likelihood. 101 << "tolerance error" << std::endl 132 // tolerance: the user-defined tolerance parameter; 133 // tol_at_extr: the tolerance at end-points automatically computed 134 // on the value of "tolerance", and usually more strict; 135 // tol_at_center: tolerance at the center of the ellipse 136 // angle_tol: tolerance for the angle btw the input curve tangent 138 double tolerance, tol_at_ext member in class:Geom::make_elliptical_arc 327 arc_from_sbasis(EllipticalArc &ea, D2<SBasis> const &in, double tolerance, unsigned num_samples) argument [all...] |
H A D | bezier-utils.cpp | 71 Point const bezCurve[], double tolerance, 74 double const tolerance); 247 double const tolerance = sqrt(error + 1e-9); local 248 double maxErrorRatio = compute_max_error_ratio(data, u, len, bezier, tolerance, &splitPoint); 262 maxErrorRatio = compute_max_error_ratio(data, u, len, bezier, tolerance, &splitPoint); 899 Point const bezCurve[], double const tolerance, 924 double const hook_ratio = compute_hook(prev, curr, .5 * (u[i - 1] + u[i]), bezCurve, tolerance); 932 double const dist_ratio = sqrt(maxDistsq) / tolerance; 970 double const tolerance) 974 if (dist < tolerance) { [all...] |
H A D | curve.cpp | 57 Coord Curve::length(Coord tolerance) const 59 return ::Geom::length(toSBasis(), tolerance);
|
H A D | sbasis-curve.h | 118 virtual Coord length(Coord tolerance) const { return ::Geom::length(inner, tolerance); }
|
H A D | bezier-curve.h | 161 virtual Coord length(Coord tolerance) const; 335 Coord bezier_length(std::vector<Point> const &points, Coord tolerance = 0.01); 336 Coord bezier_length(Point p0, Point p1, Point p2, Coord tolerance = 0.01); 337 Coord bezier_length(Point p0, Point p1, Point p2, Point p3, Coord tolerance = 0.01);
|
/inkscape/share/extensions/ |
H A D | addnodes.py | 40 def cspbezsplitatlength(sp1, sp2, l = 0.5, tolerance = 0.001): 42 t = bezmisc.beziertatlength(bez, l, tolerance) 44 def cspseglength(sp1,sp2, tolerance = 0.001): 46 return bezmisc.bezierlength(bez, tolerance)
|
H A D | convert2dashes.py | 41 def cspbezsplitatlength(sp1, sp2, l = 0.5, tolerance = 0.001): 43 t = bezmisc.beziertatlength(bez, l, tolerance) 45 def cspseglength(sp1,sp2, tolerance = 0.001): 47 return bezmisc.bezierlength(bez, tolerance)
|
H A D | bezmisc.py | 194 def Simpson(f, a, b, n_limit, tolerance): 204 while n < n_limit and abs(est1 - est0) > tolerance: 217 def bezierlengthSimpson(((bx0,by0),(bx1,by1),(bx2,by2),(bx3,by3)), tolerance = 0.001): 221 return Simpson(balf, 0.0, 1.0, 4096, tolerance) 223 def beziertatlength(((bx0,by0),(bx1,by1),(bx2,by2),(bx3,by3)), l = 0.5, tolerance = 0.001): 229 curlen = Simpson(balf, 0.0, t, 4096, tolerance) 232 while abs(diff) > tolerance: 238 curlen = Simpson(balf, 0.0, t, 4096, tolerance)
|
H A D | interp.py | 41 def cspbezsplitatlength(sp1, sp2, l = 0.5, tolerance = 0.001): 43 t = bezmisc.beziertatlength(bez, l, tolerance) 45 def cspseglength(sp1,sp2, tolerance = 0.001): 47 return bezmisc.bezierlength(bez, tolerance)
|
/inkscape/src/libcola/ |
H A D | cola.h | 118 TestConvergence(const double& tolerance = 0.001, const unsigned maxiterations = 1000) 119 : tolerance(tolerance), 134 fabs(new_stress - old_stress) / (new_stress + 1e-10) < tolerance 144 const double tolerance; member in class:cola::TestConvergence
|
/inkscape/src/ui/tools/ |
H A D | zoom-tool.cpp | 77 tolerance = prefs->getIntLimited("/options/dragtolerance/value", 0, 0, 100); 121 && ( abs( (gint) event->motion.x - xp ) < tolerance ) 122 && ( abs( (gint) event->motion.y - yp ) < tolerance ) ) { 123 break; // do not drag if we're within tolerance from origin 125 // Once the user has moved farther than tolerance from the original location
|
H A D | gradient-tool.cpp | 76 this->tolerance = 6; 213 double tolerance = (double) SP_EVENT_CONTEXT(rc)->tolerance; local 215 bool close = (dist_screen < tolerance); 380 sp_gradient_simplify(GradientTool *rc, double tolerance) argument 419 if (diff < tolerance) 453 double tolerance = (double) ec->tolerance; local 455 SPStop *newstop = ec->get_drag()->addStopNearPoint (item, mouse_p, tolerance/desktop->current_zoom()); 471 this->tolerance [all...] |
H A D | mesh-tool.cpp | 79 this->tolerance = 6; 283 double tolerance = (double) SP_EVENT_CONTEXT(rc)->tolerance; local 285 bool close = (dist_screen < tolerance); 306 double tolerance = (double) ec->tolerance; local 308 ec->get_drag()->addStopNearPoint (item, mouse_p, tolerance/desktop->current_zoom()); 436 this->tolerance = prefs->getIntLimited("/options/dragtolerance/value", 0, 0, 100); 546 && ( abs( (gint) event->motion.x - this->xp ) < this->tolerance ) 547 && ( abs( (gint) event->motion.y - this->yp ) < this->tolerance ) ) { [all...] |
H A D | spiral-tool.cpp | 150 this->tolerance = prefs->getIntLimited("/options/dragtolerance/value", 0, 0, 100); 180 && ( abs( (gint) event->motion.x - this->xp ) < this->tolerance ) 181 && ( abs( (gint) event->motion.y - this->yp ) < this->tolerance ) ) { 182 break; // do not drag if we're within tolerance from origin 184 // Once the user has moved farther than tolerance from the original location
|
H A D | star-tool.cpp | 164 this->tolerance = prefs->getIntLimited("/options/dragtolerance/value", 0, 0, 100); 194 && ( abs( (gint) event->motion.x - this->xp ) < this->tolerance ) 195 && ( abs( (gint) event->motion.y - this->yp ) < this->tolerance ) ) { 196 break; // do not drag if we're within tolerance from origin 198 // Once the user has moved farther than tolerance from the original location
|
H A D | arc-tool.cpp | 147 this->tolerance = prefs->getIntLimited("/options/dragtolerance/value", 0, 0, 100); 174 && ( abs( (gint) event->motion.x - this->xp ) < this->tolerance ) 175 && ( abs( (gint) event->motion.y - this->yp ) < this->tolerance ) ) { 176 break; // do not drag if we're within tolerance from origin 178 // Once the user has moved farther than tolerance from the original location
|
H A D | box3d-tool.cpp | 195 this->tolerance = prefs->getIntLimited("/options/dragtolerance/value", 0, 0, 100); 250 && ( abs( (gint) event->motion.x - this->xp ) < this->tolerance ) 251 && ( abs( (gint) event->motion.y - this->yp ) < this->tolerance ) ) { 252 break; // do not drag if we're within tolerance from origin 254 // Once the user has moved farther than tolerance from the original location
|
/inkscape/src/helper/ |
H A D | geom.h | 26 Geom::Coord tolerance, Geom::Rect const *viewbox);
|
H A D | geom.cpp | 265 Geom::Coord tolerance) 340 geom_cubic_bbox_wind_distance (x000, y000, x00t, y00t, x0tt, y0tt, xttt, yttt, pt, NULL, wind, best, tolerance); 341 geom_cubic_bbox_wind_distance (xttt, yttt, x1tt, y1tt, x11t, y11t, x111, y111, pt, NULL, wind, best, tolerance); 351 Geom::Coord tolerance, Geom::Rect const *viewbox, 391 bbox, wind, dist, tolerance); 405 geom_curve_bbox_wind_distance(*iter, m, pt, bbox, wind, dist, tolerance, viewbox, p0); 417 Geom::Coord tolerance, Geom::Rect const *viewbox) 447 geom_curve_bbox_wind_distance(*cit, m, pt, bbox, wind, dist, tolerance, viewbox, p0); 259 geom_cubic_bbox_wind_distance(Geom::Coord x000, Geom::Coord y000, Geom::Coord x001, Geom::Coord y001, Geom::Coord x011, Geom::Coord y011, Geom::Coord x111, Geom::Coord y111, Geom::Point const &pt, Geom::Rect *bbox, int *wind, Geom::Coord *best, Geom::Coord tolerance) argument 348 geom_curve_bbox_wind_distance(Geom::Curve const & c, Geom::Affine const &m, Geom::Point const &pt, Geom::Rect *bbox, int *wind, Geom::Coord *dist, Geom::Coord tolerance, Geom::Rect const *viewbox, Geom::Point &p0) argument 415 pathv_matrix_point_bbox_wind_distance(Geom::PathVector const & pathv, Geom::Affine const &m, Geom::Point const &pt, Geom::Rect *bbox, int *wind, Geom::Coord *dist, Geom::Coord tolerance, Geom::Rect const *viewbox) argument
|
/inkscape/src/ |
H A D | sp-radial-gradient.cpp | 153 double tolerance = cairo_get_tolerance(ct); local 158 // code below suggested by Cairo devs to overcome tolerance problems 184 // compute the tolerance distance in user space 186 // with the length equal to tolerance 188 double tx = tolerance * dx / dl, ty = tolerance * dy / dl; 196 scale *= 1.0 - 2.0 * tolerance / dl;
|
/inkscape/src/display/ |
H A D | curve.h | 76 SPCurve * append_continuous(SPCurve const *c1, double tolerance);
|
H A D | curve.cpp | 510 * Append \a c1 to \a this with possible fusing of close endpoints. If the end of this curve and the start of c1 are within tolerance distance, 516 SPCurve::append_continuous(SPCurve const *c1, double tolerance) argument 535 if ( (fabs((*this->last_point())[X] - (*c1->first_point())[X]) <= tolerance) 536 && (fabs((*this->last_point())[Y] - (*c1->first_point())[Y]) <= tolerance) )
|
/inkscape/src/libavoid/ |
H A D | geometry.h | 60 const double tolerance = 0.0); 75 // The 'maybeZero' argument can be used to adjust the tolerance of the
|
/inkscape/src/live_effects/ |
H A D | lpe-fillet-chamfer.cpp | 48 const double tolerance = 0.001; member in namespace:Inkscape::LivePathEffect 239 doUpdateFillet(path_from_piecewise(pwd2, tolerance), power); 246 doChangeType(path_from_piecewise(pwd2, tolerance), 1); 253 doChangeType(path_from_piecewise(pwd2, tolerance), 2); 261 doChangeType(path_from_piecewise(pwd2, tolerance), chamfer_steps + 5000); 269 doChangeType(path_from_piecewise(pwd2, tolerance), chamfer_steps + 3000); 277 doChangeType(path_from_piecewise(pwd2, tolerance), chamfer_steps + 4000);
|