UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Mesh.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "Core/CADEntity.h"
5#include "Core/EntityGeom.h"
6#include "Core/Types.h"
7#include "Math/Point.h"
8
9namespace UE::CADKernel
10{
11class FModelMesh;
12class FNode;
13class FTopologicalEntity;
14
16{
17protected:
20
23
26
27public:
28
30 : FEntityGeom()
31 , ModelMesh(InMeshModel)
32 , TopologicalEntity(InTopologicalEntity)
33 , StartNodeId(0)
34 , LastNodeIndex(0)
35 , MeshModelIndex(0)
36 {
37 }
38
39 virtual ~FMesh() = default;
40
41#ifdef CADKERNEL_DEV
42 virtual FInfoEntity& GetInfo(FInfoEntity&) const override;
43#endif
44
45 virtual EEntity GetEntityType() const override
46 {
47 return EEntity::Mesh;
48 }
49
51 {
52 return NodeCoordinates;
53 }
54
56 {
57 return NodeCoordinates;
58 }
59
60 int32 RegisterCoordinates();
61
62 const int32 GetStartVertexId() const
63 {
64 return StartNodeId;
65 }
66
68 {
69 return LastNodeIndex;
70 }
71
73 {
74 return MeshModelIndex;
75 }
76
78 {
79 return ModelMesh;
80 }
81
82 const FModelMesh& GetMeshModel() const
83 {
84 return ModelMesh;
85 }
86
88 {
89 return TopologicalEntity;
90 }
91
93 {
94 return TopologicalEntity;
95 }
96};
97}
98
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
Definition EntityGeom.h:15
Definition Mesh.h:16
const int32 GetLastVertexIndex() const
Definition Mesh.h:67
const TArray< FVector > & GetNodeCoordinates() const
Definition Mesh.h:55
int32 StartNodeId
Definition Mesh.h:21
const FModelMesh & GetMeshModel() const
Definition Mesh.h:82
FMesh(FModelMesh &InMeshModel, FTopologicalEntity &InTopologicalEntity)
Definition Mesh.h:29
const int32 GetStartVertexId() const
Definition Mesh.h:62
TArray< FVector > & GetNodeCoordinates()
Definition Mesh.h:50
int32 MeshModelIndex
Definition Mesh.h:25
FTopologicalEntity & GetGeometricEntity()
Definition Mesh.h:92
TArray< FVector > NodeCoordinates
Definition Mesh.h:24
virtual EEntity GetEntityType() const override
Definition Mesh.h:45
FTopologicalEntity & TopologicalEntity
Definition Mesh.h:19
virtual ~FMesh()=default
FModelMesh & ModelMesh
Definition Mesh.h:18
int32 LastNodeIndex
Definition Mesh.h:22
FModelMesh & GetMeshModel()
Definition Mesh.h:77
const int32 GetIndexInMeshModel() const
Definition Mesh.h:72
const FTopologicalEntity & GetGeometricEntity() const
Definition Mesh.h:87
Definition ModelMesh.h:21
Definition TopologicalEntity.h:16
Definition CADEntity.cpp:23
EEntity
Definition CADEntity.h:18