UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::CADKernel::FIntersectionSegmentTool Class Reference

#include <IntersectionSegmentTool.h>

+ Inheritance diagram for UE::CADKernel::FIntersectionSegmentTool:

Public Member Functions

 FIntersectionSegmentTool (const FGrid &InGrid, const double Tolerance)
 
bool Update (const FIsoSegment *Segment)
 
void AddSegments (FIsoSegment **InNewSegments, int32 Count)
 
void AddSegments (const TArray< FIsoSegment * > &InNewSegments)
 
void AddSegment (const FIsoSegment &Segment)
 
void AddSegment (const FVector2d &StartPoint, const FVector2d &EndPoint)
 
bool Remove (const FIsoSegment *Segment)
 
const FIsoSegmentFindIntersectingSegment (const FIsoSegment &Segment) const
 
FIsoSegmentFindIntersectingSegment (const FIsoSegment &Segment)
 
bool DoesIntersect (const FIsoSegment &Segment) const
 
bool DoesIntersect (const FVector2d &StartPoint, const FVector2d &EndPoint) const
 
bool DoesIntersect (const FIsoNode &StartNode, const FVector2d &EndPoint) const
 
bool DoesIntersect (const FIsoNode *StartNode, const FIsoNode *EndNode) const
 
bool DoesIntersect (const FIsoNode &StartNode, const FIsoNode &EndNode) const
 
const FIsoSegmentFindIntersectingSegment (const FIsoNode &StartNode, const FIsoNode &EndNode) const
 
const FIsoSegmentFindIntersectingSegment (const FIsoNode *StartNode, const FIsoNode *EndNode) const
 
bool FindIntersectingSegments (const FIsoNode *StartNode, const FIsoNode *EndNode, TArray< const FIsoSegment * > &OutIntersections) const
 
bool FindIntersectingSegments (const FIsoNode &StartNode, const FIsoNode &EndNode, TArray< const FIsoSegment * > &OutIntersections) const
 
int32 CountIntersections (const FIsoNode *StartNode, const FIsoNode *EndNode) const
 
- Public Member Functions inherited from UE::CADKernel::TIntersectionSegmentTool< IntersectionSegmentTool::FSegment >
 TIntersectionSegmentTool (const FGrid &InGrid, const double InTolerance)
 
virtual ~TIntersectionSegmentTool ()=default
 
void Empty (int32 InMaxNum)
 
void Reserve (int32 InMaxNum)
 
void RemoveLast ()
 
void SetCount (int32 NewCount)
 
int32 Count ()
 
void Sort ()
 
const IntersectionSegmentTool::FSegmentFindIntersectingSegment (const ExtremityType1 *StartExtremity, const ExtremityType2 *EndExtremity) const
 
int32 FindIntersectingSegments (const ExtremityType1 *StartExtremity, const ExtremityType2 *EndExtremity, TArray< const FIsoSegment * > *OutIntersectedSegments) const
 

Additional Inherited Members

- Protected Attributes inherited from UE::CADKernel::TIntersectionSegmentTool< IntersectionSegmentTool::FSegment >
const FGridGrid
 
TArray< IntersectionSegmentTool::FSegmentSegments
 
bool bSegmentsAreSorted
 
const double Tolerance
 

Constructor & Destructor Documentation

◆ FIntersectionSegmentTool()

UE::CADKernel::FIntersectionSegmentTool::FIntersectionSegmentTool ( const FGrid InGrid,
const double  Tolerance 
)
inline

Member Function Documentation

◆ AddSegment() [1/2]

void UE::CADKernel::FIntersectionSegmentTool::AddSegment ( const FIsoSegment Segment)
inline

◆ AddSegment() [2/2]

void UE::CADKernel::FIntersectionSegmentTool::AddSegment ( const FVector2d StartPoint,
const FVector2d EndPoint 
)
inline

◆ AddSegments() [1/2]

void UE::CADKernel::FIntersectionSegmentTool::AddSegments ( const TArray< FIsoSegment * > &  InNewSegments)
inline

◆ AddSegments() [2/2]

void UE::CADKernel::FIntersectionSegmentTool::AddSegments ( FIsoSegment **  InNewSegments,
int32  Count 
)
inline

◆ CountIntersections()

int32 UE::CADKernel::FIntersectionSegmentTool::CountIntersections ( const FIsoNode StartNode,
const FIsoNode EndNode 
) const
inline

◆ DoesIntersect() [1/5]

bool UE::CADKernel::FIntersectionSegmentTool::DoesIntersect ( const FIsoNode StartNode,
const FIsoNode EndNode 
) const
inline

◆ DoesIntersect() [2/5]

bool UE::CADKernel::FIntersectionSegmentTool::DoesIntersect ( const FIsoNode StartNode,
const FVector2d EndPoint 
) const
inline

Allow StartNode to be connected to one segment WARNING EndPoint must be defined in EGridSpace::UniformScaled

◆ DoesIntersect() [3/5]

bool UE::CADKernel::FIntersectionSegmentTool::DoesIntersect ( const FIsoNode StartNode,
const FIsoNode EndNode 
) const
inline

◆ DoesIntersect() [4/5]

bool UE::CADKernel::FIntersectionSegmentTool::DoesIntersect ( const FIsoSegment Segment) const
inline

◆ DoesIntersect() [5/5]

bool UE::CADKernel::FIntersectionSegmentTool::DoesIntersect ( const FVector2d StartPoint,
const FVector2d EndPoint 
) const
inline

WARNING StartPoint, EndPoint must be defined in EGridSpace::UniformScaled

◆ FindIntersectingSegment() [1/4]

const FIsoSegment * UE::CADKernel::FIntersectionSegmentTool::FindIntersectingSegment ( const FIsoNode StartNode,
const FIsoNode EndNode 
) const
inline

Allow StartNode and EndNode to be connected to one segment

◆ FindIntersectingSegment() [2/4]

const FIsoSegment * UE::CADKernel::FIntersectionSegmentTool::FindIntersectingSegment ( const FIsoNode StartNode,
const FIsoNode EndNode 
) const
inline

◆ FindIntersectingSegment() [3/4]

FIsoSegment * UE::CADKernel::FIntersectionSegmentTool::FindIntersectingSegment ( const FIsoSegment Segment)

◆ FindIntersectingSegment() [4/4]

const FIsoSegment * UE::CADKernel::FIntersectionSegmentTool::FindIntersectingSegment ( const FIsoSegment Segment) const

◆ FindIntersectingSegments() [1/2]

bool UE::CADKernel::FIntersectionSegmentTool::FindIntersectingSegments ( const FIsoNode StartNode,
const FIsoNode EndNode,
TArray< const FIsoSegment * > &  OutIntersections 
) const
inline

◆ FindIntersectingSegments() [2/2]

bool UE::CADKernel::FIntersectionSegmentTool::FindIntersectingSegments ( const FIsoNode StartNode,
const FIsoNode EndNode,
TArray< const FIsoSegment * > &  OutIntersections 
) const
inline

◆ Remove()

bool UE::CADKernel::FIntersectionSegmentTool::Remove ( const FIsoSegment Segment)
inline
Returns
true if the segment is found and removed

◆ Update()

bool UE::CADKernel::FIntersectionSegmentTool::Update ( const FIsoSegment Segment)
inline

The documentation for this class was generated from the following files: