Click or drag to resize

VIZCore3DControlEndUpdate Method

3D 화면 Rendering 재시작

Namespace:  VIZCore3D.NET
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public void EndUpdate()
Examples
C#
// 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.NET.Data.Vertex3D surfacePt = vizcore3d.Object3D.GetSurfaceVertexClosestToModelCenter(
        new List<int>() { items[0].Index });

    // 화면 갱신 차단
    vizcore3d.BeginUpdate();

    for (int i = 0; i < int.MaxValue; i++)
    {
        // 노트 생성
        vizcore3d.Review.Note.AddNoteSurface(
            string.Format("Note No. {0}", i + 1)
            , new VIZCore3D.NET.Data.Vertex3D(
                surfacePt.X + 2000.0f
                , surfacePt.Y
                , surfacePt.Z + 2000.0f
                )
            , surfacePt
            );
    }

    // 화면 갱신 차단 해제
    vizcore3d.EndUpdate();
}
See Also