/Engine/Source/Runtime/GeometryCore/Public/Sampling/MeshSurfacePointSampling.h
FMeshSurfacePointSamplingcomputes oriented point samples on the surface of a Mesh using various sampling strategies.
class FMeshSurfacePointSampling
TArray< FVector...
BarycentricCoords
Barycentric Coordinates of each Sample Point in it's respective Triangle.
bool
bComputeBarycentrics
If true, barycentric coordinates output array will be populated
bool
bInvertWeights
If true, weights are inverted
bool
bUseVertexWeights
Control whether VertexWeights (if valid) will be interpolated to modulate sampling
EInterpretWeigh...
InterpretWeightMode
Active weight interpretation mode
double
MaxSampleRadius
Parameters for non-uniform / variable-radius sampling.
uint32
MaxSamples
Maximum number of samples requested. If 0 or default value, mesh will be maximally sampled
int32
MaxSubSamplePoints
Safety threshold for maximum number of points in subsampling.
TArray< double ...
Radii
Radius of each Sample Point, length is the same as Samples array
int32
RandomSeed
Random Seed used to initialize sampling strategies
FGeometryResult
Result
TODO: when MaxSamples is set, it would be useful to be able to use Weight to modulate positional distribution instead of radius, (or both!) OutputsResult of last computation
double
SampleRadius
Basic sampling parametersDesired "radius" of sample points.
TArray<FFrame3...
Samples
Oriented Sample Points on the mesh surface.
ESizeDistributi...
SizeDistribution
Active Size Distribution mode
double
SizeDistributionPower
Used to define how extreme the Size Distribution shift is. Valid range is [1,10]
double
SubSampleDensity
Density of subsampling used in Poisson strategy.
TArray< int32 >
TriangleIDs
Triangle that contains each Sample Point, length is the same as Samples array
TArray< double ...
VertexWeights
Per-vertex weights, size must be == Max VertexIndexof input Mesh