Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Spatial
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/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
| Type | Name | Description | |
|---|---|---|---|
| TMap< int, int > | CurveIDToIndex | ||
| TArray< FCurve > | Curves | ||
| TMap< int, int > | PointIDToIndex | ||
| TArray< FPoint > | Points |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddCurve
(
int CurveID, |
Add a polycurve with given CurveID and the give Polyline | |
| void | Add a point with given PointID at the given Position | ||
| bool | Like FindNearestCurveToRay, but gives all elements within tolerance, rather than just the closest. | ||
| bool | Like FindNearestPointToRay, but gives all elements within tolerance, rather than just the closest. | ||
| bool | FindAllCurvesSatisfying
(
PredicateType Predicate, |
Fills CurveIDsOut with IDs of curves that satisfy the given predicate. | |
| bool | FindAllPointsSatisfying
(
PredicateType Predicate, |
Fills PointIDsOut with point IDs of points that satisfy the given predicate. | |
| bool | PointWithinToleranceTest is called in parallel and hence must be thread-safe/re-entrant! | ||
| bool | PointWithinToleranceTest is called in parallel and hence must be thread-safe/re-entrant! | ||
| bool | ParallelFindAllCurvesSatisfying
(
PredicateType Predicate, |
Like FindAllCurvesSatisfying, but parallel, so predicate must be safe to call in parallel. | |
| bool | ParallelFindAllPointsSatisfying
(
PredicateType Predicate, |
Like FindAllPointsSatisfying, but parallel, so predicate must be safe to call in parallel. | |
| void | RemoveCurve
(
int CurveID |
Remove a curve with given CurveID. | |
| void | RemovePoint
(
int PointID |
Remove a point with given PointID. | |
| void | Reset
(
bool bPoints, |
||
| void | UpdateCurve
(
int CurveID, |
Update the Polyline of previously-added CurveID | |
| void | UpdatePoint
(
int PointID, |
Update the Position of previously-added PointID |