Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptLibrary_MeshSampl-
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static static UPARAM
(
DisplayName |
Compute a 'uniform random' (not 'uniform spacing') point sampling over the mesh surface | GeometryScript/MeshSamplingFunctions.h |
|
static static UPARAM
(
DisplayName |
Compute a set of sample points lying on the surface of TargetMesh based on the provided sampling Options. | GeometryScript/MeshSamplingFunctions.h |
|
static static UPARAM
(
DisplayName |
Compute a set of sample points lying on the surface of TargetMesh based on the provided sampling Options and NonUniformOptions. | GeometryScript/MeshSamplingFunctions.h |
|
static static UPARAM
(
DisplayName |
Compute a set of sample points lying on the surface of TargetMesh based on the provided sampling Options and NonUniformOptions. | GeometryScript/MeshSamplingFunctions.h |
|
UPARAM(DisplayName)
Description
Compute a 'uniform random' (not 'uniform spacing') point sampling over the mesh surface
| Name | UPARAM |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshSamplingFunctions.h |
| Include Path | #include "GeometryScript/MeshSamplingFunctions.h" |
UFUNCTION (BlueprintCallable, Category="GeometryScript|MeshSampling", Meta=(ScriptMethod))
static static UPARAM
(
DisplayName
) const
UPARAM(DisplayName)
Description
Compute a set of sample points lying on the surface of TargetMesh based on the provided sampling Options. Samples are approximately uniformly distributed, and non-overlapping relative to the provided Options.SamplingRadius, ie the distance between any pair of samples if >= 2*SamplingRadius.
| Name | UPARAM |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshSamplingFunctions.h |
| Include Path | #include "GeometryScript/MeshSamplingFunctions.h" |
UFUNCTION (BlueprintCallable, Category="GeometryScript|MeshSampling", Meta=(ScriptMethod))
static static UPARAM
(
DisplayName
)
Parameters
| Name | Remarks |
|---|---|
| Samples | output list of sample points. Transform Location is sample position, Rotation orients Z with the triangle normal |
| TriangleIDs | TriangleID that contains each sample point. Length is the same as Samples array. |
UPARAM(DisplayName)
Description
Compute a set of sample points lying on the surface of TargetMesh based on the provided sampling Options and NonUniformOptions. The sample points have radii in the range [Options.SamplingRadius, NonUniformOptions.MaxSamplingRadius], and are non-overlapping, ie the distance between two points is always larger than the sum of their respective radii.
| Name | UPARAM |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshSamplingFunctions.h |
| Include Path | #include "GeometryScript/MeshSamplingFunctions.h" |
UFUNCTION (BlueprintCallable, Category="GeometryScript|MeshSampling", Meta=(ScriptMethod))
static static UPARAM
(
DisplayName
)
UPARAM(DisplayName)
Description
Compute a set of sample points lying on the surface of TargetMesh based on the provided sampling Options and NonUniformOptions. The sample points have radii in the range [Options.SamplingRadius, NonUniformOptions.MaxSamplingRadius], and are non-overlapping, ie the distance between two points is always larger than the sum of their respective radii.
| Name | UPARAM |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshSamplingFunctions.h |
| Include Path | #include "GeometryScript/MeshSamplingFunctions.h" |
UFUNCTION (BlueprintCallable, Category="GeometryScript|MeshSampling", Meta=(ScriptMethod))
static static UPARAM
(
DisplayName
)
Parameters
| Name | Remarks |
|---|---|
| VertexWeights | defines a per-vertex weight in range [0,1], these are interpolated to create a scalar field over the mesh triangles which is used to weight the sampling radii |