|
Add base types for path ops
Paths contain lines, quads, and cubics, which are
collectively curves.
To work with path intersections, intermediary curves
are constructed. For now, those intermediates use
doubles to guarantee sufficient precision.
The DVector, DPoint, DLine, DQuad, and DCubic
structs encapsulate these intermediate curves.
The DRect and DTriangle structs are created to
describe intersectable areas of interest.
The Bounds struct inherits from SkRect to create
a SkScalar-based rectangle that intersects shared
edges.
This also includes common math equalities and
debugging that the remainder of path ops builds on,
as well as a temporary top-level interface in
include/pathops/SkPathOps.h.
Committed: https://code.google.com/p/skia/source/detail?r=8551
Total comments: 78
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+2574 lines, -0 lines) |
Patch |
|
A |
include/pathops/SkPathOps.h
|
View
|
1
2
3
4
5
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsBounds.h
|
View
|
1
2
3
4
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsBounds.cpp
|
View
|
1
2
3
4
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsCubic.h
|
View
|
1
2
3
4
|
1 chunk |
+71 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsCubic.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+463 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsCurve.h
|
View
|
1
2
|
1 chunk |
+152 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsDebug.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+123 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsDebug.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+59 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsLine.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsLine.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsPoint.h
|
View
|
|
1 chunk |
+156 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsPoint.cpp
|
View
|
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsQuad.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+62 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsQuad.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+293 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsRect.h
|
View
|
1
2
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsRect.cpp
|
View
|
1
2
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsTriangle.h
|
View
|
1
2
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsTriangle.cpp
|
View
|
1
2
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsTypes.h
|
View
|
1
2
3
4
5
|
1 chunk |
+226 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pathops/SkPathOpsTypes.cpp
|
View
|
1
2
3
4
|
1 chunk |
+69 lines, -0 lines |
0 comments
|
Download
|
|
A |
tests/PathOpsBoundsTest.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+106 lines, -0 lines |
0 comments
|
Download
|
|
A |
tests/PathOpsDCubicTest.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
|
A |
tests/PathOpsDLineTest.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
|
A |
tests/PathOpsDPointTest.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
|
A |
tests/PathOpsDQuadTest.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
|
A |
tests/PathOpsDRectTest.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+98 lines, -0 lines |
0 comments
|
Download
|
|
A |
tests/PathOpsDTriangleTest.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
|
A |
tests/PathOpsDVectorTest.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
Total messages: 13 (0 generated)
|