Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptL-_3
Description
Find a subset of the given Points of a specified size. Can optionally specify a priorty weighting and/or request uniform spacing for the downsampled points. Note: Ordering of the result will balance: (1) if weights are provided, higher weight points come earlier and (2) if uniform spacing is requested, points will be ordered to have an octree-style coverage so the first 8 points will cover the 8 octants (where samples are available) and the subsequent points will progressively fill in the space
| Name | DownsamplePoints |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/PointSetFunctions.h |
| Include Path | #include "GeometryScript/PointSetFunctions.h" |
| Source | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Private/PointSetFunctions.cpp |
UFUNCTION (BlueprintCallable, Category="GeometryScript|PointSet",
Meta=(HidePin="Debug", AutoCreateRefTerm="Options"))
static void DownsamplePoints
(
const TArray < FVector > & Points,
const FGeometryScriptPointPriorityOptions & Options,
FGeometryScriptIndexList & DownsampledIndices,
int32 KeepNumPoints,
UGeometryScriptDebug * Debug
)