diff options
| author | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-05-22 20:06:35 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-05-22 20:06:35 +0000 |
| commit | f662576d876552dd6e910fbced6f077594c4e847 (patch) | |
| tree | 493503876b0f400ce23de4b463f20a197a316d2b /src/snapped-curve.h | |
| parent | Temporary build fix for not newest gtk versions. (diff) | |
| download | inkscape-f662576d876552dd6e910fbced6f077594c4e847.tar.gz inkscape-f662576d876552dd6e910fbced6f077594c4e847.zip | |
Snapping: get rid of the false positives when calculating intersections
(bzr r9442)
Diffstat (limited to 'src/snapped-curve.h')
| -rw-r--r-- | src/snapped-curve.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/snapped-curve.h b/src/snapped-curve.h index 21124c678..595f84411 100644 --- a/src/snapped-curve.h +++ b/src/snapped-curve.h @@ -24,12 +24,14 @@ class SnappedCurve : public SnappedPoint { public: SnappedCurve(); - SnappedCurve(Geom::Point const &snapped_point, Geom::Coord const &snapped_distance, Geom::Coord const &snapped_tolerance, bool const &always_snap, bool const &fully_constrained, Geom::Curve const *curve, SnapSourceType source, long source_num, SnapTargetType target, Geom::OptRect target_bbox); + SnappedCurve(Geom::Point const &snapped_point, int num_path, int num_segm, Geom::Coord const &snapped_distance, Geom::Coord const &snapped_tolerance, bool const &always_snap, bool const &fully_constrained, Geom::Curve const *curve, SnapSourceType source, long source_num, SnapTargetType target, Geom::OptRect target_bbox); ~SnappedCurve(); Inkscape::SnappedPoint intersect(SnappedCurve const &curve, Geom::Point const &p, Geom::Matrix dt2doc) const; //intersect with another SnappedCurve private: Geom::Curve const *_curve; + int _num_path; // Unique id of the path to which this segment belongs too + int _num_segm; // Sequence number of this segment in the path }; } |
