FrameManagerGetFrame Method |
Namespace: VIZCore3D.NET.Manager
public Dictionary<Axis, FrameItem> GetFrame( Vertex3D point )
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void Example() { string model = "C:\\MODEL\\400.viz"; string frame = "C:\\MODEL\\F2000.dmp"; vizcore3d.Model.Open(model); vizcore3d.Frame.Open(frame); if (vizcore3d.Model.IsOpen() == false) return; if (vizcore3d.Frame.HasFrame == false) return; VIZCore3D.NET.Data.FrameItem item = vizcore3d.Frame.GetSnap(Data.Axis.X, 5000.0f); // Result // item.Axis : X // item.Label : FR // item.GridID : 7 // item.Offset : 100 System.Diagnostics.Trace.WriteLine(item.ToString()); Dictionary<VIZCore3D.NET.Data.Axis, VIZCore3D.NET.Data.FrameItem> items = vizcore3d.Frame.GetFrame(new Data.Vertex3D(5000.0f, 3000.0f, 1000.0f)); // Result VIZCore3D.NET.Data.FrameItem xFrame = items[VIZCore3D.NET.Data.Axis.X]; VIZCore3D.NET.Data.FrameItem yFrame = items[VIZCore3D.NET.Data.Axis.Y]; VIZCore3D.NET.Data.FrameItem zFrame = items[VIZCore3D.NET.Data.Axis.Z]; }