Setup
These examples require .NET 7 on the host system. If you are working from a Unix-like environment you will need to modify the variable_dllLocation in CoreWrapper/ImplicitBody.cs to point at the location of the shared object file.
All three examples share a common CoreWrapper project, which provides the P/Invoke bindings to the native nTop Core library.
Mesher
This is a simple mesh generation implementation using marching cubes which highlights use of thentop_core_query_field and ntop_core_query_bounding_box.
To run it from the examples/dotnet directory:
Slicer
This produces images of the contours of a slice of the median axis-aligned plane of the implicit body. This highlights use ofntop_core_query_contours.
To run it from the examples/dotnet directory:
slice.png in this directory.
See the full source: Slicer.
Volume
This calculates the volume of an implicit body using a volumetric calculation. To run it from theexamples/dotnet directory:

