GeometryUtilityManagerShowOsnap Method (Boolean, Boolean, Boolean, Boolean) |
Namespace: VIZCore3D.NET.Manager
public void ShowOsnap( bool surface, bool vertex, bool line, bool circle )
// 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; }