TinyBVHNet 1.7.2-preview.1.4

This is a prerelease version of TinyBVHNet.
dotnet add package TinyBVHNet --version 1.7.2-preview.1.4
                    
NuGet\Install-Package TinyBVHNet -Version 1.7.2-preview.1.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TinyBVHNet" Version="1.7.2-preview.1.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TinyBVHNet" Version="1.7.2-preview.1.4" />
                    
Directory.Packages.props
<PackageReference Include="TinyBVHNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TinyBVHNet --version 1.7.2-preview.1.4
                    
#r "nuget: TinyBVHNet, 1.7.2-preview.1.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TinyBVHNet@1.7.2-preview.1.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TinyBVHNet&version=1.7.2-preview.1.4&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TinyBVHNet&version=1.7.2-preview.1.4&prerelease
                    
Install as a Cake Tool

TinyBVHNet

.NET wrapper for the TinyBVH library — a fast, lightweight BVH (Bounding Volume Hierarchy) construction and traversal library by Jacco Bikker.

Multi-targets net48 and net10.0. Ships native binaries for Windows x64/arm64 and Linux x64/arm64.

using TinyBVHNet;
using System.Numerics;

// A single triangle with a ray from above
float[] vertices = { 0,0,0,1,  2,0,0,1,  0,2,0,1 };
using var bvh = new BVH();
bvh.Build(vertices, 1);

var hit = bvh.Intersect(
    new Vector3(0.5f, 0.5f, -1),
    new Vector3(0, 0, 1));

Console.WriteLine(hit.HasValue
    ? $"Hit at distance {hit.Value.Distance:F3}"
    : "Miss");

Available on NuGet: https://www.nuget.org/packages/TinyBVHNet/

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.7.2-preview.1.4 57 6/13/2026