Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript > API/Plugins/GeometryScriptingCore/GeometryScript/UGeometryScriptL-_19
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshSamplingFunctions.h |
| Include | #include "GeometryScript/MeshSamplingFunctions.h" |
| Source | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Private/MeshSamplingFunctions.cpp |
static UDynamicMesh &42; ComputeVertexWeightedPointSampling
&40;
UDynamicMesh &42; TargetMesh,
FGeometryScriptMeshPointSamplingOptions Options,
FGeometryScriptNonUniformPointSamplingOptions NonUniformOptions,
FGeometryScriptScalarList VertexWeights,
TArray< FTransform > & Samples,
TArray< double > & SampleRadii,
FGeometryScriptIndexList & TriangleIDs,
UGeometryScriptDebug &42; Debug
&41;
Remarks
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.
Parameters
| Name | Description |
|---|---|
| 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 |