Hi,
sorry I dont have access to the code I used at the moment, but I think you can just create 5 sections with just one triangle, where the triangle is shifted in each section. Then update the first section again in the last step. Only the first section will remain.
Create a new class based on AActor and add a procedural mesh component as a member variable. After creating this mesh component:
for (int i=0; i<5; i++) {
TArray<FVector> vertices;
TArray<int32> faces;
vertices.Add(FVector(0,0, i * 100));
vertices.Add(FVector(100,0, i * 100));
vertices.Add(FVector(100,100, i * 100));
faces.Add(0);
faces.Add(1);
faces.Add(2);
ProcMeshComponent->CreateMeshSection(i, vertices, faces, TArray<FVector>(), TArray<FVector2D>(), TArray<FColor>(), TArray<FProcMeshTangent>(), false);
}
TArray<FVector> vertices;
TArray<int32> faces;
vertices.Add(FVector(0,0, 0));
vertices.Add(FVector(100,0, 0));
vertices.Add(FVector(100,100, 0));
faces.Add(0);
faces.Add(1);
faces.Add(2);
ProcMeshComponent->CreateMeshSection(0, vertices, faces, TArray<FVector>(), TArray<FVector2D>(), TArray<FColor>(), TArray<FProcMeshTangent>(), false);
I can verify if the problem also happens with this code tomorrow.
Edit: Yes, it happes with this example as well