Click or drag to resize

Object3DManagerGetSurfaceVertexClosestToModelCenter Method

선택된 개체의 모델중심에서 가장 가까운 표면 정점 반환

Namespace:  VIZCore3DX.NET.Manager
Assembly:  VIZCore3DX.NET (in VIZCore3DX.NET.dll) Version: 1.1.25.1217 (1.1.25.1217)
Syntax
C#
public Vertex3D GetSurfaceVertexClosestToModelCenter()

Return Value

Type: Vertex3D
표면 정점
Examples
C#
// 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}");
}
See Also