UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GeoEnum.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "Core/Types.h"
5
6namespace UE::CADKernel
7{
8
9enum class ECurve : uint8
10{
11 Bezier = 0,
14 Ellipse,
16 Nurbs,
17 Offset,
22 Segment,
25 Spline,
26 None,
27};
28
29#ifdef CADKERNEL_DEV
30extern const TCHAR* CurvesTypesNames[];
31#endif
32
33enum class ESurface : uint8
34{
35 Bezier = 0,
36 Blend01,
37 Blend02,
38 Blend03,
40 Cone,
41 Coons,
43 Nurbs,
44 Offset,
45 Plane,
47 Ruled,
48 Sphere,
50 Torus,
51 None,
52};
53
54#ifdef CADKERNEL_DEV
55extern const TCHAR* SurfacesTypesNames[];
56#endif
57
58enum class ERupture : uint8
59{
60 Continuity = 0, // Positional rupture i.e. points of the curve that are not G0
61 Tangency, // Tangency rupture i.e. points of the curve that are not G1 (or G0)
62 Curvature, // Curvature rupture i.e. points of the curve that are not G2 (or G1, G0)
63};
64
65enum EIso : uint8
66{
67 IsoU = 0,
68 IsoV = 1,
70};
71
72#ifdef CADKERNEL_DEV
73extern const TCHAR* IsoNames[];
74#endif
75
76constexpr EIso Other(const EIso Iso)
77{
78 return Iso == EIso::IsoU ? EIso::IsoV : EIso::IsoU;
79}
80
82{
83 Back = 0,
84 Front = 1
85};
86
93
94#ifdef CADKERNEL_DEV
95extern const TCHAR* OrientationNames[];
96#endif
97
99{
100 Start = 0,
101 End = 1
103
105{
107 {
108 return EOrientation::Front;
109 }
110 else
111 {
112 return EOrientation::Back;
113 }
114}
115
117{
119 {
120 return EOrientation::Back;
121 }
122 else
123 {
124 return EOrientation::Front;
125 }
126}
127
129{
131 {
133 }
134 else
135 {
137 }
138}
139
140} // ns
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition CADEntity.cpp:23
EOrientation GetReverseOrientation(EOrientation Orientation)
Definition GeoEnum.h:116
EOrientation
Definition GeoEnum.h:82
@ Front
Definition GeoEnum.h:84
@ Back
Definition GeoEnum.h:83
EOrientation SameOrientation(bool bIsSameOrientation)
Definition GeoEnum.h:104
void SwapOrientation(EOrientation &Orientation)
Definition GeoEnum.h:128
ESurface
Definition GeoEnum.h:34
ERupture
Definition GeoEnum.h:59
ESituation
Definition GeoEnum.h:88
@ Inside
Definition GeoEnum.h:90
@ Undefined
Definition GeoEnum.h:89
@ Outside
Definition GeoEnum.h:91
ELimit
Definition GeoEnum.h:99
@ End
Definition GeoEnum.h:101
@ Start
Definition GeoEnum.h:100
EIso
Definition GeoEnum.h:66
@ IsoV
Definition GeoEnum.h:68
@ UndefinedIso
Definition GeoEnum.h:69
@ IsoU
Definition GeoEnum.h:67
@ Iso
Definition Visu.h:20
ECurve
Definition GeoEnum.h:10