Add base types for path ops
authorcaryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 8 Apr 2013 11:47:37 +0000 (11:47 +0000)
committercaryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 8 Apr 2013 11:47:37 +0000 (11:47 +0000)
commit07393cab57ce74a4aae89a31fae9aaa9780fc19d
tree2923009427914f3da107d4797e7e7fd2b9266f9a
parent390c6d7a9018e233a6519397ac6c739fb21a99ef
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.
Review URL: https://codereview.chromium.org/12827020

git-svn-id: http://skia.googlecode.com/svn/trunk@8551 2bbb7eff-a529-9590-31e7-b0007b416f81
64 files changed:
include/pathops/SkPathOps.h [new file with mode: 0644]
src/pathops/SkAddIntersections.cpp [new file with mode: 0644]
src/pathops/SkAddIntersections.h [new file with mode: 0644]
src/pathops/SkDCubicIntersection.cpp [new file with mode: 0644]
src/pathops/SkDCubicLineIntersection.cpp [new file with mode: 0644]
src/pathops/SkDCubicToQuads.cpp [new file with mode: 0644]
src/pathops/SkDLineIntersection.cpp [new file with mode: 0644]
src/pathops/SkDQuadImplicit.cpp [new file with mode: 0644]
src/pathops/SkDQuadImplicit.h [new file with mode: 0644]
src/pathops/SkDQuadIntersection.cpp [new file with mode: 0644]
src/pathops/SkDQuadLineIntersection.cpp [new file with mode: 0644]
src/pathops/SkIntersectionHelper.h [new file with mode: 0644]
src/pathops/SkIntersections.cpp [new file with mode: 0644]
src/pathops/SkIntersections.h [new file with mode: 0644]
src/pathops/SkLineParameters.h [new file with mode: 0644]
src/pathops/SkOpAngle.cpp [new file with mode: 0644]
src/pathops/SkOpAngle.h [new file with mode: 0644]
src/pathops/SkOpContour.cpp [new file with mode: 0644]
src/pathops/SkOpContour.h [new file with mode: 0644]
src/pathops/SkOpEdgeBuilder.cpp [new file with mode: 0644]
src/pathops/SkOpEdgeBuilder.h [new file with mode: 0644]
src/pathops/SkOpSegment.cpp [new file with mode: 0644]
src/pathops/SkOpSegment.h [new file with mode: 0644]
src/pathops/SkOpSpan.h [new file with mode: 0644]
src/pathops/SkPathOpsBounds.cpp [new file with mode: 0644]
src/pathops/SkPathOpsBounds.h [new file with mode: 0644]
src/pathops/SkPathOpsCommon.cpp [new file with mode: 0644]
src/pathops/SkPathOpsCommon.h [new file with mode: 0644]
src/pathops/SkPathOpsCubic.cpp [new file with mode: 0644]
src/pathops/SkPathOpsCubic.h [new file with mode: 0644]
src/pathops/SkPathOpsCurve.h [new file with mode: 0644]
src/pathops/SkPathOpsDebug.cpp [new file with mode: 0644]
src/pathops/SkPathOpsDebug.h [new file with mode: 0644]
src/pathops/SkPathOpsLine.cpp [new file with mode: 0644]
src/pathops/SkPathOpsLine.h [new file with mode: 0644]
src/pathops/SkPathOpsOp.cpp [new file with mode: 0644]
src/pathops/SkPathOpsPoint.cpp [new file with mode: 0644]
src/pathops/SkPathOpsPoint.h [new file with mode: 0644]
src/pathops/SkPathOpsQuad.cpp [new file with mode: 0644]
src/pathops/SkPathOpsQuad.h [new file with mode: 0644]
src/pathops/SkPathOpsRect.cpp [new file with mode: 0644]
src/pathops/SkPathOpsRect.h [new file with mode: 0644]
src/pathops/SkPathOpsSimplify.cpp [new file with mode: 0644]
src/pathops/SkPathOpsSpan.h [new file with mode: 0644]
src/pathops/SkPathOpsTriangle.cpp [new file with mode: 0644]
src/pathops/SkPathOpsTriangle.h [new file with mode: 0644]
src/pathops/SkPathOpsTypes.cpp [new file with mode: 0644]
src/pathops/SkPathOpsTypes.h [new file with mode: 0644]
src/pathops/SkPathWriter.cpp [new file with mode: 0644]
src/pathops/SkPathWriter.h [new file with mode: 0644]
src/pathops/SkQuarticRoot.cpp [new file with mode: 0644]
src/pathops/SkQuarticRoot.h [new file with mode: 0644]
src/pathops/SkReduceOrder.cpp [new file with mode: 0644]
src/pathops/SkReduceOrder.h [new file with mode: 0644]
src/pathops/TSearch.h [new file with mode: 0644]
src/pathops/main.cpp [new file with mode: 0644]
tests/PathOpsBoundsTest.cpp [new file with mode: 0644]
tests/PathOpsDCubicTest.cpp [new file with mode: 0644]
tests/PathOpsDLineTest.cpp [new file with mode: 0644]
tests/PathOpsDPointTest.cpp [new file with mode: 0644]
tests/PathOpsDQuadTest.cpp [new file with mode: 0644]
tests/PathOpsDRectTest.cpp [new file with mode: 0644]
tests/PathOpsDTriangleTest.cpp [new file with mode: 0644]
tests/PathOpsDVectorTest.cpp [new file with mode: 0644]