SwiftextensionGeometry
OS_geom_bvh_2f
extension OS_geom_bvh_2f: Geometry.BVH2
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
extends{}
classOS_geom_bvh_2f
inherits{}
- protocolGeometry.BVH2
Members 19
- func
closestPoint(to: SIMD2<Float>, closestPointFunction: (UInt32, SIMD2<Float>) -> SIMD2<Float>) -> (point: SIMD2<Float>, distanceSquared: Float, primitive: UInt32) - func
primitives(forNode: UInt32) -> ArraySlice<UInt32> - func
primitives(forNode: geom_bvh_node_2f) -> ArraySlice<UInt32> - func
raycast(ray: geom_ray_2f, intersectFunction: (UInt32, geom_ray_2f) -> Float?) -> (t: Float, primitive: UInt32)? - func
reinit(centroids: [SIMD2<Float>], bboxs: [geom_bbox_2f], options: OS_geom_bvh_create_opt_2f) -> () - func
reinit(centroids: [SIMD2<Float>], bboxs: [geom_bbox_2f]) -> () - func
statistics() -> (maxLevel: Int, sumOfLevels: Int) - init
init(centroids: [SIMD2<Float>], bboxs: [geom_bbox_2f], heuristicFunction: @convention(c) (UInt32, geom_bbox_2f, UInt32, geom_bbox_2f) -> Float, minimumPrimitivesInInteriorNode: Int, bucketCount: Int) -> OS_geom_bvh_2f - init
init(centroids: [SIMD2<Float>], bboxs: [geom_bbox_2f], options: OS_geom_bvh_create_opt_2f) -> OS_geom_bvh_2f - init
init(centroids: [SIMD2<Float>], bboxs: [geom_bbox_2f], strategy: geom_bvh_create_strategy, minimumPrimitivesInInteriorNode: Int) -> OS_geom_bvh_2f - init
init(centroids: [SIMD2<Float>], bboxs: [geom_bbox_2f]) -> OS_geom_bvh_2f - typealias
typealias BBox2Type = __C.geom_bbox_2f - typealias
typealias CreateOptions = __C.OS_geom_bvh_create_opt_2f - typealias
typealias HeuristicFunction = @convention(c) (Swift.UInt32, __C.geom_bbox_2f, Swift.UInt32, __C.geom_bbox_2f) -> Swift.Float - typealias
typealias Node = __C.geom_bvh_node_2f - typealias
typealias Ray2Type = __C.geom_ray_2f - typealias
typealias Scalar = Swift.Float - var
var nodes: ArraySlice<geom_bvh_node_2f> { get } - var
var primitivePartition: ArraySlice<UInt32> { get }
Header
extension __C.OS_geom_bvh_2f: Geometry.BVH2 { typealias Scalar = Swift.Float typealias Ray2Type = __C.geom_ray_2f typealias BBox2Type = __C.geom_bbox_2f typealias HeuristicFunction = @convention(c) (Swift.UInt32, __C.geom_bbox_2f, Swift.UInt32, __C.geom_bbox_2f) -> Swift.Float typealias Node = __C.geom_bvh_node_2f typealias CreateOptions = __C.OS_geom_bvh_create_opt_2f }