Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDynamicMeshEditor
Description
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
| Name | ComputeAndSetQuadNormal |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMeshEditor.h |
| Include Path | #include "DynamicMeshEditor.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMeshEditor.cpp |
FVector3f ComputeAndSetQuadNormal
(
const FIndex2i & QuadTris,
bool bIsPlanar
)
the normal vector that was set
Parameters
| Name | Remarks |
|---|---|
| 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 |