SwiftprotocolGeometry

protocol Geometry.BVH3

Members 19

  1. associatedtypeassociatedtype BBox3Type
  2. associatedtypeassociatedtype CreateOptions
  3. associatedtypeassociatedtype HeuristicFunction
  4. associatedtypeassociatedtype Node
  5. associatedtypeassociatedtype Ray3Type
  6. associatedtypeassociatedtype Scalar
  7. funcmethod descriptor for closestPoint(to: SIMD3<A.Scalar>, closestPointFunction: (UInt32, SIMD3<A.Scalar>) -> SIMD3<A.Scalar>) -> (point: SIMD3<A.Scalar>, distanceSquared: A.Scalar, primitive: UInt32)
  8. funcmethod descriptor for primitives(forNode: UInt32) -> ArraySlice<UInt32>
  9. funcmethod descriptor for primitives(forNode: A.Node) -> ArraySlice<UInt32>
  10. funcmethod descriptor for raycast(ray: A.Ray3Type, intersectFunction: (UInt32, A.Ray3Type) -> A.Scalar?) -> (t: A.Scalar, primitive: UInt32)?
  11. funcmethod descriptor for reinit(centroids: [SIMD3<A.Scalar>], bboxs: [A.BBox3Type]) -> ()
  12. funcmethod descriptor for reinit(centroids: [SIMD3<A.Scalar>], bboxs: [A.BBox3Type], options: A.CreateOptions) -> ()
  13. funcmethod descriptor for statistics() -> (maxLevel: Int, sumOfLevels: Int)
  14. initmethod descriptor for init(centroids: [SIMD3<A.Scalar>], bboxs: [A.BBox3Type], strategy: geom_bvh_create_strategy, minimumPrimitivesInInteriorNode: Int) -> A
  15. initmethod descriptor for init(centroids: [SIMD3<A.Scalar>], bboxs: [A.BBox3Type], heuristicFunction: A.HeuristicFunction, minimumPrimitivesInInteriorNode: Int, bucketCount: Int) -> A
  16. initmethod descriptor for init(centroids: [SIMD3<A.Scalar>], bboxs: [A.BBox3Type]) -> A
  17. initmethod descriptor for init(centroids: [SIMD3<A.Scalar>], bboxs: [A.BBox3Type], options: A.CreateOptions) -> A
  18. varvar nodes: ArraySlice<A.Node> { get }
  19. varvar primitivePartition: ArraySlice<UInt32> { get }
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)
}