NetVtk 9.7.1.1-next.1
dotnet add package NetVtk --version 9.7.1.1-next.1
NuGet\Install-Package NetVtk -Version 9.7.1.1-next.1
<PackageReference Include="NetVtk" Version="9.7.1.1-next.1" />
<PackageVersion Include="NetVtk" Version="9.7.1.1-next.1" />
<PackageReference Include="NetVtk" />
paket add NetVtk --version 9.7.1.1-next.1
#r "nuget: NetVtk, 9.7.1.1-next.1"
#:package NetVtk@9.7.1.1-next.1
#addin nuget:?package=NetVtk&version=9.7.1.1-next.1&prerelease
#tool nuget:?package=NetVtk&version=9.7.1.1-next.1&prerelease
NetVtk
C# bindings for the Visualization Toolkit (VTK) 9.7.1, generated from VTK's headers: VTK's class names, its pipelines as in C++, and IntelliSense shows VTK's documentation.
dotnet add package NetVtk
One AnyCPU package for .NET Framework 3.5 and 4.5+, .NET 6, 8 and 10, and netstandard2.0, with the natives for Windows (x64, x86), Linux (x64) and macOS (arm64).
using Vtk;
using var cone = new vtkConeSource();
cone.SetResolution(32);
cone.Update();
using var output = cone.GetOutput();
double[] bounds = output.GetBounds();
- Objects:
new vtkConeSource()calls VTK'sNew(). A proxy holds one reference to its object;Dispose(or the garbage collector) releases it. Rendering objects release OpenGL resources when they go: dispose them on the thread that renders, or setVtkFinalizer.Contextto itsSynchronizationContext. - Arrays:
vtkDoubleArray.FromArray(values, 3),ToArray(),CopyFrom(values); on .NET 6+AsSpan()is the array's memory, no copy.ToDoubleArray()converts anyvtkDataArray. - Observers:
AddObserver(vtkCommand_EventIds.ModifiedEvent, (sender, e) => ...),Observe(...)until disposed, or the eventsModifiedEvent,ErrorEvent,WarningEventand an algorithm'sStartEvent,ProgressEvent,EndEvent. A subclass ofvtkCommandworks too. An exception a handler throws comes out of the call that triggered the event, as theInnerExceptionof aVtkException. - Messages:
VtkOutput.Message += (_, e) => ...receives VTK's errors and warnings, which VTK would otherwise show in a window of its own (Windows) or on the console. - Native interop:
NativePointeris thevtkObjectBase*;vtkObjectBase.FromNativePointer<T>(pointer)makes a proxy for one. The SWIG interface files are in the package'sswig/folder.
Documentation
- Guide: pipelines, data, results, rendering and hosting, observers; every example compiles against the package in CI.
- From C++ to C#: how VTK's signatures look in C#, so VTK's own documentation and examples apply.
- Class index: every type, linked to VTK's reference.
- Source and demos, changes.
License
NetVtk is MIT licensed. The IntelliSense documentation holds the doc comments of VTK's headers, and the runtime packages hold VTK's libraries and those it builds in: VTK is BSD-3-Clause. NOTICE, VTK-LICENSE.txt and each runtime package's THIRD-PARTY-NOTICES.txt have the details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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 Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net35 is compatible. net40 was computed. net403 was computed. net45 is compatible. net451 was computed. net452 is compatible. net46 was computed. net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 3.5
- NetVtk.runtime.linux-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.osx-arm64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x86 (>= 9.7.1.1-next.1)
-
.NETFramework 4.5
- NetVtk.runtime.linux-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.osx-arm64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x86 (>= 9.7.1.1-next.1)
-
.NETFramework 4.5.2
- NetVtk.runtime.linux-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.osx-arm64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x86 (>= 9.7.1.1-next.1)
-
.NETFramework 4.6.2
- NetVtk.runtime.linux-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.osx-arm64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x86 (>= 9.7.1.1-next.1)
-
.NETStandard 2.0
- NetVtk.runtime.linux-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.osx-arm64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x86 (>= 9.7.1.1-next.1)
-
net10.0
- NetVtk.runtime.linux-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.osx-arm64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x86 (>= 9.7.1.1-next.1)
-
net6.0
- NetVtk.runtime.linux-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.osx-arm64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x86 (>= 9.7.1.1-next.1)
-
net8.0
- NetVtk.runtime.linux-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.osx-arm64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x64 (>= 9.7.1.1-next.1)
- NetVtk.runtime.win-x86 (>= 9.7.1.1-next.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on NetVtk:
| Package | Downloads |
|---|---|
|
NetOcc.Vtk
OCCT shapes in VTK scenes: C# bindings for Open CASCADE Technology's TKIVtk (IVtk, IVtkOCC, IVtkVTK, IVtkTools) on NetOcc and NetVtk. IVtkTools_ShapeDataSource feeds a shape into VTK pipelines, IVtkTools_ShapePicker picks its sub-shapes. For .NET Framework 3.5+, .NET 6+ and netstandard2.0, on Windows (x64, x86), Linux (x64) and macOS (arm64). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.7.1.1-next.1 | 100 | 10/13/2026 |
### Added
- NetVtk: C# bindings for VTK 9.7.1, generated from VTK's headers: 25 modules (data model, execution model, core, general, geometry, modeling and source filters, legacy, XML and Exodus II readers and writers, a CGNS reader, OpenGL rendering, volume rendering, annotation, interaction), VTK's names in the namespace Vtk, natives for win-x64, win-x86, linux-x64 and osx-arm64, .NET Framework 3.5+, .NET 6+ and netstandard2.0. Typed arrays copy in bulk (FromArray, ToArray, CopyFrom, AsSpan); C# handlers and events observe VTK's events; VtkOutput takes VTK's messages; native pointers in both directions; VTK's documentation comments in IntelliSense; the SWIG interface files ship in swig/, with NetVtkInterop.i for other SWIG bindings.