RecomputeNormalsAndTangents

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

Choose your operating system:

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,
    bool bMakeSharpEdges,
    float SharpAngleDegrees,
    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

bMakeSharpEdges

If true, recompute the normal topology to split normals at 'sharp' edges

SharpAngleDegrees

If bMakeSharpEdges, edges w/ adjacent triangle normals deviating by more than this threshold will be sharp edges (w/ split normals)

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