Navigation
Unreal Engine C++ API Reference > Plugins > PlanarCut
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 |
void RecomputeNormalsAndTangents
&40;
bool bOnlyTangents,
bool bMakeSharpEdges,
float SharpAngleDegrees,
FGeometryCollection & Collection,
const TArrayView< const int32 > & TransformIndices,
bool bOnlyInternalSurfaces
&41;
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
Name | 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 |