UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FaceMesh.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
5
6namespace UE::CADKernel
7{
8class FModelMesh;
9class FTopologicalEntity;
10class FTopologicalFace;
11
16{
17public:
18
21
24
27
30
31public:
36
38 {
39 TrianglesVerticesIndex.Reserve(TriangleNum * 3);
40
41 VerticesGlobalIndex.Reserve(VertexNum);
42 Normals.Reserve(VertexNum);
43 UVMap.Reserve(VertexNum);
44 }
45
46 void AddTriangle(int32 IndexA, int32 IndexB, int32 IndexC)
47 {
48 if (VerticesGlobalIndex[IndexA] == VerticesGlobalIndex[IndexB] || VerticesGlobalIndex[IndexA] == VerticesGlobalIndex[IndexC] || VerticesGlobalIndex[IndexB] == VerticesGlobalIndex[IndexC])
49 {
50 return;
51 }
52
53 TrianglesVerticesIndex.Add(IndexA);
54 TrianglesVerticesIndex.Add(IndexB);
55 TrianglesVerticesIndex.Add(IndexC);
56 }
57
58 void InverseOrientation();
59
60 void GetNodeIdToCoordinates(TMap<int32, const FVector*>& NodeIdToCoordinates) const;
61
62};
63}
64
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition Array.h:670
UE_NODEBUG UE_FORCEINLINE_HINT SizeType Add(ElementType &&Item)
Definition Array.h:2696
UE_FORCEINLINE_HINT void Reserve(SizeType Number)
Definition Array.h:3016
Definition UnrealString.h.inl:34
Definition FaceMesh.h:16
TArray< int32 > TrianglesVerticesIndex
Definition FaceMesh.h:20
FFaceMesh(FModelMesh &InMeshModel, FTopologicalEntity &InTopologicalEntity)
Definition FaceMesh.h:32
void Init(int32 TriangleNum, int32 VertexNum)
Definition FaceMesh.h:37
void AddTriangle(int32 IndexA, int32 IndexB, int32 IndexC)
Definition FaceMesh.h:46
TArray< int32 > VerticesGlobalIndex
Definition FaceMesh.h:23
TArray< FVector3f > Normals
Definition FaceMesh.h:26
TArray< FVector2f > UVMap
Definition FaceMesh.h:29
Definition Mesh.h:16
Definition ModelMesh.h:21
Definition TopologicalEntity.h:16
Definition CADEntity.cpp:23