FStaticMeshSectionAreaWeightedTriangleSampler

Creates distribution for uniformly sampling a mesh section.

Windows
MacOS
Linux

Inheritance Hierarchy

FWeightedRandomSampler

FStaticMeshSectionAreaWeightedTriangleSampler

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/StaticMeshResources.h

Include

#include "StaticMeshResources.h"

Syntax

struct FStaticMeshSectionAreaWeightedTriangleSampler : public FWeightedRandomSampler

Remarks

Creates distribution for uniformly sampling a mesh section.

Variables

Name Description

Protected variable

FStaticMeshLODR...

 

Owner

Protected variable

int32

 

SectionIdx

Constructors

Functions

Name Description

Public function Virtual

float

 

GetWeights

(
    TArray< float >& OutWeights
)

Public function

void

 

Init

(
    FStaticMeshLODResources* InOwn...,
    int32 InSectionIdx
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss