Navigation
API > API/Runtime > API/Runtime/Engine
Creates distribution for uniformly sampling a mesh section.
| Name | FStaticMeshSectionAreaWeightedTriangleSampler |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/StaticMeshResources.h |
| Include Path | #include "StaticMeshResources.h" |
Syntax
struct FStaticMeshSectionAreaWeightedTriangleSampler : public FWeightedRandomSampler
Inheritance Hierarchy
- FWeightedRandomSampler → FStaticMeshSectionAreaWeightedTriangleSampler
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FStaticMeshSectionAreaWeightedTriangleSampler() |
StaticMeshResources.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Init
(
FStaticMeshLODResources* InOwner, |
StaticMeshResources.h |
Overridden from FWeightedRandomSampler
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual float GetWeights
(
TArray< float >& OutWeights |
Gets the weight of all elements and returns their sum. | StaticMeshResources.h |