Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Dec 22, 2023
1 parent 70740da commit ff7f64c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion Example/SceneKitViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions Sources/Edge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions Sources/Path+CSG.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: Collection>(
// _ meshes: T,
// isCancelled: CancellationHandler = { false }
Expand Down
2 changes: 1 addition & 1 deletion Tests/PolygonTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ff7f64c

Please sign in to comment.