Click or drag to resize

FrameManagerGetFrame Method

좌표의 Frame 정보 반환

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public Dictionary<Axis, FrameItem> GetFrame(
	Vertex3D point
)

Parameters

point
Type: VIZCore3D.NET.DataVertex3D
정점 좌표

Return Value

Type: DictionaryAxis, FrameItem
Frame 정보
Examples
C#
// 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];
}
See Also