Description
VertexWeightedPointSampling (v2)
VertexWeighted Sampling on a DynamicMesh If VertexWeights input is not connected it uses max weight for every vertex
Input(s) : TargetMesh [Intrinsic] - Dataflow mesh to sample points on VertexWeights - Weight array, number of elements in the array has to match number of vertices of the TargetMesh 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 | FVertexWeightedPointSamplingDataflowNode_v2 |
Parameters
| Name | Description | Permitted Types | Default Value |
|---|---|---|---|
| SizeDistribution | SizeDistribution setting controls the distribution of sample radii | ENonUniformSamplingDistributionMode | ENonUniformSamplingDistributionMode_Uniform |
| WeightMode | ENonUniformSamplingWeightMode | ENonUniformSamplingWeightMode_WeightedRandom | |
| bInvertWeights | bool | False |
Inputs
| Name | Description | Permitted Types | Default Value |
|---|---|---|---|
| TargetMesh | Dataflow mesh to sample points on | TObjectPtr<UDataflowMesh> | None |
| VertexWeights | Weight array, number of elements in the array has to match number of vertices of the TargetMesh | TArray<float> | |
| 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 | FDataflowPoints | |
| 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 |