Navigation
API > API/Runtime > API/Runtime/GeometryCore
Description
TAdaptiveTessellation samples the triangle at the finest level to determine the optimal split position in terms of maximizing the error reduction.
This method can be used to compute the number of samples for this sub-sampling step.
| Name | UE::Geometry::TessellationUtil::GetNumSamples |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Tessellation/AdaptiveMetrics.h |
| Include Path | #include "Tessellation/AdaptiveMetrics.h" |
namespace UE
{
namespace Geometry
{
namespace TessellationUtil
{
template<typename T>
int32 UE::Geometry::TessellationUtil::GetNumSamples
(
const UE::Math::TVector < T > Barycentrics,
const FVector2f VertexUVs,
const FVector2f MapRes
)
}
}
}
Parameters
| Name | Remarks |
|---|---|
| Barycentrics | Barycentric coordinates of three vertices of a subtriangle |
| VertexUVs | UVs of a triangle |
| MapRes | Resolution of FDisplacementMap used |