Click or drag to resize

GeometryUtilityManagerGetPreselectEdgeDistance Method (Vector3D, Vector3D, ListVector3D, Single)

연결된 Node PreselectEdge 거리 반환

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public float GetPreselectEdgeDistance(
	Vector3D v1,
	Vector3D v2,
	out List<Vector3D> vertices,
	float offset = 0f
)

Parameters

v1
Type: VIZCore3D.NET.DataVector3D
좌표 1
v2
Type: VIZCore3D.NET.DataVector3D
좌표 2
vertices
Type: System.Collections.GenericListVector3D
좌표 반환
offset (Optional)
Type: SystemSingle
Edge 검색범위

Return Value

Type: Single
거리 (실패시 -1)
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    List<Data.Vector3D> list = new List<Data.Vector3D>();
    Data.Vector3D v1 = new Data.Vector3D(37298.61f, 12596.3f, 816.87f);
    Data.Vector3D v2 = new Data.Vector3D(37299.97f, 10213.29f, -21.00f);

    float fDistance = vizcore3d.GeometryUtility.GetPreselectEdgeDistance(v1, v2, out list, 10.0f);
    if(fDistance < 0) 
    {
        //처리 실패
    }
}
See Also