ShowOsnap
Overloads
| Name | Description |
|---|---|
| ShowOsnap(int index, bool surface, bool vertex, bool line, bool circle) | 오스냅(Osnap) 위치 표시 |
| ShowOsnap(int index, bool surface, bool vertex, bool vertexMid, bool line, bool circle) | 오스냅(Osnap) 위치 표시 |
| ShowOsnap(bool surface, bool vertex, bool line, bool circle) | 오스냅(Osnap) 위치 표시 |
| ShowOsnap(bool surface, bool vertex, bool vertexMid, bool line, bool circle) | 오스냅(Osnap) 위치 표시 |
ShowOsnap(int index, bool surface, bool vertex, bool line, bool circle)
public void ShowOsnap(int index, bool surface, bool vertex, bool line, bool circle)
오스냅(Osnap) 위치 표시
Parameters
| Name | Type | Description |
|---|---|---|
| index | int | 노드 인덱스(INDEX) |
| surface | bool | 면 표시 |
| vertex | bool | 점 표시 |
| line | bool | 라인 표시 |
| circle | bool | 원 표시 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
List<VIZCore3D.NET.Data.Node> items =
vizcore3d.Object3D.FromFilter(
VIZCore3D.NET.Data.Object3dFilter.SELECTED_TOP
);
if (items.Count == 0) return;
vizcore3d.GeometryUtility.OnOsnapPickingItem += GeometryUtility_OnOsnapPickingItem;
vizcore3d.GeometryUtility.ShowOsnap(
items[0].Index /* Node Index */
, false /* Item : Surface */
, true /* Item : Vertex */
, true /* Item : Line */
, true /* Item : Circle */
);
}
private void GeometryUtility_OnOsnapPickingItem(object sender, VIZCore3D.NET.Event.EventManager.OsnapPickingItemEventArgs e)
{
VIZCore3D.NET.Data.OsnapKind kind = e.Kind;
VIZCore3D.NET.Data.Vertex3D point = e.Point;
VIZCore3D.NET.Data.Vertex3D start = e.Start;
VIZCore3D.NET.Data.Vertex3D end = e.End;
VIZCore3D.NET.Data.Vertex3D normal = e.Normal;
}
ShowOsnap(int index, bool surface, bool vertex, bool vertexMid, bool line, bool circle)
public void ShowOsnap(int index, bool surface, bool vertex, bool vertexMid, bool line, bool circle)
오스냅(Osnap) 위치 표시
Parameters
| Name | Type | Description |
|---|---|---|
| index | int | 노드 인덱스(INDEX) |
| surface | bool | 면 표시 |
| vertex | bool | 점 표시 |
| vertexMid | bool | 점 표시 활성화시 점과 점 사이(중심점) 표시 |
| line | bool | 라인 표시 |
| circle | bool | 원 표시 |
ShowOsnap(bool surface, bool vertex, bool line, bool circle)
public void ShowOsnap(bool surface, bool vertex, bool line, bool circle)
오스냅(Osnap) 위치 표시
Parameters
| Name | Type | Description |
|---|---|---|
| surface | bool | 면 표시 |
| vertex | bool | 점 표시 |
| line | bool | 라인 표시 |
| circle | bool | 원 표시 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
vizcore3d.GeometryUtility.OnOsnapPickingItem += GeometryUtility_OnOsnapPickingItem;
vizcore3d.GeometryUtility.ShowOsnap(
, false /* Item : Surface */
, true /* Item : Vertex */
, true /* Item : Line */
, true /* Item : Circle */
);
}
private void GeometryUtility_OnOsnapPickingItem(object sender, VIZCore3D.NET.Event.EventManager.OsnapPickingItemEventArgs e)
{
VIZCore3D.NET.Data.OsnapKind kind = e.Kind;
VIZCore3D.NET.Data.Vertex3D point = e.Point;
VIZCore3D.NET.Data.Vertex3D start = e.Start;
VIZCore3D.NET.Data.Vertex3D end = e.End;
VIZCore3D.NET.Data.Vertex3D normal = e.Normal;
}
ShowOsnap(bool surface, bool vertex, bool vertexMid, bool line, bool circle)
public void ShowOsnap(bool surface, bool vertex, bool vertexMid, bool line, bool circle)
오스냅(Osnap) 위치 표시
Parameters
| Name | Type | Description |
|---|---|---|
| surface | bool | 면 표시 |
| vertex | bool | 점 표시 |
| vertexMid | bool | 점 표시 활성화시 점과 점 사이 표시 |
| line | bool | 라인 표시 |
| circle | bool | 원 표시 |