GetPreselectEdgeDistance
Overloads
| Name | Description |
|---|---|
| GetPreselectEdgeDistance(Vector3D v1, Vector3D v2, float offset) | 연결된 Node PreselectEdge 거리 반환 |
[GetPreselectEdgeDistance(Vector3D v1, Vector3D v2, List1& vertices, float offset)](#getpreselectedgedistancevector3d-v1-vector3d-v2-list1&-vertices-float-offset) | 연결된 Node PreselectEdge 거리 반환 |
GetPreselectEdgeDistance(Vector3D v1, Vector3D v2, float offset)
public float GetPreselectEdgeDistance(Vector3D v1, Vector3D v2, float offset)
연결된 Node PreselectEdge 거리 반환
Parameters
| Name | Type | Description |
|---|---|---|
| v1 | Vector3D | 좌표 1 |
| v2 | Vector3D | 좌표 2 |
| offset | float | Edge 검색범위 |
Returns
| Type | Description |
|---|---|
| float | 거리 (실패시 -1) |
GetPreselectEdgeDistance(Vector3D v1, Vector3D v2, List`1& vertices, float offset)
public float GetPreselectEdgeDistance(Vector3D v1, Vector3D v2, List`1& vertices, float offset)
연결된 Node PreselectEdge 거리 반환
Parameters
| Name | Type | Description |
|---|---|---|
| v1 | Vector3D | 좌표 1 |
| v2 | Vector3D | 좌표 2 |
| vertices | [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1[[vizcore3d.net.data.vector3d, vizcore3d..net, version=1.0.26.325, culture=neutral, publickeytoken=null]]&) | 좌표 반환 |
| offset | float | Edge 검색범위 |
Returns
| Type | Description |
|---|---|
| float | 거리 (실패시 -1) |
Examples
// 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)
{
//처리 실패
}
}