Click or drag to resize

GeometryUtilityManagerShowOsnap Method (Boolean, Boolean, Boolean, Boolean)

오스냅(Osnap) 위치 표시

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public void ShowOsnap(
	bool surface,
	bool vertex,
	bool line,
	bool circle
)

Parameters

surface
Type: SystemBoolean
면 표시
vertex
Type: SystemBoolean
점 표시
line
Type: SystemBoolean
라인 표시
circle
Type: SystemBoolean
원 표시
Examples
C#
// 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;
}
See Also