杨锴
2025-03-11 90dc3329d1973fda691e357cf4523d5c7c67fa1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SCNGeometryExtensions.swift - Copyright 2024 SwifterSwift
 
#if canImport(SceneKit)
import SceneKit
 
// MARK: - Properties
 
public extension SCNGeometry {
    /// SwifterSwift: Returns the size of the geometry's bounding box.
    var boundingSize: SCNVector3 {
        return (boundingBox.max - boundingBox.min).absolute
    }
}
 
#endif