Skip to content

Commit d95617e

Browse files
committed
resolved TODOs updated comment.
1 parent a10cdc7 commit d95617e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

BezierKit/Library/PathComponent.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,8 @@ import Foundation
318318
let isClosed = self.isClosed
319319
self.bvh.enumerateSelfIntersections { i1, i2 in
320320
var elementIntersections: [Intersection] = []
321-
// TODO: fix behavior for `crossingsRemoved` when there are self intersections at t=0 or t=1 and re-enable
322-
// TODO: unfortunately we badly need more tests for all these obscure codepaths
323321
if i1 == i2 {
324-
// we are intersecting a path element against itself
322+
// we are intersecting a path element against itself (only possible with cubic or higher order)
325323
if self.order(at: i1) == 3 {
326324
elementIntersections = self.cubic(at: i1).selfIntersections(accuracy: accuracy)
327325
}

0 commit comments

Comments
 (0)