CARLA
ProceduralCustomMesh.h
Go to the documentation of this file.
1 // Copyright (c) 2020 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
7 #pragma once
8 
9 #include "ProceduralCustomMesh.generated.h"
10 
11 /// A definition of a Carla Mesh.
12 USTRUCT(Blueprintable)
13 struct CARLA_API FProceduralCustomMesh
14 {
15  GENERATED_BODY()
16 
17  UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="VertexData")
18  TArray<FVector> Vertices;
19 
20  UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="VertexData")
21  TArray<int32> Triangles;
22 
23  UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="VertexData")
24  TArray<FVector> Normals;
25 
26  UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="VertexData")
27  TArray<FVector2D> UV0;
28 
29  UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="VertexData")
30  TArray<FLinearColor> VertexColor;
31 
32  // This is commented due to an strange bug including ProceduralMeshComponent.h
33  // UPROPERTY()
34  // TArray<FProcMeshTangent> Tangents;
35 };
A definition of a Carla Mesh.