Description
NonUniformPointSampling (v1)
NonUniform Sampling on a DynamicMesh
Input(s) : TargetMesh [Intrinsic] - Mesh to sample points on SamplingRadius - Desired "radius" of sample points. Spacing between samples is at least 2x this value. MaxNumSamples - Maximum number of samples requested. If 0 or default value, mesh will be maximally sampled SubSampleDensity - Density of subsampling used in Poisson strategy. Larger numbers mean "more accurate" (but slower) results. RandomSeed - Random Seed used to initialize sampling strategies MaxSamplingRadius - If MaxSampleRadius > SampleRadius, then output sample radius will be in range [SampleRadius, MaxSampleRadius] SizeDistributionPower - SizeDistributionPower is used to control how extreme the Size Distribution shift is. Valid range is [1,10]
Output(s): SamplePoints - Sampled positions on the mesh SampleRadii - Sampled radii SampleTriangleIDs - Sampled triangleID SampleBarycentricCoords - Barycentric Coordinates of each Sample Point in it's respective Triangle. NumSamplePoints - Number of Sampled positions on the mesh
Information
| Module | GeometryCollectionNodes |
| Category | PointSampling |
| Type | FNonUniformPointSamplingDataflowNode |
Parameters
| Name | Description | Permitted Types | Default Value |
|---|---|---|---|
| SizeDistribution | SizeDistribution setting controls the distribution of sample radii | ENonUniformSamplingDistributionMode | ENonUniformSamplingDistributionMode_Uniform |
Inputs
| Name | Description | Permitted Types | Default Value |
|---|---|---|---|
| TargetMesh | Mesh to sample points on | TObjectPtr<UDynamicMesh> | None |
| SamplingRadius | Desired "radius" of sample points. Spacing between samples is at least 2x this value. | float | 10.000000 |
| MaxNumSamples | Maximum number of samples requested. If 0 or default value, mesh will be maximally sampled | int32 | 0 |
| SubSampleDensity | Density of subsampling used in Poisson strategy. Larger numbers mean "more accurate" (but slower) results. | float | 10.000000 |
| RandomSeed | Random Seed used to initialize sampling strategies | int32 | 0 |
| MaxSamplingRadius | If MaxSampleRadius > SampleRadius, then output sample radius will be in range [SampleRadius, MaxSampleRadius] | float | 10.000000 |
| SizeDistributionPower | SizeDistributionPower is used to control how extreme the Size Distribution shift is. Valid range is [1,10] | float | 2.000000 |
Outputs
| Name | Description | Permitted Types | Default Value |
|---|---|---|---|
| SamplePoints | Sampled positions on the mesh | TArray<FVector> | |
| SampleRadii | Sampled radii | TArray<float> | |
| SampleTriangleIDs | Sampled triangleID | TArray<int32> | |
| SampleBarycentricCoords | Barycentric Coordinates of each Sample Point in it's respective Triangle. | TArray<FVector> | |
| NumSamplePoints | Number of Sampled positions on the mesh | int32 |