How-to: Finding the nearest feature to a point (HPS)

The following sample code demonstrates two methods to find the closest feature to a 3D point in the scene using HOOPS Visualize (HPS). This code can be copied and pasted into the wpf_sandbox project (DemoUserCommands.cs) included in your HPS package.

Note: this sample code requires HOOPS Exchange as well and references a model provided in the Exchange download package. This was built with HNP 2024.

The full details are available in our community forum under https://forum.techsoft3d.com/t/how-to-finding-the-nearest-feature-to-a-point-hps/3231.