Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript
Inheritance Hierarchy
- UBlueprintFunctionLibrary
- UGeometryScriptLibrary_PointSetSamplingFunctions
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/PointSetFunctions.h |
| Include | #include "GeometryScript/PointSetFunctions.h" |
Syntax
UCLASS (Meta=(ScriptName="GeometryScript_PointSetSampling"))
class UGeometryScriptLibrary_PointSetSamplingFunctions : public UBlueprintFunctionLibrary
Variables
| Type | Name | Description | |
|---|---|---|---|
| double | ExpandBy |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DownsamplePoints
(
const TArray< FVector >& Points, |
Find a subset of the given Points of a specified size. | |
| void | FlattenPoints
(
const TArray< FVector >& PointsIn3D, |
Convert an array of points from 3D to 2D, by transforming into the given ReferenceFrame and taking the X,Y coordinates Note that to transform into the ReferenceFrame, we apply the inverse of the ReferenceFrame's transform. | |
| void | GetPointsFromIndexList
(
const TArray< FVector >& AllPoints, |
Create an array of the subset of AllPoints indicated by the Indices list | |
| void | KMeansClusterToArrays
(
const TArray< FVector >& Points, |
Use K-Means clustering to cluster the given points into a target number of clusters, and return the clusters as an array of lists of point indices. | |
| void | KMeansClusterToIDs
(
const TArray< FVector >& Points, |
Use K-Means clustering to cluster the given points into a target number of clusters, and return an array with a cluster index per point. | |
| void | OffsetTransforms
(
UPARAM(ref) TArray< FTransform >& Transforms, |
Offset the location of all Transforms by Offset in the given Direction, either locally in the space of the transform or in world space. | |
| void | TransformsToPoints
(
const TArray< FTransform >& Transforms, |
Create an array of the positions of the input Transforms | |
| void | UnflattenPoints
(
const TArray< FVector2D >& PointsIn2D, |
Convert an array of points from 2D to 3D, by transforming out of the given ReferenceFrame, with the given Height for the non-flat axis (default Z). | |
| static | UPARAM
(
DisplayName |
Make a Axis Aligned Bounding Box that bounds the given Points, optionally expanded by some additional amount on each side |