Click or drag to resize

NoteItemUpdatePosition Method (Matrix3D)

노트 위치 변경

Namespace:  VIZCore3D.NET.Data
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public void UpdatePosition(
	Matrix3D matrix
)

Parameters

matrix
Type: VIZCore3D.NET.DataMatrix3D
이동/회전 Matrix
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    if (vizcore3d.Model.IsOpen() == false) return;

    float x = 0.0f;
    float y = -45.0f;
    float z = 0.0f;

    // Set Selected Object
    List<VIZCore3D.NET.Data.Node> nodes =
        vizcore3d.Object3D.FromFilter(VIZCore3D.NET.Data.Object3dFilter.SELECTED_PART);

    // Rotate Selected Object
    vizcore3d.Object3D.Transform.Rotate(nodes, x, y, z);

    // Get Rotation Matrix From Object
    VIZCore3D.NET.Data.Matrix3D matrix =
        vizcore3d.Object3D.Transform.GetTransfromRotateAround(nodes, x, y, z);

    List<VIZCore3D.NET.Data.NoteItem> items = vizcore3d.Review.Note.Items;

    vizcore3d.BeginUpdate();

    foreach (VIZCore3D.NET.Data.NoteItem item in items)
    {
        item.UpdatePosition(matrix);
    }

    vizcore3d.EndUpdate();
}
See Also