본문으로 건너뛰기

SetBodyVertices

Overloads

NameDescription
SetBodyVertices(int bodyIndex, List<BodyVertexData> vertexData, bool rebuildData)Body 노드의 정점 정보 변경

SetBodyVertices(int bodyIndex, List<BodyVertexData> vertexData, bool rebuildData)

public void SetBodyVertices(int bodyIndex, List&lt;BodyVertexData&gt; vertexData, bool rebuildData)

Body 노드의 정점 정보 변경

Parameters

NameTypeDescription
bodyIndexintBody Index
vertexDataList<BodyVertexData>Vertex Data
rebuildDatabool데이터 재구성 여부

Examples

// 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> safeData = vizcore3d.MeshEdit.GetBodyVertices(bodyIndex);

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

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

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