RecomputeNormalsAndTangents

Recompute normals and tangents of selected geometry, optionally restricted to faces with odd or given material IDs (i.e. to target internal faces)

Windows
MacOS
Linux

References

Module

PlanarCut

Header

/Engine/Plugins/Experimental/PlanarCutPlugin/Source/PlanarCut/Public/PlanarCut.h

Include

#include "PlanarCut.h"

Source

/Engine/Plugins/Experimental/PlanarCutPlugin/Source/PlanarCut/Private/PlanarCut.cpp

Syntax

void RecomputeNormalsAndTangents
(
    bool bOnlyTangents,
    FGeometryCollection & Collection,
    const TArrayView< const int32 > & TransformIndices,
    bool bOnlyOddMaterials,
    const TArrayView< const int32 > & WhichMaterials
)

Remarks

Recompute normals and tangents of selected geometry, optionally restricted to faces with odd or given material IDs (i.e. to target internal faces)

Parameters

Parameter

Description

bOnlyTangents

If true, leave normals unchanged and only recompute tangent&bitangent vectors

Collection

The Geometry Collection to be updated

TransformIndices

Which transform groups on the Geometry Collection to be updated. If empty, all groups are updated.

bOnlyOddMaterials

If true, restrict recomputation to odd-numbered material IDs

WhichMaterials

If non-empty, restrict recomputation to only the listed material IDs

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