117 return Holes.Num() > 0;
127 for (
int32 k = 0; k < NumHoles; ++k)
131 Holes.RemoveAtSwap(k);
186 Outer.Translate(translate);
189 Hole.Translate(translate);
308 for (
int i = 0; i <
Holes.Num(); ++i )
310 int seg;
double segt;
#define checkSlow(expr)
Definition AssertionMacros.h:332
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition AssetRegistryState.h:50
Definition AndroidPlatformMisc.h:14
Definition MathUtil.h:150
Definition GeneralPolygon2.h:28
bool Contains(TVector2< T > vTest) const
Definition GeneralPolygon2.h:226
bool Contains(TPolygon2< T > Poly) const
Definition GeneralPolygon2.h:242
void ClearHoles()
Definition GeneralPolygon2.h:109
TGeneralPolygon2(const TPolygon2< T > &ToSetOuter)
Definition GeneralPolygon2.h:48
double SignedArea() const
Definition GeneralPolygon2.h:139
TPolygon2< T > Outer
Definition GeneralPolygon2.h:31
const TArray< TPolygon2< T > > & GetHoles() const
Definition GeneralPolygon2.h:71
bool AddHole(TPolygon2< T > Hole, bool bCheckContainment=true, bool bCheckOrientation=true)
Definition GeneralPolygon2.h:77
bool bOuterIsCW
Definition GeneralPolygon2.h:34
double HoleUnsignedArea() const
Definition GeneralPolygon2.h:151
void SetOuter(const TPolygon2< T > &ToSetOuter)
Definition GeneralPolygon2.h:53
TGeneralPolygon2()
Definition GeneralPolygon2.h:41
TVector2< T > GetSegmentPoint(int iSegment, double fSegT, int iHoleIndex=-1) const
Definition GeneralPolygon2.h:275
void SetOuterWithOrientation(const TPolygon2< T > &ToSetOuter, bool bToSetOuterIsCW)
Definition GeneralPolygon2.h:59
void Translate(TVector2< T > translate)
Definition GeneralPolygon2.h:184
bool Intersects(TPolygon2< T > Poly) const
Definition GeneralPolygon2.h:258
void VtxNormalOffset(T OffsetDistance, bool bUseFaceAvg=false)
Definition GeneralPolygon2.h:340
void FilterHoles(TFunctionRef< bool(const TPolygon2< T > &)> RemoveHolePredicateFunc)
Definition GeneralPolygon2.h:124
void Transform(const TFunction< TVector2< T >(const TVector2< T > &)> &TransformFunc)
Definition GeneralPolygon2.h:202
double Perimeter() const
Definition GeneralPolygon2.h:162
double DistanceSquared(TVector2< T > p, int &iHoleIndex, int &iNearSeg, double &fNearSegT) const
Definition GeneralPolygon2.h:303
TVector2< T > GetNormal(int iSegment, double segT, int iHoleIndex=-1) const
Definition GeneralPolygon2.h:293
const TPolygon2< T > & GetOuter() const
Definition GeneralPolygon2.h:66
TAxisAlignedBox2< T > Bounds() const
Definition GeneralPolygon2.h:173
bool OuterIsClockwise() const
Definition GeneralPolygon2.h:221
TArray< TPolygon2< T > > Holes
Definition GeneralPolygon2.h:37
void Simplify(double ClusterTol=0.0001, double LineDeviationTol=0.01)
Definition GeneralPolygon2.h:324
bool HasHoles() const
Definition GeneralPolygon2.h:115
void Scale(TVector2< T > scale, TVector2< T > origin)
Definition GeneralPolygon2.h:194
void Reverse()
Definition GeneralPolygon2.h:211
TSegment2< T > Segment(int iSegment, int iHoleIndex=-1) const
Definition GeneralPolygon2.h:284
bool IsClockwise() const
Definition Polygon2.h:270
TGeneralPolygon2< double > FGeneralPolygon2d
Definition GeneralPolygon2.h:351
TGeneralPolygon2< float > FGeneralPolygon2f
Definition GeneralPolygon2.h:352
Definition AdvancedWidgetsModule.cpp:13
Definition BoxTypes.h:637
void Contain(const TVector2< RealType > &V)
Definition BoxTypes.h:738
Definition SegmentTypes.h:23