Object3DManagerGetSurfaceVertexClosestToModelCenter Method |
Namespace: VIZCore3DX.NET.Manager
// VIZCore3DX.NET Control private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx; private void Example() { Data.Vertex3D nearestVertex = vizcore3dx.Object3D.GetSurfaceVertexClosestToModelCenter(); if (nearestVertex == null) { System.Diagnostics.Debug.WriteLine("nearestVertex is null or returned default center."); return; } Vector3D targetPosition = new Vector3D(nearestVertex.X, nearestVertex.Y, nearestVertex.Z); System.Diagnostics.Debug.WriteLine($"Nearest position found at X:{targetPosition.X}, Y:{targetPosition.Y}, Z:{targetPosition.Z}"); }