Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/FMeshRefinerBase
Description
Check if edge collapse will create a face-normal flip. Also checks if collapse would violate link condition, since we are iterating over one-ring anyway. This only checks one-ring of vid, so you have to call it twice, with vid and vother reversed, to check both one-rings
| Name | CheckIfCollapseCreatesFlipOrInvalid |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/MeshRefinerBase.h |
| Include Path | #include "MeshRefinerBase.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/MeshRefinerBase.cpp |
bool CheckIfCollapseCreatesFlipOrInvalid
(
int vid,
int vother,
const FVector3d & newv,
int tc,
int td
) const
Parameters
| Name | Remarks |
|---|---|
| vid | first vertex of edge |
| vother | other vertex of edge |
| newv | new vertex position after collapse |
| tc | triangle on one side of edge |
| td | triangle on other side of edge |