SwiftprotocolGeometry
protocol Geometry.BVH3
Members 19
- associatedtype
associatedtype BBox3Type - associatedtype
associatedtype CreateOptions - associatedtype
associatedtype HeuristicFunction - associatedtype
associatedtype Node - associatedtype
associatedtype Ray3Type - associatedtype
associatedtype Scalar - func
method descriptor for closestPoint(to: SIMD3<A.Scalar>, closestPointFunction: (UInt32, SIMD3<A.Scalar>) -> SIMD3<A.Scalar>) -> (point: SIMD3<A.Scalar>, distanceSquared: A.Scalar, primitive: UInt32) - func
method descriptor for primitives(forNode: UInt32) -> ArraySlice<UInt32> - func
method descriptor for primitives(forNode: A.Node) -> ArraySlice<UInt32> - func
method descriptor for raycast(ray: A.Ray3Type, intersectFunction: (UInt32, A.Ray3Type) -> A.Scalar?) -> (t: A.Scalar, primitive: UInt32)? - func
method descriptor for reinit(centroids: [SIMD3<A.Scalar>], bboxs: [A.BBox3Type]) -> () - func
method descriptor for reinit(centroids: [SIMD3<A.Scalar>], bboxs: [A.BBox3Type], options: A.CreateOptions) -> () - func
method descriptor for statistics() -> (maxLevel: Int, sumOfLevels: Int) - init
method descriptor for init(centroids: [SIMD3<A.Scalar>], bboxs: [A.BBox3Type], strategy: geom_bvh_create_strategy, minimumPrimitivesInInteriorNode: Int) -> A - init
method descriptor for init(centroids: [SIMD3<A.Scalar>], bboxs: [A.BBox3Type], heuristicFunction: A.HeuristicFunction, minimumPrimitivesInInteriorNode: Int, bucketCount: Int) -> A - init
method descriptor for init(centroids: [SIMD3<A.Scalar>], bboxs: [A.BBox3Type]) -> A - init
method descriptor for init(centroids: [SIMD3<A.Scalar>], bboxs: [A.BBox3Type], options: A.CreateOptions) -> A - var
var nodes: ArraySlice<A.Node> { get } - var
var primitivePartition: ArraySlice<UInt32> { get }
Header
protocol BVH3 where Self.BBox3Type: Geometry.BBox3, Self.CreateOptions: Geometry.BVHCreateOptions, Self.Node: Geometry.BVH3Node, Self.Ray3Type: Geometry.Ray3, Self.Scalar == Self.BBox3Type.Scalar, Self.BBox3Type.Scalar == Self.CreateOptions.Scalar, Self.CreateOptions.Scalar == Self.Node.Scalar, Self.Node.Scalar == Self.Ray3Type.Scalar { associatedtype Scalar associatedtype Ray3Type associatedtype BBox3Type associatedtype HeuristicFunction associatedtype Node associatedtype CreateOptions init(centroids: [Swift.SIMD3<Self.Scalar>], bboxs: [Self.BBox3Type], strategy: __C.geom_bvh_create_strategy, minimumPrimitivesInInteriorNode: Swift.Int) init(centroids: [Swift.SIMD3<Self.Scalar>], bboxs: [Self.BBox3Type], heuristicFunction: Self.HeuristicFunction, minimumPrimitivesInInteriorNode: Swift.Int, bucketCount: Swift.Int) init(centroids: [Swift.SIMD3<Self.Scalar>], bboxs: [Self.BBox3Type]) init(centroids: [Swift.SIMD3<Self.Scalar>], bboxs: [Self.BBox3Type], options: Self.CreateOptions) var nodes: Swift.ArraySlice<Self.Node> { get } var primitivePartition: Swift.ArraySlice<Swift.UInt32> { get } func reinit(centroids: [Swift.SIMD3<Self.Scalar>], bboxs: [Self.BBox3Type]) func reinit(centroids: [Swift.SIMD3<Self.Scalar>], bboxs: [Self.BBox3Type], options: Self.CreateOptions) func statistics() -> (maxLevel: Swift.Int, sumOfLevels: Swift.Int) func primitives(forNode: Swift.UInt32) -> Swift.ArraySlice<Swift.UInt32> func primitives(forNode: Self.Node) -> Swift.ArraySlice<Swift.UInt32> func raycast(ray: Self.Ray3Type, intersectFunction: (Swift.UInt32, Self.Ray3Type) -> Self.Scalar?) -> (t: Self.Scalar, primitive: Swift.UInt32)? func closestPoint(to: Swift.SIMD3<Self.Scalar>, closestPointFunction: (Swift.UInt32, Swift.SIMD3<Self.Scalar>) -> Swift.SIMD3<Self.Scalar>) -> (point: Swift.SIMD3<Self.Scalar>, distanceSquared: Self.Scalar, primitive: Swift.UInt32) }