19template <
typename RealType>
49 for (
int i = 0; i < N; i++)
63 for (
int i = 0; i < N; i++)
65 RealType SignedArea =
Polygons[i].SignedArea();
66 Info[i].Orientation = SignedArea > 0;
67 Info[i].Area =
Info[i].Orientation ? SignedArea : -SignedArea;
79 for (
int i = 0; i < N; i++)
170 for (
int HoleIdx : Nest.HoleIndices)
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
void SetNumZeroed(SizeType NewNum, EAllowShrinking AllowShrinking=UE::Core::Private::AllowShrinkingByDefault< AllocatorType >())
Definition Array.h:2340
void SetNum(SizeType NewNum, EAllowShrinking AllowShrinking=UE::Core::Private::AllowShrinkingByDefault< AllocatorType >())
Definition Array.h:2308
UE_NODEBUG UE_FORCEINLINE_HINT SizeType Add(ElementType &&Item)
Definition Array.h:2696
void SetNumUninitialized(SizeType NewNum, EAllowShrinking AllowShrinking=UE::Core::Private::AllowShrinkingByDefault< AllocatorType >())
Definition Array.h:2369
Definition GeneralPolygon2.h:28
bool AddHole(TPolygon2< T > Hole, bool bCheckContainment=true, bool bCheckOrientation=true)
Definition GeneralPolygon2.h:77
TPlanarComplex< double > FPlanarComplexd
Definition PlanarComplex.h:179
TPlanarComplex< float > FPlanarComplexf
Definition PlanarComplex.h:180
Definition AdvancedWidgetsModule.cpp:13
Definition BoxTypes.h:637
Definition PlanarComplex.h:34
int OuterIndex
Definition PlanarComplex.h:35
TArray< int > HoleIndices
Definition PlanarComplex.h:36
Definition PlanarComplex.h:21
void FindSolidRegions()
Definition PlanarComplex.h:42
TArray< TGeneralPolygon2< RealType > > ConvertOutputToGeneralPolygons() const
Definition PlanarComplex.h:164
TArray< TPolygon2< RealType > > Polygons
Definition PlanarComplex.h:25
bool bTrustOrientations
Definition PlanarComplex.h:27
TArray< FPolygonNesting > Solids
Definition PlanarComplex.h:38
TGeneralPolygon2< RealType > ConvertNestToGeneralPolygon(const FPolygonNesting &Nest) const
Definition PlanarComplex.h:155
bool bAllowOverlappingHoles
Definition PlanarComplex.h:28