/inkscape/share/extensions/ |
H A D | cspsubdiv.py | 16 for sp in csp: 17 subdiv(sp,flat) 19 def subdiv(sp,flat,i=1): 20 while i < len(sp): 21 p0 = sp[i-1][1] 22 p1 = sp[i-1][2] 23 p2 = sp[i][0] 24 p3 = sp[i][1] 32 sp[i-1][2] = one[1] 33 sp[ [all...] |
H A D | measure.py | 97 for sp in csp: 99 for i in xrange(1,len(sp)): 100 l = cspseglength(sp[i-1],sp[i]) 106 for sp in csp: 107 if len(sp) < 2: continue 108 for i in range(len(sp)): # calculate polygon area 109 area += 0.5*sp[i-1][1][0]*(sp[i][1][1] - sp[ [all...] |
H A D | flatten.py | 35 for sp in p: 37 for csp in sp:
|
H A D | interp.py | 51 for sp in csp: 53 for i in xrange(1,len(sp)): 54 l = cspseglength(sp[i-1],sp[i]) 60 sp = float(start[property]) 62 return str(sp + (time * (ep - sp))) 112 sp = self.unittouu(start[property]) 114 return str(sp + (time * (ep - sp))) [all...] |
H A D | addnodes.py | 50 for sp in csp: 52 for i in xrange(1,len(sp)): 53 l = cspseglength(sp[i-1],sp[i]) 59 for sp in csplen: 60 for l in sp:
|
H A D | perspective.py | 90 sp = array([[q['x'], q['y']+q['height']],[q['x'], q['y']],[q['x']+q['width'], q['y']],[q['x']+q['width'], q['y']+q['height']]], dtype=float64) 104 solmatrix[i][0] = sp[i][0] 105 solmatrix[i][1] = sp[i][1] 107 solmatrix[i][6] = -dp[i][0]*sp[i][0] 108 solmatrix[i][7] = -dp[i][0]*sp[i][1] 109 solmatrix[i+4][3] = sp[i][0] 110 solmatrix[i+4][4] = sp[i][1] 112 solmatrix[i+4][6] = -dp[i][1]*sp[i][0] 113 solmatrix[i+4][7] = -dp[i][1]*sp[i][1]
|
H A D | render_alphabetsoup.py | 86 def reversePath(sp): 89 for p in sp: 99 def flipLeftRight( sp, width ): 100 for cmd,params in sp: 106 def flipTopBottom( sp, height ): 107 for cmd,params in sp: 153 def getPathBoundingBox( sp ): 159 for cmd,params in sp:
|
H A D | gcodetools.py | 334 for sp in subpath : 335 for p in sp: 785 for sp in csp: 786 for i in xrange(1,len(sp)): 787 l = cspseglength(sp[i-1],sp[i]) 795 for sp in csp: 796 for i in xrange(1,len(sp)): 797 l += cspseglength(sp[i-1],sp[ [all...] |
/inkscape/src/ |
H A D | sp-item-notify-moveto.cpp | 5 #include <sp-item.h> 7 #include <sp-guide.h> 8 #include <sp-item-rm-unsatisfied-cns.h> 9 #include <sp-item-notify-moveto.h>
|
H A D | snapped-line.cpp | 198 Inkscape::SnappedPoint sp = (*i).intersect(*j); local 199 if (sp.getAtIntersection()) { 203 bool const c2 = sp.getSnapDistance() < result.getSnapDistance(); 206 bool const c3 = (sp.getSnapDistance() == result.getSnapDistance()) && (sp.getSecondSnapDistance() < result.getSecondSnapDistance()); 209 result = sp; 243 Inkscape::SnappedPoint sp = (*i).intersect(*j); 244 if (sp.getAtIntersection()) { 248 bool const c2 = sp.getSnapDistance() < result.getSnapDistance(); 251 bool const c3 = (sp [all...] |
H A D | snapped-curve.cpp | 196 Inkscape::SnappedPoint sp = (*i).intersect(*j, p, dt2doc); local 197 if (sp.getAtIntersection()) { 201 bool const c2 = sp.getSnapDistance() < result.getSnapDistance(); 204 bool const c3 = (sp.getSnapDistance() == result.getSnapDistance()) && (sp.getSecondSnapDistance() < result.getSecondSnapDistance()); 207 result = sp; 229 Inkscape::SnappedPoint sp = (*i).intersect(*j, p, dt2doc); 230 if (sp.getAtIntersection()) { 234 bool const c2 = sp.getSnapDistance() < result.getSnapDistance(); 237 bool const c3 = (sp [all...] |
H A D | color-profile.h | 5 #include <sp-object.h>
|
H A D | syseq.h | 221 double sp = 0; local 224 sp += B[c][j] * x[j]; 231 val_proj = sp*val/mu;
|
H A D | snap.cpp | 21 #include "sp-namedview.h" 34 #include "sp-guide.h" 357 Inkscape::SnappedPoint sp; local 378 sp = multipleConstrainedSnaps(p, constraints); // Constraints will always be applied, even if we didn't snap 379 if (!sp.getSnapped()) { // If we haven't snapped then we only had the constraint applied; 380 sp.setTarget(Inkscape::SNAPTARGET_CONSTRAINED_ANGLE); 383 sp = freeSnap(p); 385 return sp; 628 // std::cout << "sp = " << (*i).getPoint() << " | source = " << (*i).getSource() << " | target = " << (*i).getTarget();
|
/inkscape/src/2geom/ |
H A D | conic_section_clipper_impl.h | 136 std::list<Point>::iterator sp, 139 std::list<Point>::iterator sp, 144 std::list<Point>::iterator sp, 260 std::list<Point>::iterator sp, 263 Point new_point = find_inner_point (*sp, *fp); 265 //std::cerr << "CLIP: split: [" << *sp << ", " << *ip << ", " 282 std::list<Point>::iterator sp, 292 std::list<Point>::iterator ip = split (points, sp, fp); 294 rsplit (points, sp, ip, k); 311 std::list<Point>::iterator sp, 259 split(std::list<Point> & points, std::list<Point>::iterator sp, std::list<Point>::iterator fp) const argument 281 rsplit(std::list<Point> & points, std::list<Point>::iterator sp, std::list<Point>::iterator fp, size_t k) const argument 310 rsplit(std::list<Point> & points, std::list<Point>::iterator sp, std::list<Point>::iterator fp, double length) const argument [all...] |
H A D | conic_section_clipper_impl.cpp | 493 std::list<Point>::iterator sp, ip, fp; local 517 sp = points.begin(); 518 ip = sp; ++ip; 520 rsplit (points, sp, ip, size_t(1u)); 524 sp = points.begin(); 525 fp = sp; ++fp; 528 rsplit (points, sp, fp, 100.0); 529 sp = fp; 533 sp = points.begin(); 534 ip = sp; [all...] |
/inkscape/src/ui/tool/ |
H A D | path-manipulator.cpp | 28 #include "display/sp-canvas.h" 29 #include "display/sp-canvas-util.h" 37 #include "sp-path.h" 411 SubpathPtr sp = *i; local 413 for (NodeList::iterator j = sp->begin(); j != sp->end(); ++j) { 425 NodeList::iterator sel_beg = sp->begin(), sel_end; 426 if (sp->closed()) { 469 sp->erase(sel_beg); 486 SubpathPtr sp local 544 SubpathPtr sp = *i; local 594 SubpathPtr sp = *i; local 717 SubpathPtr sp = *i; local [all...] |
H A D | curve-drag-point.cpp | 18 #include "sp-namedview.h" 87 Inkscape::SnappedPoint sp = m.freeSnap(scp, Geom::OptRect(), false); local 88 new_pos = sp.getPoint();
|
/inkscape/src/extension/internal/ |
H A D | javafx-out.h | 21 #include <sp-gradient.h>
|
H A D | pov-out.h | 21 #include <sp-path.h>
|
H A D | javafx-out.cpp | 28 #include <sp-path.h> 29 #include <sp-linear-gradient.h> 30 #include <sp-radial-gradient.h> 42 #include "sp-root.h"
|
/inkscape/src/trace/ |
H A D | trace.h | 27 #include <sp-shape.h>
|
/inkscape/src/display/ |
H A D | nr-filter-specularlighting.cpp | 57 double sp = NR::scalar_product(normal, halfway); local 58 double k = sp <= 0.0 ? 0.0 : _ks * pow(sp, _exp);
|
/inkscape/src/live_effects/ |
H A D | lpe-mirror_symmetry.cpp | 20 #include <sp-path.h> 129 Geom::Point sp = Geom::Point(view_box_rect.width()/2.0, 0); local 130 sp *= i2anc_affine(SP_OBJECT(lpeitem), SP_OBJECT(SP_ACTIVE_DESKTOP->currentLayer()->parent)) .inverse(); 131 start_point.param_setValue(sp); 142 Geom::Point sp = Geom::Point(0, view_box_rect.height()/2.0); local 143 sp *= i2anc_affine(SP_OBJECT(lpeitem), SP_OBJECT(SP_ACTIVE_DESKTOP->currentLayer()->parent)) .inverse(); 144 start_point.param_setValue(sp);
|
/inkscape/src/ui/widget/ |
H A D | color-slider.cpp | 611 guchar *sp = map + 4 * (start >> 16); local 612 cr = *sp++; 613 cg = *sp++; 614 cb = *sp++; 615 ca = *sp++;
|