Skip to content

Commit

Permalink
resolved TODOs updated comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
hfutrell committed Apr 14, 2020
1 parent a10cdc7 commit d95617e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions BezierKit/Library/PathComponent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,8 @@ import Foundation
let isClosed = self.isClosed
self.bvh.enumerateSelfIntersections { i1, i2 in
var elementIntersections: [Intersection] = []
// TODO: fix behavior for `crossingsRemoved` when there are self intersections at t=0 or t=1 and re-enable
// TODO: unfortunately we badly need more tests for all these obscure codepaths
if i1 == i2 {
// we are intersecting a path element against itself
// we are intersecting a path element against itself (only possible with cubic or higher order)
if self.order(at: i1) == 3 {
elementIntersections = self.cubic(at: i1).selfIntersections(accuracy: accuracy)
}
Expand Down

0 comments on commit d95617e

Please sign in to comment.