FDynamicMeshEditor::ComputeAndSetQuadNormal

Calculate and set the per-triangle normals of the two input quads.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/DynamicMeshEditor.h

Include

#include "DynamicMeshEditor.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/DynamicMeshEditor.cpp

Syntax

FVector3f ComputeAndSetQuadNormal
(
    const FIndex2i & QuadTris,
    bool bIsPlanar
)

Remarks

Calculate and set the per-triangle normals of the two input quads. Average of the two face normals is used unless the quad is planar

Returns

the normal vector that was set

Parameters

Parameter

Description

QuadTris

pair of triangle IDs. If second ID is invalid, it is ignored

bIsPlanar

if the quad is known to be planar, operation is more efficient

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