TMeshQueries::GetTriNormalAreaCentroid

Compute the normal, area, and centroid of a triangle all together

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/MeshQueries.h

Include

#include "MeshQueries.h"

Syntax

static void GetTriNormalAreaCentroid
(
    const TriangleMeshType & Mesh,
    int TriIdx,
    FVector3d & Normal,
    double & Area,
    FVector3d & Centroid
)

Remarks

Compute the normal, area, and centroid of a triangle all together

Parameters

Parameter

Description

Mesh

Mesh w/ triangle

TriIdx

Index of triangle

Normal

Computed normal (returned by reference)

Area

Computed area (returned by reference)

Centroid

Computed centroid (returned by reference)

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