git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Careful, you may have to shade your eyes
[ipdf/code.git]
/
src
/
path.h
diff --git
a/src/path.h
b/src/path.h
index
ac6956c
..
b08c146
100644
(file)
--- a/
src/path.h
+++ b/
src/path.h
@@
-29,16
+29,19
@@
namespace IPDF
Rect SolveBounds(const Objects & objects) const;
Rect SolveBounds(const Objects & objects) const;
-
+ // Is point inside shape?
+ bool PointInside(const Objects & objects, const Vec2 & pt, bool debug=false) const;
unsigned m_start; // First bounding Bezier index
unsigned m_end; // Last (inclusive) '' ''
unsigned m_index; // index into Objects array
unsigned m_start; // First bounding Bezier index
unsigned m_end; // Last (inclusive) '' ''
unsigned m_index; // index into Objects array
- std::pair<Real,Real> m_top;
- std::pair<Real,Real> m_bottom;
- std::pair<Real,Real> m_left;
- std::pair<Real,Real> m_right;
+ Vec2 m_top;
+ Vec2 m_bottom;
+ Vec2 m_left;
+ Vec2 m_right;
+
+ std::vector<Vec2> m_fill_points;
Colour m_fill; // colour to fill with
};
Colour m_fill; // colour to fill with
};
UCC
git Repository :: git.ucc.asn.au