Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Spatial > API/Runtime/GeometryCore/Spatial/FBRIOPoints > API/Runtime/GeometryCore/Spatial/FBRIOPoints/Compute
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Spatial/ZOrderCurvePoints.h |
| Include | #include "Spatial/ZOrderCurvePoints.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/Spatial/ZOrderCurvePoints.cpp |
void Compute
(
TArrayView < const FVector2d > Points,
const FAxisAlignedBox2d & Bounds,
const FRandomStream & Random
)
Remarks
Compute an ordering for the input points that attempts to order points so adjacent points are close together spatially, while still keeping the order sufficiently randomized to expect to avoid worst-case orderings for Delaunay triangulation Supports both 2D and 3D points.
Parameters
| Name | Description |
|---|---|
| Points | Points to re-order |
| Bounds | Optional bounding box of the points; if an empty box is passed in, it will be computed for you |