GetBodyVertices
Overloads
| Name | Description |
|---|---|
| GetBodyVertices(int bodyIndex) | Body 노드의 정점 정보 반환 |
GetBodyVertices(int bodyIndex)
public List<BodyVertexData> GetBodyVertices(int bodyIndex)
Body 노드의 정점 정보 반환
Parameters
| Name | Type | Description |
|---|---|---|
| bodyIndex | int | Body Index |
Returns
| Type | Description |
|---|---|
| List<BodyVertexData> | Vertex Data |
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> 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();
}