Click or drag to resize

MeshEditManagerGetBodyVertices Method

Body 노드의 정점 정보 반환

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public List<BodyVertexData> GetBodyVertices(
	int bodyIndex
)

Parameters

bodyIndex
Type: SystemInt32
Body Index

Return Value

Type: ListBodyVertexData
Vertex Data
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    vizcore3d.BeginUpdate();
    List<int> bodies = new List<int>();
    bodies.Add(1234);    

    for( int j = 0; j < bodies.Count; j++)
    {
        int bodyIndex = bodies[j];
        //Get Vertices Info
        List<VIZCore3D.NET.Data.BodyVertexData> vertexData = vizcore3d.MeshEdit.GetBodyVertices(bodyIndex);

        // Vertex Position Move
        for(int i = 0; i < vertexData.Count; i++)
        {
            vertexData[i].Vertex.X += 1000;
        }

        vizcore3d.MeshEdit.SetBodyVertices(
            bodyIndex /* body index */
            , vertexData /* Vertex Info */
            , false);  /* RebuildData */
    }

    vizcore3d.Structure.RebuildData();
    vizcore3d.EndUpdate();
}
See Also