From ff7f64cef06864d771c41dcf44edb39c650572e2 Mon Sep 17 00:00:00 2001 From: Nick Lockwood Date: Fri, 22 Dec 2023 18:21:28 +0000 Subject: [PATCH] WIP --- Example/SceneKitViewController.swift | 1 - Sources/Edge.swift | 4 ++-- Sources/Path+CSG.swift | 8 ++++---- Tests/PolygonTests.swift | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Example/SceneKitViewController.swift b/Example/SceneKitViewController.swift index b5bc56a7..9c7e6fa3 100644 --- a/Example/SceneKitViewController.swift +++ b/Example/SceneKitViewController.swift @@ -25,7 +25,6 @@ class SceneKitViewController: UIViewController { // place the camera cameraNode.position = SCNVector3(x: 0, y: 0, z: 2) - // create some geometry using Euclid let start = CFAbsoluteTimeGetCurrent() // let cube = Mesh.cube(size: 0.8, material: UIColor.red) diff --git a/Sources/Edge.swift b/Sources/Edge.swift index 180df9f8..caad47c4 100644 --- a/Sources/Edge.swift +++ b/Sources/Edge.swift @@ -31,9 +31,9 @@ /// A polygon edge. public struct Edge: Hashable, Sendable { - // The starting point of the line segment. + /// The starting point of the line segment. public let start: Vertex - // The end point of the line segment. + /// The end point of the line segment. public let end: Vertex /// Creates an edge with a start and end vertex. diff --git a/Sources/Path+CSG.swift b/Sources/Path+CSG.swift index f21bd9a3..091660bc 100644 --- a/Sources/Path+CSG.swift +++ b/Sources/Path+CSG.swift @@ -126,10 +126,10 @@ public extension Path { } } - /// Efficiently computes the intersection of multiple paths. - /// - Parameters - /// - paths: A collection of paths to be intersected. - /// - Returns: A new mesh representing the intersection of the meshes. + // Efficiently computes the intersection of multiple paths. + // - Parameters + // - paths: A collection of paths to be intersected. + // - Returns: A new mesh representing the intersection of the meshes. // static func intersection( // _ meshes: T, // isCancelled: CancellationHandler = { false } diff --git a/Tests/PolygonTests.swift b/Tests/PolygonTests.swift index a4ec57ca..512a537b 100644 --- a/Tests/PolygonTests.swift +++ b/Tests/PolygonTests.swift @@ -10,7 +10,7 @@ import XCTest extension Euclid.Polygon: ExpressibleByArrayLiteral { - // Convenience constructor for testing + /// Convenience constructor for testing init(unchecked vertices: [Vertex], plane: Plane? = nil) { self.init( unchecked: vertices,