FGeometrySet3

[FGeometrySet3](API\Plugins\GeometricObjects\Spatial\FGeometrySet3) stores a set of 3D Points and Polyline curves, and supports spatial queries against these sets.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Spatial/GeometrySet3.h

Include

#include "Spatial/GeometrySet3.h"

Syntax

class FGeometrySet3

Remarks

FGeometrySet3 stores a set of 3D Points and Polyline curves, and supports spatial queries against these sets.

Since Points and Curves have no area to hit, hit-tests are done via nearest-point-on-ray.

Variables

Name Description

Protected variable

TMap< int, int ...

 

CurveIDToIndex

Protected variable

TArray< FCurve ...

 

Curves

Protected variable

TMap< int, int ...

 

PointIDToIndex

Protected variable

TArray< FPoint ...

 

Points

Functions

Name Description

Public function

void

 

AddCurve

(
    int CurveID,
    const FPolyline3d& Polyline
)

Add a polycurve with given CurveID and the give Polyline

Public function

void

 

AddPoint

(
    int PointID,
    const FVector3d& Position
)

Add a point with given PointID at the given Position

Public function Const

bool

 

CollectCurvesNearRay

(
    const FRay3d& Ray,
    TArray< FNearest >& ResultsOut,
    TFunction< bool&, ...
)

Like FindNearestCurveToRay, but gives all elements within tolerance, rather than just the closest.

Public function Const

bool

 

CollectPointsNearRay

(
    const FRay3d& Ray,
    TArray< FNearest >& ResultsOut,
    TFunction< bool&, ...
)

Like FindNearestPointToRay, but gives all elements within tolerance, rather than just the closest.

Public function Const

bool

 

FindAllCurvesSatisfying

(
    PredicateType Predicate,
    IntContainerType& CurveIDsOut
)

Fills CurveIDsOut with IDs of curves that satisfy the given predicate.

Public function Const

bool

 

FindAllPointsSatisfying

(
    PredicateType Predicate,
    IntContainerType& PointIDsOut
)

Fills PointIDsOut with point IDs of points that satisfy the given predicate.

Public function Const

bool

 

FindNearestCurveToRay

(
    const FRay3d& Ray,
    FNearest& ResultOut,
    TFunction< bool&, ...
)

PointWithinToleranceTest is called in parallel and hence must be thread-safe/re-entrant!

Public function Const

bool

 

FindNearestPointToRay

(
    const FRay3d& Ray,
    FNearest& ResultOut,
    TFunction< bool&, ...
)

PointWithinToleranceTest is called in parallel and hence must be thread-safe/re-entrant!

Public function Const

bool

 

ParallelFindAllCurvesSatisfying

(
    PredicateType Predicate,
    IntContainerType& CurveIDsOut
)

Like FindAllCurvesSatisfying, but parallel, so predicate must be safe to call in parallel.

Public function Const

bool

 

ParallelFindAllPointsSatisfying

(
    PredicateType Predicate,
    IntContainerType& PointIDsOut
)

Like FindAllPointsSatisfying, but parallel, so predicate must be safe to call in parallel.

Public function

void

 

RemoveCurve

(
    int CurveID
)

Remove a curve with given CurveID.

Public function

void

 

RemovePoint

(
    int PointID
)

Remove a point with given PointID.

Public function

void

 

Reset

(
    bool bPoints,
    bool bCurves
)

Public function

void

 

UpdateCurve

(
    int CurveID,
    const FPolyline3d& Polyline
)

Update the Polyline of previously-added CurveID

Public function

void

 

UpdatePoint

(
    int PointID,
    const FVector3d& Position
)

Update the Position of previously-added PointID

Classes

Name

Description

Protected struct

FCurve

Public struct

FNearest

FNearest is returned by nearest-point queries

Protected struct

FPoint

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss