Skip to content

Commit 3c1b0fa

Browse files
committed
Merge branch 'dev'
2 parents 33b7586 + 45d2059 commit 3c1b0fa

15 files changed

Lines changed: 35 additions & 26 deletions

Package.resolved

Lines changed: 18 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let package = Package(
1010
.executable(name: "Helical-Demo", targets: ["Demo"]),
1111
],
1212
dependencies: [
13-
.package(url: "https://github.com/tomasf/Cadova.git", .upToNextMinor(from: "0.9.0")),
13+
.package(url: "https://github.com/tomasf/Cadova.git", .upToNextMinor(from: "0.10.0")),
1414
],
1515
targets: [
1616
.target(

Sources/Demo/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let nutsAndWashers: [(String, any Geometry3D)] = [
4040
("Large washer, M5", Washer.plain(.m5, series: .large))
4141
]
4242

43-
struct Repertoire: Shape3D {
43+
struct Repertoire: Geometry3D {
4444
let contents: [(label: String, part: any Geometry3D)]
4545

4646
var body: any Geometry3D {

Sources/Helical/Bolt/Bolt.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Cadova
44
///
55
/// `Bolt` composes a head shape, drive socket, threaded section (``Screw``), and point
66
/// into a full fastener model. For just the bare threaded geometry, use ``Screw``.
7-
public struct Bolt: Shape3D {
7+
public struct Bolt: Geometry3D {
88
/// The screw thread specification.
99
public let thread: ScrewThread
1010
/// Nominal length of the bolt, measured according to convention for the head type.

Sources/Helical/Bolt/Parts/Heads/BoltHeadShape.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Cadova
22

33
/// A protocol defining the geometry and dimensions of a bolt head.
4-
public protocol BoltHeadShape: Shape3D {
4+
public protocol BoltHeadShape: Geometry3D {
55
/// Total height of the head.
66
var height: Double { get }
77
/// Portion of the nominal bolt length consumed by the head, such as the countersunk portion.

Sources/Helical/Bolt/Parts/Points/BoltPoint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Cadova
22

33
/// A protocol defining the geometry at the tip of a bolt.
4-
public protocol BoltPoint: Shape3D {
4+
public protocol BoltPoint: Geometry3D {
55
/// Portion of the nominal bolt length consumed by the point geometry.
66
var consumedLength: Double { get }
77
/// Geometry to subtract from the bolt body to form the point.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Cadova
22

33
/// A protocol defining the drive socket geometry in a bolt head.
4-
public protocol BoltHeadSocket: Shape3D {
4+
public protocol BoltHeadSocket: Geometry3D {
55
/// Depth of the socket recess.
66
var depth: Double { get }
77
}

Sources/Helical/Bolt/Parts/Sockets/TorxHeadSocket.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Cadova
22

3-
internal struct TorxShape: Shape2D {
3+
internal struct TorxShape: Geometry2D {
44
let size: TorxSize
55

66
var body: any Geometry2D {

Sources/Helical/Holes/BoltHeadRecessShapes.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public let defaultHeadClearance: Double = 100.0
66

77
public extension Countersink {
88
/// A 3D shape representing a countersink recess with clearance above.
9-
struct Shape: Shape3D {
9+
struct Shape: Geometry3D {
1010
let countersink: Countersink
1111
let headClearance: Double
1212

@@ -36,7 +36,7 @@ public extension Countersink {
3636

3737
public extension Counterbore {
3838
/// A 3D shape representing a counterbore recess with clearance above.
39-
struct Shape: Shape3D {
39+
struct Shape: Geometry3D {
4040
let counterbore: Counterbore
4141
let headClearance: Double
4242

@@ -61,7 +61,7 @@ public extension Counterbore {
6161
}
6262
}
6363

64-
struct PolygonalHeadRecess: Shape3D {
64+
struct PolygonalHeadRecess: Geometry3D {
6565
let sideCount: Int
6666
let widthAcrossFlats: Double
6767
let height: Double

Sources/Helical/Holes/ClearanceHole.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Cadova
33
/// A clearance hole for a bolt to pass through without threading.
44
///
55
/// Supports optional edge profiles, countersinks, or custom head recesses.
6-
public struct ClearanceHole: Shape3D {
6+
public struct ClearanceHole: Geometry3D {
77
let diameter: Double
88
let depth: Double
99
let entry: Entry

0 commit comments

Comments
 (0)